and the 2nd contains billno,itemid,qty,rate,value .
i want the values of itemname,unit from first table and qty,rate,value from 2nd table when we enter the values of billno. and itemcode.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Micke BlomqvistRank #1,660 · 923 reputationPosted Feb 16, 2011, 3:12 AM EST
from items i
inner join bills b
on i.itemid = b.itemid
where b.billno = @billno and i.itemcode = @itemcode
Just replace items with your items tablename and bills with your bills tablename and assign the values to the two variables @itemcode and @billno.
Suthish NairRank #92 · 22.8K reputationPosted Feb 17, 2011, 9:15 AM EST