I need help in creating a SQL statement that will pull records from three tables. The three tables that I have are as follows:
ITEMS
- Itemnbr
- DepartmentNum
- VendorNum
ITMDESCR
- Itemnbr
- Description1
VENDOR
- VendorNum
- Name
I need a query that will pull itemdesc.description1, item.vendornum and vendor.name for all items in the item table whose departmentnum=61. I need the resulting set grouped by itemdesc.description1.
Everything I've tried so far has failed. I either don't get what I need or I get a SQL query that times out.
TIA!!!
ITEMS
- Itemnbr
- DepartmentNum
- VendorNum
ITMDESCR
- Itemnbr
- Description1
VENDOR
- VendorNum
- Name
I need a query that will pull itemdesc.description1, item.vendornum and vendor.name for all items in the item table whose departmentnum=61. I need the resulting set grouped by itemdesc.description1.
Everything I've tried so far has failed. I either don't get what I need or I get a SQL query that times out.
TIA!!!