I want to count(tblB.bid) records where tblA.aid = tblB.bid and get the tblA.Name. tblA.Name may exist even though there is not a associated record yet in tblB. I still want tblA.Name even if count(tblB.bid) = 0.As example:tblA ( aid int, Name varchar(64))tblB ( bid int, aid int, attributeA varchar(50), attributeB varchar(50))tblA.Name count(tblB.id)========= ==============Widgets 2Dohiggies 1Wombats 0
Every SPROC I have written returns empty.
Any thoughts on how I need to write this SPROC?Thanks!JohnEdited by - cyberdog on 02/14/2003 09:07:47