I have two tables one is the shopping table and another is the invoice table..
now the invoice table has the primarykey column as pkinvoiceID and the same key exists in shopping table as fkinvoiceID
no the fkinvoiceID can be the same ID for multiple rows having different status like
the shopping table it can contain 3 rows with same invoiceID but different Status, i can do an inner join but i want to make sure that it picks the latest record
 
    