Selection with Limited Number of Outputs
This Tutorial's Database: petstore.db
petstore.dbSELECT *
FROM purchases
WHERE pet_name = "Bella"# Python Output
[('Bella', 'Food', 7), ('Bella', 'Treats', 1), ('Bella', 'Food', 1)]SELECT *
FROM purchases
WHERE pet_name = "Bella"
LIMIT 1Grabbing the 3rd, 4th, 5th purchases from our table
Last updated