Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Difficult SQL Query
All,
I am having a problem getting a query to work:
I have two tables where I want to find the difference between the two:
Table1
Attribute1 Number(8)
Table2
Attribute1 Number(8)
I want to select all Table1.Attribute1 where Table1.Attribute does not exist in Table2
How can I do this?
Secondly, I am setting up a cursor in Pro*C and whenever not more records are found I want to return a failure value.
Example:
EXEC SQL WHENEVER NOT FOUND DO return value;
The Pro*C compiler (2.2.2.0.0 on Solaris 7.3.2) keeps on complaining!
Any help would be greatly appreciated.
Many thanks,
(pls. replace dot with . to email me) Received on Tue Sep 16 1997 - 00:00:00 CDT
![]() |
![]() |