Edzy
AI TutorResourcesToolsCompareBuy
SearchDownload AppLogin
Edzy

Edzy for Classes 6-12

Edzy is a personal AI tutor for CBSE and State Board students, with curriculum-aligned guidance, practice, revision, and study plans that adapt to each learner.

  • Email: always@edzy.ai
  • Phone: +91 96256 68472
  • WhatsApp: +91 96256 68472
  • Address: Sector 63, Gurgaon, Haryana

Follow Edzy

Browse by Class

  • CBSE Class 6
  • CBSE Class 7
  • CBSE Class 8
  • CBSE Class 9
  • CBSE Class 10
  • CBSE Class 11
  • CBSE Class 12
Explore the CBSE resource hub

Explore Edzy

  • Study Resources
  • Free Study Tools
  • Best Apps for Board Exams
  • Edzy vs ChatGPT
  • About Us
  • Why We Built Edzy
  • Blog
  • CBSE AI Tutor

Support & Legal

  • Help & FAQs
  • Accessibility
  • Privacy Policy
  • Terms & Conditions
  • Refund Policy
  • Cookie Policy
  • Site Directory

© 2026 Edzy. All rights reserved.

Curriculum-aligned learning paths for students in Classes 6-12.

CBSE
Class 11
Informatics Practices
Informatics Practices
Introduction to Structured Que...
Question Bank

Question Bank - Introduction t...

Practice Hub

Question Bank: Introduction to Structured Query Language (SQL)

This chapter introduces Structured Query Language (SQL) and its role in managing data within relational databases. It is essential for creating and manipulating databases effectively.

Structured practice

Question Bank - Introduction to Structured Query Language (SQL)

Q1.

What does SQL stand for?

Single Answer MCQ
Q-00066973
View explanation
Q2.

Which of the following is a relational database management system?

Single Answer MCQ
Q-00066974
View explanation
Q3.

In SQL, which command is used to extract data from a database?

Single Answer MCQ
Q-00066975
View explanation
Q4.

What is the purpose of the WHERE clause in SQL?

Single Answer MCQ
Q-00066976
View explanation
Q5.

Which SQL statement is used to update existing data in a table?

Single Answer MCQ
Q-00066977
View explanation
Q6.

What is a primary key in a database?

Single Answer MCQ
Q-00066978
View explanation
Q7.

What will the command 'SELECT * FROM EMPLOYEE;' return?

Single Answer MCQ
Q-00066979
View explanation
Q8.

Which keyword would you use to remove a row from a table?

Single Answer MCQ
Q-00066980
View explanation
Q9.

In SQL, which operator is used to filter records within a certain range?

Single Answer MCQ
Q-00066981
View explanation
Q10.

What is the purpose of the DISTINCT keyword in SQL?

Single Answer MCQ
Q-00066982
View explanation
Q11.

What is a foreign key?

Single Answer MCQ
Q-00066983
View explanation
Q12.

Which SQL statement is used to create a new table?

Single Answer MCQ
Q-00066984
View explanation
Q13.

What data type would you use to store a date in MySQL?

Single Answer MCQ
Q-00066985
View explanation
Q14.

What does the ORDER BY clause do in an SQL query?

Single Answer MCQ
Q-00066986
View explanation
Q15.

What is the use of the LIKE operator in SQL?

Single Answer MCQ
Q-00066987
View explanation
Q16.

Which command would modify an attribute of an existing table in SQL?

Single Answer MCQ
Q-00066988
View explanation
Q17.

What happens when you execute a SELECT query without a WHERE clause?

Single Answer MCQ
Q-00066989
View explanation
Q18.

What type of data does the INT data type hold in MySQL?

Single Answer MCQ
Q-00066990
View explanation
Q19.

Which data type is suitable for storing a postal code of fixed length?

Single Answer MCQ
Q-00066991
View explanation
Q20.

What does the NOT NULL constraint enforce in a table column?

Single Answer MCQ
Q-00066992
View explanation
Q21.

