Below is a generic SQL sample code which shows how those tables would be joined.


        SELECT  REQLI.AP7REQUISITIONSID AS REQUISTION_NUMBER, PO.PURCHASEORDERNUMBER, *
        FROM AP7REQUISITIONLINEITEMS REQLI
        INNER JOIN AP7CONSOLIDATIONLINKS CL on REQLI.AP7REQUISITIONLINEITEMSID = CL.AP7REQUISITIONLINEITEMSID
        INNER JOIN AP7LINEITEMS AP7LI on CL.AP7LINEITEMSID = AP7LI.AP7LINEITEMSID
        INNER JOIN AP7PURCHASEORDERS PO on AP7LI.AP7PURCHASEORDERSID = PO.AP7PURCHASEORDERSID


Disclaimer: Blackbaud provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes you are familiar with Structured Query Language and the tools used to create and modify SQL statements and Crystal Reports. Blackbaud Customer Support may help explain the functionality of a particular procedure, but we will not modify, or assist you with modifying, these examples to provide additional functionality.