Lecture Notes3 Filtering On Data
Lecture Notes3 Filtering On Data
Qn : select the product IDs and their corresponding product names & sizes from the
`product` table.
Qn: How to sort the purchases by market date (most recent) and transaction time
both?
Question: What if the manager asks you to fetch the 2nd & 3rd most recent purchase
(skip the 1st one)?
-- SELECT market_date, transaction_time, quantity, cost_to_customer_per_qty from
`farmers_market.customer_purchase`
-- ORDER BY transaction_time DESC LIMIT 2 OFFSET 2
#Question: In the customer purchases, we have quantity and cost per qty separate,
query the total amount that the customer has paid along with date, customer id,
vendor_id, qty, cost per qty and the total amount?;