Back to marketplace

SQL commands (P2)

No description yet. This curated deck is ready for daily study.

Total cards: 3•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (3)

#1
Front (Question)

SQL query for selecting ProductName, SupplierID from a table called Products where Price = 21 and Stock < 30

Back (Answer)

SELECT ProductName, SupplierID FROM Products WHERE Price == 21 AND Stock < 30

#2
Front (Question)

Select all the records in a table called Products where “Sauce” appears in ProductName

Back (Answer)

SELECT * FROM Products WHERE ProductName LIKE “Sauce”

#3
Front (Question)

You have 2 tables, one table called ACCOUNTS with fields: Acc_No, Customer_ID, Balance, Acc_Type and another called CUSTOMERS: Customer_ID, Family_Name, Zip_Code, Phone Create an SQL query to select the names of customers and balance whose account balance is greater than $300,000

Back (Answer)

SELECT CUSTOMERS.Family_Name, ACCOUNTS.Balance FROM CUSTOMERS INNER JOIN ACCOUNTS ON ACCOUNTS.CustomerID = CUSTOMERS.CustomerID WHERE ACCOUTNS.Balance > 300000