Exercise · SQL & Querying
Predict, then run it
Predict the output
parcels(id, grams) holds five parcels. To ship the two heaviest first you sort by weight, then cap:
SELECT id FROM parcels ORDER BY grams DESC LIMIT 2;
Predict the exact output.
parcels(id, grams) holds five parcels. To ship the two heaviest first you sort by weight, then cap:
SELECT id FROM parcels ORDER BY grams DESC LIMIT 2;
Predict the exact output.