D
DancingAgain
Unregistered / Unconfirmed
GUEST, unregistred user!
Dearall:
I have the question to get helps from you!
given two relations
1. product(maker, model, type)
maker model type
a 1001 pc
a 1002 pc
a 1003 pc
b 1004 printer
b 1005 pc
c 1006 pc
.
.
2.pc(model, speed)
model speed
1001 133
1002 166
1003 166
1004 123
....
Suppose model is unique for each row, use sql to represent
find the makers of pc'c with at least three different speeds?
I don't know how to count the record line:
i give the statement(this is error!!)
select maker from product,pc
where product.model = pc.model
and product.type='pc'
group by maker
having count(distinct speed) >=3;
Thank you
I have the question to get helps from you!
given two relations
1. product(maker, model, type)
maker model type
a 1001 pc
a 1002 pc
a 1003 pc
b 1004 printer
b 1005 pc
c 1006 pc
.
.
2.pc(model, speed)
model speed
1001 133
1002 166
1003 166
1004 123
....
Suppose model is unique for each row, use sql to represent
find the makers of pc'c with at least three different speeds?
I don't know how to count the record line:
i give the statement(this is error!!)
select maker from product,pc
where product.model = pc.model
and product.type='pc'
group by maker
having count(distinct speed) >=3;
Thank you