InfoTechSite | Your Ultimate Source for IT Tutorials, MCQs, and Quizzes

CS/IT MCQ Collections

MCQ on Basic SQL Queries with Answers set-1

Pinterest LinkedIn Tumblr Reddit WhatsApp
This set of multiple choice questions on Basic SQL queries includes MCQ questions about different types of queries used on SQL.

1. DML is provided for
A) Description of logical structure of database
B) Addition of new structure in the database system.
C) Manipulation & processing of database
D) Definition of physical structure of database system

2.’AS’ clause is used in SQL for
A) Selection operation
B) Rename Operation
C) Join operation
D) Projection Operation

3. Count function in SQL returns the number of
A) values
B) distinct values
C) groups
D) columns

4. The statement in SQL which allows to change the definition of a table is
A) Alter
B) Update
C) Create
D) Select

5. Which of the following is correct.
A) A SQL query automatically eliminates duplicates
B) SQL permits attribute names to be repeated in the same relation
C) A SQL query will not work if there are no indexes on the relations
D) None of the above

6. Which of the following operation is used if we are interested in only certain columns of a table?
A) PROJECTION
B) SELECTION
C) UNION
D) JOIN

7. Which of the following is a legal expression in SQL?
A) SELECT NULL FROM EMPLOYEE;
B) SELECT NAME FROM EMPLOYEE;
C) SELECT NAME FROM EMPLOYEE WHERE SALARY=NULL;
D) None of the above

8. Which of the following is a valid SQL type?
A) CHARACTER
B) NUMERIC
C) FLOAT
D) All of the above

9. Which command is used to select distinct subject (SUB) from the table (BOOK)?
A) SELECT ALL FROM BOOK
B) SELECT DISTINCT SUB FROM BOOK
C) SELECT SUB FROM BOOK
D) All of the above

10. In SQL, which of the following is not a data definition language commands?
A) RENAME
B) REVOKE
C) GRANT
D) UPDATE

We have created a quiz including solved MCQ on the database management system including basic SQL queries. Please take this quiz to test your knowledge on DBMS fundamentals.

Quiz for Fundamentals of DBMS

 

