Building and Executing the Supplier Information View

To obtain information on the purchase order and supplier, you use this information in the ds_inventory data source:

Product transaction information in the inventorytransactions table.
Purchase details in the purchaseorders table.
Supplier information in the suppliers table.

To build and execute the supplier information view

1. Right-click Shared > sources in the resource tree.
2. Create a new view named ViewSupplier.
3. Drag the following tables from ds_inventory and drop them into the Model panel of ViewSupplier:
inventorytransactions
purchaseorders
suppliers
4. Join the following columns to each other.

Table Name

Column Name

Join

Table Name

Column Name

suppliers

supplierid

to

purchaseorders

supplierid

purchaseorders

purchaseorderid

to

inventorytransactions

purchaseorderid

5. In the Grid panel, limit the query to the following columns as described in Building and Executing the Order Information View:
inventorytransactions.productid
inventorytransactions.transactionid
purchaseorders.daterequired
purchaseorders.datepromised
purchaseorders.shipdate
purchaseorders.supplierid
suppliers.suppliername
suppliers.contactname
suppliers.phonenumber
6. Provide aliases for the following column names.

Column Name

Alias to type

suppliers.contactname

suppliercontactname

suppliers.phonenumber

supplierphonenumber

7. Save the view.
8. Execute the view to see the result.
9. In the result set displayed in the Result panel, identify the row for ProductID = 23 and Transaction ID = 30 and which has the following data:
ProductID: 23
TransactionID: 30
DateRequired: 2003-02-10
DatePromised: 2003-02-10
ShipDate: 2003-02-12
SupplierName: Good Supplies International
SupplierID: 5
SupplierContactName: Justin Glory
SupplierPhoneNumber: 415-665-8000

This result set contains all the information the Purchase department needs about the purchase order and supplier that are relevant to the current example. The supplier did not deliver the order on the promised date of 2003-02-10. Additionally, the supplier shipped the order late (on 2003-02-12).

10. Close the ViewSupplier tab.