Report for Kits conponents

I would like to have a report the outline's what each kit is made of.... does just a thing exist?

Dan

Reply to
Dan-902
Loading thread data ...

Dan,

For both of your questions concerning kits, we can help you. contact me via e-mail.

Marc cott> I would like to have a report the outline's what each kit is made of....

Reply to
Marc Cotton

I would like to have a report the outline's what each kit is made of....

Sample sql so far:

select i.itemlookupcode, i.description, i.price, k.componentitemid, k.quantity, k.quantity from item i, kit k where i.id = k.kititemid

This is getting me closer but how do I get the k.componentitemid to be the actual itemlookupcode for that item.

Dan

Reply to
Dan-902

Try this:

select i.itemlookupcode, i.descripti> I would like to have a report the outline's what each kit is made of.... >

k.quantity, k.quantity

actual itemlookupcode for that item

Reply to
Matt Hurst

outputs: i.itemlookupcode i.description i.price k.componentkititem k.quantity

12-1020 Rope Kit 12.00 234 .25 12-1020 Tie 12.00 436 1

What I would Like as output, the ILC for the kititem componentid i.itemlookupcode i.description i.price ILC k.quantity Price kit component

12-1020 Rope Kit 12.00 12-1224 .25 4.00 12-1020 Rope Kit 12.00 11-123 1 8.00
Reply to
Dan-902

why not join the item record of the component to find that info:

select i.itemlookupcode, i.description, i.price, c.itemlookupcode, k.quantity from item i join kit k on i.id = k.kititemid join item c on c.id=k.componentitemid

"Dan-902" wrote:

Reply to
Matt Hurst

I would like to have a report the outline's what each kit is made of.... does just a thing exist?

Dan

Reply to
cptsoft

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.