I have 3 tables.
1st table contains suppid,suppname,suppplace,supppho,suppmob named as supplier.
2nd table cotains itemid,itemname,itemcode,qty,price named item.
3rd contains purno,suppid,itemid, purqty,purrate,purdate named as purchace.
I want to select suppname,itemcode,itemname,purdate,purqty,purrate from purchace,item,supplier where purno="###" here i want suppname,purdate as distinct. how we write this as query?
Select distinct
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Morcos Adel115 reputationPosted Jun 26, 2011, 4:20 AM EDT
Vilas GiteRank #951 · 2.1K reputationPosted Jun 26, 2011, 6:55 AM EDT
please use joins.
http://msdn.microsoft.com/en-us/library/ms191430(v=sql.90).aspx
-------------------------------------------------------------------If this reply hepls your post…then "MARK AS ANSWER"!
pooja shete7 reputationPosted Jun 28, 2011, 1:49 AM EDT