1. Which table store information about the database or about the system?
2. In a snapshot, which clause tells Oracle how long to wait between refreshes?
3. A table can have only one
4. Which normal form is considered adequate for relational database design?
5. Which command is used for entering the specific database?
6. Which of the following entity does not have a distinguishing attribute if its own and most are dependent entities?
7. In a relational model, relations are also called
8. A top-to-bottom relationship among the items in a database is established by a
9. Which of the following is the preferred method for enforcing data integrity?
10. Which of the following is a way a particular application views the data from the database that the application uses?
11. In the relational modes, cardinality is also called
12. What are the different events in Triggers?
13. What is the full form of DDL in Database Management System?
14. Which of the following is used to determine whether a table contains duplicate rows?
15. Which candidate key allows you to uniquely identify each row?
16. What is a logical schema?
17. Which of the following commands can be used to modify a column in a table?
18. Which of the following are the ways in which entities can participate in a relationship?
19. Which of the following keys is used to eliminate duplicate rows?
20. What represents the number of entities to which another entity can be associated?
21. Which of the following SQL commands can be used to modify existing data in a database table?
22. Which of the following is the complex search criteria in the where clause?
23. Which database is used as a template for all databases created?
24. Which of the following contains information that defines valid values that are stored in a column or data type?
25. Which command can be used to change a column value in a table?
26. Which one of the following statements is false?
27. What is the way a particular application views the data from the database that the application uses?
28. Which of the following is not a characteristic of a relational database model?
29. Data independence means
30. Which contains information about a file needed by system programs for accessing file records?
31. Which of the following databases contains data assisting day-to-day activities of the organization?
32. Which keyword is used to find the number of values in a column?
33. DFD stands for
34. Which of the following defines rules regarding the values allowed in columns and is the standard mechanism for enforcing database integrity?
35. The key to represent the relationship between tables is called
36. Grant and revoke are which of the following statements?
37. A relational database developer refers to a record as
38. What is the view of total database content?
39. Which of the following is critical in formulating database design?
40. Which of the following is a condition specified on a database schema and restricts the data that can be stored in an instance of the database?
41. Which of the following has to be dealt with by the integrity subsystem is to ensure that only valid values can be assigned to each data item?
42. In a relational schema, each tuple is divided into fields called
43. Which of the following enables users to create and maintain a database?
44. What is an advantage of the database management approach?
45. What is a set of columns that identifies every row in a table?
46. Which of the following is/are the DDL statements?
47. Which character function can be used to return a specified portion of a character string?
48. What is the number of tuples in a relation?
49. Which of the following are the properties of entities?
50. Which clause is an additional filter that is applied to the result?
51. What is the collection of information stored in a database at a particular moment?
52. Which of the following clauses specifies a search condition for a group or an aggregate?
53. Which of the following is not a logical database structure?
54. Which of the following clauses is used to pass on granted privileges to other users?
55. What is the process of organizing data into related tables?
56. The database schema is written in which of the following languages?
57. What is the feature of the relational model?
58. Which key is a minimal superkey that can also refer to a surrogate key?
59. Which of the following components is NOT included in the database environment?
60. Which of the following operators is basically a join followed by a project on the attributes of the first relation?
61. Data items grouped together for storage purposes is called a
62. Which of the following is a utility to capture a continuous record of server activity and provide auditing capability?
63. In SQL, the CREATE TABLESPACE is used
64. What will be created if a primary key is combined with a foreign key?
65. DCL stands for
66. What language requires a user to specify the data to be retrieved without specifying exactly how to get it?
67. What is the full form of HSAM?
68. If a table has more than one set of attributes that could be chosen as the key, it is called
69. Which of the following databases has only a strict parent-child relationship?
70. Which of the following is TRUE for the system variable "date"?
71. Which of the following is an outstanding functionality of SQL that supports automatic selection of the target data?
72. Who proposed the process of normalization in DBMS at first?
73. What is a special type of integrity constraint that relates two relations & maintains consistency across the relations?
74. Which of the following provides an option for entering SQL queries as execution time, rather than at the development stage?
75. What operator tests the column for the absence of data?
76. Which of the following are used during the operation of the DBMS?
77. Which statement is executed automatically by the system?
78. What is a set of possible data values?
79. Which of the following is used to define the overall design of the database?
80. DBMS helps to achieve
81. What defines the structure of a relation that consists of a fixed set of attribute-domain pairs?
82. Which of the following is not a binary operator in relational algebra?
83. Which of the following is a preferred method for enforcing data integrity?
84. Which is a proper subset designed to support views belonging to different classes of users in order to hide or protect information?
85. Which data type can store unstructured data?
86. Which of the following files are used during the operation of the DBMS?
87. What is a full form of SQL?
88. In SQL, which command is used to issue multiple CREATE TABLE, CREATE VIEW, and GRANT statements in a single transaction?
89. Which database level is closest to the users?
90. In an ER model, which is described in the database by storing its data.

 

Answers:

1. DML is provided for
C) Manipulation & processing of database
2.’AS’ clause is used in SQL for
B) Rename Operation
3. Count function in SQL returns the number of
A) values
4. The statement in SQL which allows to change the definition of a table is
A) Alter
5. Which of the following is correct.
D) None of the above

6. Which of the following operation is used if we are interested in only certain columns of a table?
A) PROJECTION
7. Which of the following is a legal expression in SQL?
B) SELECT NAME FROM EMPLOYEE;
8. Which of the following is a valid SQL type?
D) All of the above
9. Which command is used to select distinct subject (SUB) from the table (BOOK)?
B) SELECT DISTINCT SUB FROM BOOK
10. In SQL, which of the following is not a data definition language commands?
D) UPDATE

Read Next: Solved MCQ of SQL With Answer Set -2
Read More: Collections of DBMS MCQ questions
Download: Free PDF E-book of DBMS MCQ questions

We have created a video on YouTube including a solved MCQ on the database management system including basic SQL queries. Please watch the video and subscribe to our channel to get more videos on DBMS.

Author

Shuseel Baral is a web programmer and the founder of InfoTechSite has over 12 years of experience in software development, internet, SEO, blogging and marketing digital products and services is passionate about exceeding your expectations.

APBCT

Write A Comment

Protected by Security by CleanTalk and CleanTalk Anti-Spam