SunQuest
           Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old September 5th, 2003, 10:24 AM
zeeshanakhund zeeshanakhund is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: PK
Posts: 57 zeeshanakhund User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
  #2  
Old September 5th, 2003, 02:07 PM
crimson117 crimson117 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: New York
Posts: 19 crimson117 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to crimson117 Send a message via AIM to crimson117 Send a message via Yahoo to crimson117
If you don't want to show a column, then don't SELECT it. You can still use the column in the WHERE clause.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > SQL Statements


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway