Hi
Should you help me please?
I have one problem with select query. I made three tables as shown below. I need to do something like nested select. But it is not supported. How should I maintain the gain from database build with respect to data integrity?
A
--------------------
id int (pk)
name char
B
----------------------
id int (pk)
name char
C
--------------------
id int (pk)
a int ref a
b int ref b
The query I'd like to use is:
SELECT * FROM a WHERE NOT id IN ( SELECT a FROM c WHERE b = x )
Where x means value perviously selected from table B.
I'm unable to write the query which should solve this. Should you help me PLEASE?
Than you very much
seeya
George Blackhead
Should you help me please?
I have one problem with select query. I made three tables as shown below. I need to do something like nested select. But it is not supported. How should I maintain the gain from database build with respect to data integrity?
A
--------------------
id int (pk)
name char
B
----------------------
id int (pk)
name char
C
--------------------
id int (pk)
a int ref a
b int ref b
The query I'd like to use is:
SELECT * FROM a WHERE NOT id IN ( SELECT a FROM c WHERE b = x )
Where x means value perviously selected from table B.
I'm unable to write the query which should solve this. Should you help me PLEASE?
Than you very much
seeya
George Blackhead