As commitment to our database literacy campaign, we're offering our Database Foundations course—for FREE!
SELECT * FROM Customers;
This query retrieves all columns and all rows from the Customers table.
SELECT FirstName, LastName, Email FROM Customers;
This query retrieves only the FirstName, LastName, and Email columns from the Customers table.
SELECT * FROM Products
WHERE Price > 50;
This query retrieves all columns from the Products table, but only for products with a price greater than 50.
SELECT ProductName, Price FROM Products
ORDER BY Price DESC;
This query retrieves product names and prices, sorted by price in descending order (highest to lowest).