Guest_imported
New member
- Jan 1, 1970
- 0
I'm a newbie to sql obviously and here is my dilema:
Table 1
ID(KEY) Name
1 Country Place
2 Abbey Road
3 State House
4 Remington House
5 Stoneleigh2
Table2
Table2ID ID(Key) Type Price
1 1 1 500
2 1 1 550
3 1 1 600
4 1 2 650
5 2 1 800
6 2 1 500
7 2 1 600
8 2 3 695
How can I Select ID, Type Where Price is less than $700 for example. Where it would be in this format:
ID Type
1 1,2
2 1,3
If anyone understands what I'm trying to do and can help, it would save me a lot of grief.
Thanks a lot
Table 1
ID(KEY) Name
1 Country Place
2 Abbey Road
3 State House
4 Remington House
5 Stoneleigh2
Table2
Table2ID ID(Key) Type Price
1 1 1 500
2 1 1 550
3 1 1 600
4 1 2 650
5 2 1 800
6 2 1 500
7 2 1 600
8 2 3 695
How can I Select ID, Type Where Price is less than $700 for example. Where it would be in this format:
ID Type
1 1,2
2 1,3
If anyone understands what I'm trying to do and can help, it would save me a lot of grief.
Thanks a lot