Basic SQL

Can somebody give me an SQL which will return all items which currently have no supplier assigned at all?

Thanks!

Reply to
Philip Gass - Creative Gardens -
Loading thread data ...

-- This is to get items that have no records in the supplier tab.

select itemlookupcode,description

from item left join supplierlist

on item.id=itemid

where itemid is null

order by Itemlookupcode

/* To get items that does not have supplier

Select itemlookupcode,description

Fron Item

Where Supplierid=0 */

"Philip Gass - Creative Gardens -" wrote in message news:% snipped-for-privacy@TK2MSFTNGP04.phx.gbl...

Reply to
Mahmoud Amin

Select * From Item Where SupplierID = 0

"Philip Gass - Creative Gardens -" wrote in message news:% snipped-for-privacy@TK2MSFTNGP04.phx.gbl...

Reply to
Jason

That assumes that all supplier & item edits have been done through the RMS UI (and that nothing has gone wrong anyway). The left join between Item and SupplierList is a better choice.

Glenn Adams Tiber Creek C> Select * From Item Where SupplierID = 0

Reply to
Glenn Adams [MVP - Retail Mgmt

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.