Complete the code to select all columns from a relational database table named 'employees'.
SELECT [1] FROM employees;In SQL, * means select all columns from the table.
Complete the code to insert a document into a NoSQL database collection named 'users'.
db.users.insertOne({ name: 'Alice', age: [1] });In NoSQL databases like MongoDB, numbers are written without quotes.
Fix the error in the object-oriented database query to retrieve all objects of class 'Car'.
SELECT * FROM [1];Class names in object-oriented databases are case-sensitive and usually start with a capital letter.
Fill both blanks to create a NoSQL query that finds users older than 30.
db.users.find({ age: { [1]: [2] } });In NoSQL queries, $gt means 'greater than'. We want users older than 30, so age > 30.
Fill all three blanks to create an SQL query that selects the 'name' and 'price' columns from the 'products' table where price is less than 100.
SELECT [1], [2] FROM products WHERE price [3] 100;
We select columns 'name' and 'price' and filter rows where price is less than 100 using <.