Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
1651 Which function returns the number of rows in each group, including groups formed from NULL values?
Explanation
COUNT(*) counts every row in a group, even when the grouping column is NULL, unlike COUNT(column).
Last verified on 27-11-2026
1652 Which statement returns the number of distinct cities in Students?
Explanation
COUNT with DISTINCT counts each different city once, ignoring repeated values.
Last verified on 27-11-2026
1653 What does AVG ignore when calculating an average?
Explanation
AVG skips NULL values, so missing values do not lower or raise the average.
Last verified on 27-11-2026
1654 If Marks are 80, 90 and NULL, what does AVG(Marks) return?
Explanation
AVG ignores the NULL and averages 80 and 90, giving 85.
Last verified on 27-11-2026
1655 Which statement gives the highest salary in each department?
Explanation
GROUP BY Department with MAX(Salary) returns the largest salary separately for each department.
Last verified on 27-11-2026
1656 Which of the following is true about join order in an INNER JOIN?
Explanation
An INNER JOIN is symmetric, so the same matched pairs are returned whichever table is listed first.
Last verified on 27-11-2026
1657 Which GROUP BY statement groups sales by both Year and Region?
Explanation
GROUP BY with two columns creates one group for each Year and Region combination.
Last verified on 27-11-2026
1658 What is the difference between WHERE and HAVING?
Explanation
WHERE applies before GROUP BY to individual rows, while HAVING applies after grouping to the grouped results.
Last verified on 27-11-2026
1659 Which statement finds cities with an average marks value above 70?
Explanation
An aggregate condition on groups must be in HAVING, so HAVING AVG(Marks) > 70 filters the grouped averages.
Last verified on 27-11-2026
1660 Which operator combines two conditions so that either may be true?
Explanation
OR returns true when at least one of its conditions is true.
Last verified on 27-11-2026