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 12
Informatics Practices
Informatics Practices
Querying and SQL Functions

Question Bank

Practice Hub

Question Bank: Querying and SQL Functions

This chapter explains various SQL functions and querying techniques important for managing databases.

Structured practice
Question Practice

Practice chapter questions in a cleaner, exam-ready flow

Start with curated question sets, move into full module views when needed, and keep discovering related practice without losing your place in the chapter.

Question Bank - Querying and SQL Functions

View all (68)
Q1.

What command is used to retrieve data from a database?

Single Answer MCQ
Q-00093813
View explanation
Q2.

Which SQL function can be used to count the number of rows in a query?

Single Answer MCQ
Q-00093814
View explanation
Q3.

To sort query results in descending order, which keyword should be used?

Single Answer MCQ
Q-00093815
View explanation
Q4.

What type of SQL function is CONCAT()?

Single Answer MCQ
Q-00093816
View explanation
Q5.

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

Single Answer MCQ
Q-00093817
View explanation
Q6.

What is the default sorting order of the ORDER BY clause?

Single Answer MCQ
Q-00093818
View explanation
Q7.

If you want to filter records after grouping, which clause should you use?

Single Answer MCQ
Q-00093819
View explanation
Q8.

What is the purpose of the DISTINCT keyword in SQL?

Single Answer MCQ
Q-00093820
View explanation
Q9.

Which SQL command creates a new table?

Single Answer MCQ
Q-00093821
View explanation
Q10.

What is a primary key in a table?

Single Answer MCQ
Q-00093822
View explanation
Q11.

Which function would you use to find the average value of a numeric column?

Single Answer MCQ
Q-00093823
View explanation
Q12.

In SQL, which operator is used for pattern matching?

Single Answer MCQ
Q-00093824
View explanation
Q13.

What does an inner join do in SQL?

Single Answer MCQ
Q-00093825
View explanation
Q14.

Which SQL statement updates existing records in a table?

Single Answer MCQ
Q-00093826
View explanation
Q15.

Which of the following is an example of a numeric function in SQL?

Single Answer MCQ
Q-00093841
View explanation
Q16.

What does the AVG() function in SQL return?

Single Answer MCQ
Q-00093842
View explanation
Q17.

Which single row function would you use to find the length of a string?

Single Answer MCQ
Q-00093843
View explanation
Q18.

Which of the following functions would correctly round a numeric value to the nearest integer in SQL?

Single Answer MCQ
Q-00093844
View explanation
Q19.

What does the MIN() function return in SQL?

Single Answer MCQ
Q-00093845
View explanation
Q20.

In SQL, which function would you use to convert a string to uppercase?

Single Answer MCQ
Q-00093846
View explanation
Q21.

Which function returns the current date in SQL?

Single Answer MCQ
Q-00093847
View explanation
Q22.

What is the primary difference between single row functions and aggregate functions?

Single Answer MCQ
Q-00093848
View explanation
Q23.

Which function would you use to remove leading spaces from a string in SQL?

Single Answer MCQ
Q-00093849
View explanation
Q24.

Which SQL function is used to calculate the number of rows in a result set?

Single Answer MCQ
Q-00093850
View explanation
Q25.

When would you use the DATE() function in SQL?

Single Answer MCQ
Q-00093851
View explanation
Q26.

How would the MOD() function be used in SQL?

Single Answer MCQ
Q-00093852
View explanation
Q27.

Which SQL function gives the name of the month for any date input?

Single Answer MCQ
Q-00093853
View explanation
Q28.

What is a characteristic of Aggregate Functions?

Single Answer MCQ
Q-00093854
View explanation
Q29.

Which SQL function could cause a problem if used on a NULL value when calculating the average?

Single Answer MCQ
Q-00093855
View explanation
Q30.

What does the UNION operation do in SQL?

Single Answer MCQ
Q-00093856
View explanation
Q31.

Which condition must be met to perform a UNION operation?

Single Answer MCQ
Q-00093857
View explanation
Q32.

If two tables A and B have the same column names and data types, which of the following SQL statements correctly performs a UNION?

Single Answer MCQ
Q-00093858
View explanation
Q33.

What is the primary purpose of the INTERSECT operation in SQL?

Single Answer MCQ
Q-00093859
View explanation
Q34.

Which SQL function would you use to determine the number of records in a table that match specific criteria?

Single Answer MCQ
Q-00093860
View explanation
Q35.

In SQL, what does the GROUP BY clause accomplish?

Single Answer MCQ
Q-00093861
View explanation
Q36.

Using the DANCE table provided, how would you find students in Class '7A'?

