This is probably a really easy answer but I'm no TSQL guy so any help would be greatly appreciated!
TABLE1 holds:
po_no
item_id
received_date
(multiple entries for each item ID, each with a unique received_date)
TABLE2 holds:
po_no
location_id
MY GOAL IS: Show me each item at location 100 and it's most recent received date but every attempt to use MAX to restrict to the most recent date fails.
How should I be structuring this query?
TABLE1 holds:
po_no
item_id
received_date
(multiple entries for each item ID, each with a unique received_date)
TABLE2 holds:
po_no
location_id
MY GOAL IS: Show me each item at location 100 and it's most recent received date but every attempt to use MAX to restrict to the most recent date fails.
How should I be structuring this query?