How much storage does the FLOAT data type occupy in MySQL?

Single Answer MCQ
Q-00066993
View explanation
Q22.

What does the UNIQUE constraint ensure for a column in a table?

Single Answer MCQ
Q-00066994
View explanation
Q23.

For which of the following would you typically use the DATE data type?

Single Answer MCQ
Q-00066995
View explanation
Q24.

What is the main feature of the VARCHAR data type in MySQL?

Single Answer MCQ
Q-00066996
View explanation
Q25.

Which of the following is NOT a valid SQL constraint?

Single Answer MCQ
Q-00066997
View explanation
Q26.

If you want to ensure a column can reference a primary key from another table, which constraint should you use?

Single Answer MCQ
Q-00066998
View explanation
Q27.

What will happen if you attempt to insert NULL into a NOT NULL column?

Single Answer MCQ
Q-00066999
View explanation
Q28.

Which data type would you choose for precise monetary values?

Single Answer MCQ
Q-00067000
View explanation
Q29.

Which data type allows storing up to 65535 characters?

Single Answer MCQ
Q-00067001
View explanation
Q30.

What type of constraints can form a composite primary key?

Single Answer MCQ
Q-00067002
View explanation
Q31.

When defining a column with a DEFAULT constraint, what happens if no value is supplied during insertion?

Single Answer MCQ
Q-00067003
View explanation
Q32.

What is the purpose of defining constraints on data types in MySQL?

Single Answer MCQ
Q-00067004
View explanation
Q33.

What is the maximum length for the CHAR data type in MySQL?

Single Answer MCQ
Q-00067005
View explanation
Q34.

Which of the following SQL statements is used to extract information from a database?

Single Answer MCQ
Q-00067006
View explanation
Q35.

What keyword is used to sort the results returned by a SQL query?

Single Answer MCQ
Q-00067007
View explanation
Q36.

How do you insert a new record into the STUDENT table with a NULL GUID?

Single Answer MCQ
Q-00067008
View explanation
Q37.

What will the following SQL command do: SELECT DISTINCT SName FROM STUDENT?

Single Answer MCQ
Q-00067009
View explanation
Q38.

Which SQL clause is used to specify conditions when retrieving data?

Single Answer MCQ
Q-00067010
View explanation
Q39.

In SQL, what operator is used to check for a NULL value?

Single Answer MCQ
Q-00067011
View explanation
Q40.

What will be the output of the query SELECT * FROM EMPLOYEE WHERE Salary > 30000?

Single Answer MCQ
Q-00067012
View explanation
Q41.

How can you rename a column in the result set of a SQL query?

Single Answer MCQ
Q-00067013
View explanation
Q42.

What does the SQL command 'DROP TABLE' do?

Single Answer MCQ
Q-00067014
View explanation
Q43.

If you want to obtain a list of employees not in departments D01 or D02, which SQL statement would you use?

Single Answer MCQ
Q-00067015
View explanation
Q44.

What is the purpose of the SQL command 'GROUP BY'?

Single Answer MCQ
Q-00067016
View explanation
Q45.

Which SQL statement is used to modify existing data in a database table?

Single Answer MCQ
Q-00067017
View explanation
Q46.

In SQL, which clause would you use to limit the results returned to a specific number of records?

Single Answer MCQ
Q-00067018
View explanation
Q47.

Which of the following statements will correctly display the annual salary of employees?

Single Answer MCQ
Q-00067019
View explanation
Q48.

What will be the output of: SELECT COUNT(*) FROM EMPLOYEE WHERE Salary > 35000?

Single Answer MCQ
Q-00067020
View explanation
Q49.

What is the first step in creating a database using SQL?

Single Answer MCQ
Q-00067021
View explanation
Q50.

Which statement is used to create a table in SQL?

Single Answer MCQ
Q-00067022
View explanation
Q51.

Which data type is used for storing whole numbers in SQL?

Single Answer MCQ
Q-00067023
View explanation
Q52.

