I'm new to mysql and I'm trying to figure out if there is a way that you can pull information from the the last 5 most recent orders.
I'm trying to pull orderNumber, productName, and firstname for last 5 most recent orders.
I created 2 dummy tables that I'm working with:
Table: orders
Fields: orderNumber customerOid orderInformationOid purchaseDateTime
Table: customerData
Fields: customerOid firstName middleInitial lastName
Table: products
Fields: productOid productName companyOid
I was thinking an INNER JOIN but how to determine the most recent orders?