
September 5th, 2003, 10:24 AM
|
|
Contributing User
|
|
Join Date: Feb 2003
Location: PK
Posts: 57
Time spent in forums: 1 h 9 m 47 sec
Reputation Power: 6
|
|
|
SQL Statements
I have three tables, SUPPLIER, ENQUIRY, and SUPPLIERENQUIRYDTL,,, whenever an enquiry is created, it is sent to supplier, and a record is added in SUPPLIERENQUIRYDTL, containing SUPPLIERUSERNAME and ENQUIRY_ID.
I dont want to show the user SUPPLIERUSERNAME , which are already added in that list for a particular ENQUIRY_ID, I am using the following SQL Statements,,, but not printing the correct information,,,
SELECT supplier.supplierusername SUPPLIERID, supplier.organization, supplierenquirydtl.supplierusername, supplierenquirydtl.enquiry_id
FROM supplier, supplierenquirydtl
WHERE supplierenquirydtl.enquiry_id='1' AND
supplier.supplierusername!=supplierenquirydtl.supplierusername
|