What constraint ensures that a column value cannot be NULL?

Single Answer MCQ
Q-00067024
View explanation
Q53.

Which of the following SQL statements is used to select a database?

Single Answer MCQ
Q-00067025
View explanation
Q54.

What will the command 'SHOW TABLES;' return if no tables exist in the database?

Single Answer MCQ
Q-00067026
View explanation
Q55.

What is a primary key in SQL?

Single Answer MCQ
Q-00067027
View explanation
Q56.

Which statement accurately describes constraints in SQL?

Single Answer MCQ
Q-00067028
View explanation
Q57.

What does the keyword 'DEFAULT' specify in a table definition?

Single Answer MCQ
Q-00067029
View explanation
Q58.

In SQL, what is the purpose of the 'CREATE DATABASE' command?

Single Answer MCQ
Q-00067030
View explanation
Q59.

Which SQL command is used to delete a table?

Single Answer MCQ
Q-00067031
View explanation
Q60.

How can you alter an existing table structure in SQL?

Single Answer MCQ
Q-00067032
View explanation
Q61.

Which command can be used to ensure unique values in a column?

Single Answer MCQ
Q-00067033
View explanation
Q62.

What is the purpose of a foreign key in a database?

Single Answer MCQ
Q-00067034
View explanation
Q63.

Which SQL statement would you use to create a PRIMARY KEY?

Single Answer MCQ
Q-00067035
View explanation
Q64.

When is it appropriate to use the 'NOT NULL' constraint?

Single Answer MCQ
Q-00067036
View explanation
Q65.

What SQL statement is used to insert new records into a table?

Single Answer MCQ
Q-00067037
View explanation
Q66.

Which of the following is the correct syntax to insert a new record into a table named 'STUDENTS'?

Single Answer MCQ
Q-00067038
View explanation
Q67.

If you want to insert a record but specify only some of the columns, how should the statement be formatted?

Single Answer MCQ
Q-00067039
View explanation
Q68.

What will happen if you try to insert a record with a value for a foreign key that does not exist in the referenced table?

Single Answer MCQ
Q-00067040
View explanation
Q69.

Which SQL statement is used to permanently remove a table from a database?

Single Answer MCQ
Q-00067041
View explanation
Q70.

In the context of SQL, what does the term 'data manipulation' refer to?

Single Answer MCQ
Q-00067042
View explanation
Q71.

Which SQL command will update records in a table?

Single Answer MCQ
Q-00067043
View explanation
Q72.

What SQL statement would you use to retrieve all records from a table named 'ATTENDANCE'?

Single Answer MCQ
Q-00067044
View explanation
Q73.

In SQL, if you need to remove specific records from a table, which clause should you use with the DELETE statement?

Single Answer MCQ
Q-00067045
View explanation
Q74.

To ensure data integrity when inserting a new record, what should you do?

Single Answer MCQ
Q-00067046
View explanation
Q75.

When using the INSERT INTO statement, how do you indicate that some attributes will receive default values?

Single Answer MCQ
Q-00067047
View explanation
Q76.

What does the semicolon signify at the end of an SQL statement?

Single Answer MCQ
Q-00067048
View explanation
Q77.

Which data command would allow you to change values for existing records in a table?

Single Answer MCQ
Q-00067049
View explanation
Q78.

Under what circumstance would you receive an error when executing an INSERT statement?

Single Answer MCQ
Q-00067050
View explanation
Q79.

What is the consequence of using the DROP statement on a database?

Single Answer MCQ
Q-00067051
View explanation
Q80.

If you attempt to execute an UPDATE command without a WHERE clause, what will happen?

Single Answer MCQ
Q-00067052
View explanation
Q81.

What is the purpose of the SELECT statement in SQL?

Single Answer MCQ
Q-00067053
View explanation
Q82.

Which clause in a SQL query specifies the table to retrieve data from?

Single Answer MCQ
Q-00067054
View explanation
Q83.

What does the WHERE clause do in a SQL SELECT statement?

