they are abbreviations, but they are aliases. Always required when you have the same table/query in a query more than once so the query engine knows which 'version' of the table/query you are looking at, but also cuts down typing and makes the code easier to read.
expect that S and C are abbreviations for supplier and customer (in the query). Are they variables?
Many times I have seen someone name a query something like
'data received from joe smith for January'
you can imagine what any query looks like....
yesSo the 2nd query will provide me a list of all unique units and their buy/sell operations
I don't see the need to base the query on the second query to assign a service event, just assign it via customer>orderheader>orderdetail, or if that is not available create a dummy supplier order as before, then dummy customer order (or another form of document 'return order'). In time they will all be registered and your data will be consistent. However that may not be practical, in which case your service table could not have referential integrity with the orderline table and you would need a different query to identify those products/serialno which are not in the orderline table (i.e. left join tblServices to tblOrderLines) - a situation a bit like the scenario I outlined in the last para of post #22When I want to assign a service event or something else to a specific unit, I will create a query based on that 2nd query, which could be a "Create query" and will put that information in corresponding tables, yes?