SQL queries, MCQs

1. What does SQL stand for?
A. Structured Query Language
B. Sequential Query Language
C. System Query Language
D. Scripted Query Language
Answer: A

2. Which SQL command is used to retrieve data from a database?
A. GET
B. QUERY
C. SELECT
D. RETRIEVE
Answer: C

3. What does the SQL keyword “DISTINCT” do in a SELECT statement?
A. Retrieves all rows from a table
B. Retrieves only unique values for a specified column
C. Retrieves the first row from a table
D. Retrieves rows based on a condition
Answer: B

4. Which SQL clause is used to filter rows based on a specified condition?
A. WHERE
B. FILTER
C. CONDITION
D. LIMIT
Answer: A

5. What does the SQL keyword “ORDER BY” do?
A. Groups rows that have the same values into summary rows
B. Orders rows in ascending or descending order based on a specified column
C. Joins rows from two or more tables based on a related column
D. Deletes rows from a table
Answer: B

6. Which SQL command is used to insert new data into a table?
A. ADD
B. INSERT
C. CREATE
D. UPDATE
Answer: B

7. What does the SQL keyword “GROUP BY” do?
A. Orders rows in a specified column
B. Filters rows based on a condition
C. Groups rows that have the same values into summary rows
D. Joins rows from two or more tables based on a related column
Answer: C

8. Which SQL command is used to update existing data in a table?
A. UPDATE
B. MODIFY
C. CHANGE
D. ALTER
Answer: A

9. What is the purpose of the SQL keyword “HAVING”?
A. To filter rows based on a condition
B. To order rows in ascending or descending order
C. To specify conditions for groups created by GROUP BY
D. To join rows from two or more tables
Answer: C

10. Which SQL command is used to delete specific rows from a table?
A. DELETE
B. REMOVE
C. DROP
D. ERASE
Answer: A

11. What does the SQL keyword “LIKE” do?
A. Matches exact values in a column
B. Matches values that are not in a specified list
C. Matches patterns in text data
D. Matches values greater than or equal to a specified value
Answer: C

12. Which SQL command is used to create a new table?
A. MAKE TABLE
B. CREATE TABLE
C. DEFINE TABLE
D. ADD TABLE
Answer: B

13. What does the SQL keyword “JOIN” do?
A. Deletes rows from a table
B. Orders rows in ascending or descending order
C. Combines rows from two or more tables based on a related column
D. Retrieves rows based on a condition
Answer: C

14. Which SQL command is used to add a new column to an existing table?
A. ADD COLUMN
B. INSERT COLUMN
C. CREATE COLUMN
D. DEFINE COLUMN
Answer: A

15. What does the SQL keyword “NULL” represent?
A. A value of zero
B. An empty string
C. A missing or unknown value
D. A wildcard character
Answer: C

16. Which SQL command is used to remove a table from a database?
A. REMOVE TABLE
B. DELETE TABLE
C. DROP TABLE
D. ERASE TABLE
Answer: C

17. What is the purpose of the SQL keyword “UNION”?
A. To combine the results of two or more SELECT statements
B. To order rows in ascending or descending order
C. To filter rows based on a condition
D. To join rows from two or more tables
Answer: A

18. Which SQL command is used to rename an existing table?
A. ALTER TABLE
B. RENAME TABLE
C. UPDATE TABLE
D. CHANGE TABLE
Answer: B

19. What does the SQL keyword “AS” do in a SELECT statement?
A. Specifies a condition for filtering rows
B. Renames a column or table
C. Orders rows in ascending or descending order
D. Specifies an alias for a column or table
Answer: D

20. Which SQL command is used to create a unique constraint on a column?
A. ADD CONSTRAINT UNIQUE
B. ADD UNIQUE
C. UNIQUE CONSTRAINT
D. CREATE UNIQUE
Answer: A

More MCQS on Management Sciences

  1. Green supply chain management MCQs 
  2. Sustainable Operations and Supply Chains MCQs in Supply Chain
  3. Decision support systems MCQs in Supply Chain
  4. Predictive analytics in supply chains MCQs in Supply Chain
  5. Data analysis and visualization MCQs in Supply Chain
  6. Supply Chain Analytics MCQs in Supply Chain
  7. Demand management MCQs in Supply Chain
  8. Sales and operations planning (S&OP) MCQs in Supply Chain
  9. Forecasting techniques MCQs in Supply Chain
  10. Demand Forecasting and Planning MCQs in Supply Chain
  11. Contract management MCQs in Supply Chain
  12. Strategic sourcing MCQs in Supply Chain
  13. Supplier selection and evaluation MCQs in Supply Chain
  14. Procurement and Sourcing MCQs in Supply Chain
  15. Just-in-time (JIT) inventory MCQs in Supply Chain
  16. Economic order quantity (EOQ )MCQs in Supply Chain
  17. Inventory control systems MCQs in Supply Chain
  18. Inventory Management MCQs in Supply Chain
  19. Total quality management (TQM) MCQs in Supply Chain
  20. Quality Management MCQs in Supply Chain
  21. Material requirements planning (MRP) MCQs in Supply Chain
  22. Capacity planning MCQs in Supply Chain
  23. Production scheduling MCQs in Supply Chain
  24. Production Planning and Control MCQs
  25. Distribution networks MCQs in Supply Chain
  26. Warehousing and inventory management MCQs in Supply Chain
  27. Transportation management MCQs in Supply Chain
  28. Logistics Management MCQs in Supply Chain
  29. Global supply chain management MCQs in Supply Chain
  30. Supply chain strategy and design MCQs in Supply Chain
  31. Basics of supply chain management MCQ in Supply Chains
  32. Supply Chain Management MCQs
  33. Introduction to Operations Management MCQs in Supply Chain
  34. Fundamentals of operations management MCQs 
  35. Operations & Supply Chain Management MCQs
  36. Business Intelligence MCQs
  37. distributed computing frameworks MCQs
  38. Handling large datasets MCQs
  39. Big Data Analytics MCQs
  40. neural networks, ensemble methods MCQs
  41. Introduction to algorithms like clustering MCQs
  42. Machine Learning MCQs
  43. time series forecasting MCQs
  44. decision trees MCQs
  45. Modeling techniques such as linear and logistic regression MCQs
  46. Predictive Analytics MCQs
  47. Power BI MCQs
  48. using tools like Tableau MCQs
  49. Techniques for presenting data visually MCQs
  50. Data Visualization MCQs
  51. Data manipulation, MCQs
  52. SQL queries, MCQs
  53. Database fundamentals, MCQs
  54. Data Management and SQL, MCQs
  55. regression analysis, Mcqs
  56. inferential statistics, Mcqs
  57. descriptive statistics, Mcqs
  58. Probability theory, Mcqs
  59. Statistics for Business Analytics
  60. regression analysis, Mcqs
  61. inferential statistics
  62. descriptive statistics, Mcqs
  63. Probability theory, Mcqs
  64. Statistics for Business Analytics
  65. Management Sciences MCQs

Leave a Comment

All copyrights Reserved by MCQsAnswers.com - Powered By T4Tutorials