I have a table called jobs with various pieces of information. Each task is assigned a task number (unique identifier).
Then there is another table called purchaseOrders that has the job identifier FK and PK of poID.
when the purchase order record is edited, the old information is saved ... value, I create a new PO record (new unique identifier).
What I'm trying to do is write one query that selects all fields from "jobs" and all fields from "purchaseOrders", but only the last poID for this job .
For instance:
jobID Name State poID time jobID
How can I run a query that will select all columns from both tables, but include only the information with the highest poID for a specific job identifier?
source share