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?
Loading
pooja shetePosted Jun 28, 2011, 5:49 AM
Vilas GitePosted Jun 26, 2011, 10:55 AM
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"!
Morcos AdelPosted Jun 26, 2011, 8:20 AM