Hi
I would like a sql statement that does the following:
I have 2 x tables (order & items)
The order table contains line items including 'invoice_no' and 'val'
The items table links to the order table with matching 'invoice_no', and contains a TOTAL_VAL
I would like to write sql code that returns:
get EVERYTHING from the order table where sum(val) <>
item.TOTAL_VAL and the order.invoice_no = item.invoice_no
I hope this makes sense.
Basically, these values should always match but a user has just found 1 that doesn't and i'd like to see if there are any others.
Thanks in advance,
Mark