Single Answer MCQ
Q-00093862
View explanation
Q37.

Which statement is true regarding the difference operation in SQL?

Single Answer MCQ
Q-00093863
View explanation
Q38.

What does using 'ORDER BY' in a SQL query do?

Single Answer MCQ
Q-00093864
View explanation
Q39.

Given tables A and B, which SQL statement correctly executes a UNION while removing duplicates?

Single Answer MCQ
Q-00093865
View explanation
Q40.

What will be the result of using the INTERSECT operation on two tables with no common records?

Single Answer MCQ
Q-00093866
View explanation
Q41.

In the provided DANCE and MUSIC tables, how can you find all unique names present in both tables?

Single Answer MCQ
Q-00093867
View explanation
Q42.

If you want to consolidate a set of results by counting occurrences of different names, which SQL clause would you use?

Single Answer MCQ
Q-00093868
View explanation
Q43.

When performing a SQL operation between two tables, what must be consistent in their columns?

Single Answer MCQ
Q-00093869
View explanation
Q44.

What does the GROUP BY clause do in SQL?

Single Answer MCQ
Q-00093870
View explanation
Q45.

Which SQL function can be used with GROUP BY to find the average value?

Single Answer MCQ
Q-00093871
View explanation
Q46.

Which of the following queries correctly groups data by CustID and counts orders?

Single Answer MCQ
Q-00093872
View explanation
Q47.

What does the HAVING clause do in conjunction with GROUP BY?

Single Answer MCQ
Q-00093873
View explanation
Q48.

If you want to display only those customers who purchased more than one car, which query would you use?

Single Answer MCQ
Q-00093874
View explanation
Q49.

Which function would you use to find the maximum sale price of cars grouped by the payment mode?

Single Answer MCQ
Q-00093875
View explanation
Q50.

What result will this query return: SELECT PaymentMode, COUNT(*) FROM SALE GROUP BY PaymentMode HAVING COUNT(*) > 1?

Single Answer MCQ
Q-00093876
View explanation
Q51.

Why is it necessary to use GROUP BY with aggregate functions?

Single Answer MCQ
Q-00093877
View explanation
Q52.

Which SQL query counts the total cars sold by each employee?

Single Answer MCQ
Q-00093878
View explanation
Q53.

In which scenario would the HAVING clause not be necessary?

Single Answer MCQ
Q-00093879
View explanation
Q54.

What result is expected when executing: SELECT COUNT(*) FROM SALE GROUP BY PaymentMode HAVING COUNT(*) < 2?

Single Answer MCQ
Q-00093880
View explanation
Q55.

Which of the following SQL statements will yield the number of distinct payment modes?

Single Answer MCQ
Q-00093881
View explanation
Q56.

How can you find the minimum sale price of cars grouped by Customer ID?

Single Answer MCQ
Q-00093882
View explanation
Q57.

What does the Cartesian product of two tables return?

Single Answer MCQ
Q-00093883
View explanation
Q58.

In SQL, how do you specify multiple tables in a query?

Single Answer MCQ
Q-00093884
View explanation
Q59.

Which SQL query will display all records from DANCE where the Name is also in MUSIC?

Single Answer MCQ
Q-00093885
View explanation
Q60.

Which of the following statements about table aliases is true?

Single Answer MCQ
Q-00093886
View explanation
Q61.

What is typically the relationship between the columns used in a JOIN operation?

Single Answer MCQ
Q-00093887
View explanation
Q62.

Given two tables, PRODUCTS and ORDERS, which SQL statement will correctly display orders along with product details?

Single Answer MCQ
Q-00093888
View explanation
Q63.

When using a Cartesian product, what can be the potential issue?

Single Answer MCQ
Q-00093889
View explanation
Q64.

Which command retrieves data from multiple tables without needing repetitive conditions?

Single Answer MCQ
Q-00093890
View explanation
Q65.

What is the purpose of the USING clause in a JOIN operation?

Single Answer MCQ
Q-00093891
View explanation
Q66.

Which query effectively filters results from DANCE and MUSIC tables based on both conditions being met?

Single Answer MCQ
Q-00093892
View explanation
Q67.

Identify a major difference between INNER JOIN and OUTER JOIN.

Single Answer MCQ
Q-00093893
View explanation
Q68.

Which of the following SQL commands uses both tables to extract data?

Single Answer MCQ
Q-00093894
View explanation
Learn Better On The App
Consistency made easier

Smart Study Reminders

Stay on track with timely nudges that help you keep your study streak alive.

Daily reminders
Better follow-through

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

Edzy mobile app preview