Single Answer MCQ
Q-00067055
View explanation
Q84.

In SQL, how do you specify multiple conditions in a WHERE clause?

Single Answer MCQ
Q-00067056
View explanation
Q85.

What is the default sorting order of the results in a SQL query when no ORDER BY clause is specified?

Single Answer MCQ
Q-00067057
View explanation
Q86.

Which SQL statement would be used to retrieve the names of students born after January 1, 2000?

Single Answer MCQ
Q-00067058
View explanation
Q87.

What is the correct way to write a SQL statement to insert a new student record?

Single Answer MCQ
Q-00067059
View explanation
Q88.

Which SQL function removes duplicates from the results set?

Single Answer MCQ
Q-00067060
View explanation
Q89.

If you want to count the number of records in SQL, which function would you use?

Single Answer MCQ
Q-00067061
View explanation
Q90.

What is the result of executing 'SELECT * FROM STUDENT;', if there are no records in the STUDENT table?

Single Answer MCQ
Q-00067062
View explanation
Q91.

Which command will update the name of a student with RollNumber 1 to 'Alex Smith'?

Single Answer MCQ
Q-00067063
View explanation
Q92.

Which SQL clause is used to group rows that have the same values in specified columns?

Single Answer MCQ
Q-00067064
View explanation
Q93.

What error occurs if the INSERT statement tries to add a new record with a duplicate primary key?

Single Answer MCQ
Q-00067065
View explanation
Q94.

Which command will permanently remove data from a table?

Single Answer MCQ
Q-00067066
View explanation
Q95.

Which SQL statement is used to modify existing records in a table?

Single Answer MCQ
Q-00104225
View explanation
Q96.

What is the risk of executing an UPDATE statement without a WHERE clause?

Single Answer MCQ
Q-00104226
View explanation
Q97.

Which clause is typically used with the DELETE statement?

Single Answer MCQ
Q-00104227
View explanation
Q98.

What result will the following SQL command produce? DELETE FROM EMPLOYEES WHERE EmpID = 10;

Single Answer MCQ
Q-00104228
View explanation
Q99.

In the SQL statement UPDATE Employees SET Salary = Salary * 1.1 WHERE Dept = 'Sales'; what does 'Salary = Salary * 1.1' do?

Single Answer MCQ
Q-00104229
View explanation
Q100.

What does the command SELECT * FROM STUDENT WHERE RollNumber = 3; return?

Single Answer MCQ
Q-00104230
View explanation
Q101.

If the GUID of students with RollNumber 3 and RollNumber 5 are to be updated, which SQL statement is correct?

Single Answer MCQ
Q-00104231
View explanation
Q102.

What SQL keyword is used to identify the records to delete from a table?

Single Answer MCQ
Q-00104232
View explanation
Q103.

Which statement will not update a record correctly?

Single Answer MCQ
Q-00104233
View explanation
Q104.

What will happen if you run DELETE FROM CUSTOMERS; without a WHERE clause?

Single Answer MCQ
Q-00104234
View explanation
Q105.

If you wanted to delete records of students not enrolled in any classes, which SQL statement would you use?

Single Answer MCQ
Q-00104235
View explanation
Q106.

In an UPDATE statement, which of the following represents an attribute?

Single Answer MCQ
Q-00104236
View explanation
Q107.

Which SQL command is used to permanently remove data from a table?

Single Answer MCQ
Q-00104237
View explanation
Q108.

When updating multiple columns, which syntax is valid?

Single Answer MCQ
Q-00104239
View explanation
Q109.

What will be the outcome of the command? UPDATE STUDENT SET Age = Age + 1 WHERE RollNumber = 3;

Single Answer MCQ
Q-00104241
View explanation
Learn Better On The App
Built for collaborative learning

Study With Friends

Join classmates, challenge them in duels, and make practice more engaging.

Quick duels
Shared momentum

Faster access to practice, revision, and daily study flow.

Edzy mobile app preview