Which of the following statements is true about SQL?
In SQL statements, what is the role of the semicolon (;)?
Which of the following SQL statements is used to filter data based on a specific condition?
Consider the following SQL code:
SELECT * FROM Customers;
What does the above code do?
Consider the following SQL code:
SELECT COUNT(*) FROM Orders;
What does the above code return?
Consider the following SQL code:
SELECT ProductName, Price FROM Products WHERE Price > 50;
Consider the following SQL code:
SELECT AVG(Quantity) FROM Sales;
Consider the following SQL code:
SELECT DISTINCT Country FROM Customers;
What does the above code do?
Which of the following statements is true about SQL queries?
Consider the following SQL code:
SELECT FirstName, LastName FROM Employees WHERE LastName LIKE 'S%';
Consider the following SQL code:
SELECT * FROM Orders WHERE OrderDate BETWEEN '2022-01-01' AND '2022-12-31';
Consider the following SQL code:
SELECT ProductID, SUM(Quantity) FROM OrderDetails GROUP BY ProductID;
What does the above code do?
Consider the following SQL code:
SELECT CustomerID, COUNT(OrderID) FROM Orders GROUP BY CustomerID HAVING COUNT(OrderID) > 5;
What does the above code do?