
VJadhav20180208120828 asked a question.
Hello,
Please pardon my lack of knowledge in the FNMS data model.
I want to extract the PO Number and associated number of contracts with it. Can you please help with the query? I can locate PurchaseOrder table but not able to find link between Purchase --> License for taking a count. We have recently migrated to OnPremise setup, hence not yet exposed to data model.
Thanks
Vinod
@vinod_jadhav - Your SQL Query needs to be a join across several views:
You need to go from PurchaseOrder to PODetail, to SoftwareLicensePODetail to SoftwareLicense:
PurchaseOrder (the header of a PO, containing PO Number, Date and Vendor)
PurchaseOrderDetail Join to the Purchase Order view on the PurchaseOrderID column
SoftwareLicensePurchaseOrderDetailInfo Join to PurchaseOrderDetail viewon the PurchaseOrderDetailID column
SoftwareLicense Join to SoftwareLicensePurchaseOrderDetailInfo on the SoftwareLicenseID column