I've got an inventory database that tracks which Order Numbers the items were purchased in. Each table has the Order Number as a foreign key. Here are the relevant tables:
Order(OrderNumber, Vendor, DateOrdered, Amount)
Hardware(HardwareID, Manufacturer, Model, Serial, OrderNumber)
Computer(ComputerID, Manufacturer, Model, Serial, OrderNumber)
Software(SoftwareID, Developer, Name, Licenses, OrderNumber)
I would like a query that can produce a table that shows all the items that were each order, keeping in mind that an order may have had hardware, computers, and software in it. It should look similar to the following.
[tt]
Order# Manuf/Devel Model/Name Serial/licenses
------ ----------- ---------- ---------------
001 Dell PowerEdge1 B342A556543
001 Dell TapeDrive7 R234C365465
002 Gateway Laptop2000 23433356545
002 Gateway Router9000 34232356546
002 Microsoft WindowsXP 30
...
[/tt]
Thanks in advance for your help!
Order(OrderNumber, Vendor, DateOrdered, Amount)
Hardware(HardwareID, Manufacturer, Model, Serial, OrderNumber)
Computer(ComputerID, Manufacturer, Model, Serial, OrderNumber)
Software(SoftwareID, Developer, Name, Licenses, OrderNumber)
I would like a query that can produce a table that shows all the items that were each order, keeping in mind that an order may have had hardware, computers, and software in it. It should look similar to the following.
[tt]
Order# Manuf/Devel Model/Name Serial/licenses
------ ----------- ---------- ---------------
001 Dell PowerEdge1 B342A556543
001 Dell TapeDrive7 R234C365465
002 Gateway Laptop2000 23433356545
002 Gateway Router9000 34232356546
002 Microsoft WindowsXP 30
...
[/tt]
Thanks in advance for your help!