1 Simple SQL-Table
In this example, a box is added to the invoice object to show the contents of the invoice lines
Parameters of the main box:
<select> <columns> album.title, track.trackid, track.name, invoiceline.unitprice, invoiceline.quantity </columns> <from table='invoice'> <join table='invoiceline'> <on>invoiceline.invoiceid = invoice.invoiceid</on> <join table='track'> <on>invoiceline.trackid = track.trackid</on> <join table='album'> <on>album.albumid = track.albumid</on> </join> </join> </join> </from> <where> invoice.invoiceid = #invoiceid </where> <order>1</order> </select>
It is noted that the statement contains in the filter '#invoiceid' the value of it comes from the main statement of the object.
The output fields are added, coinciding with the fields used in the sentence.