Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
1691 Which join returns all rows from the left table, even when there is no match in the right table?
Explanation
LEFT JOIN keeps every row from the left table and fills right-table columns with NULL where no match exists.
Last verified on 27-11-2026
1692 Which join returns all rows from the right table, even when there is no match in the left table?
Explanation
RIGHT JOIN keeps every row from the right table and fills left-table columns with NULL where no match exists.
Last verified on 27-11-2026
1693 Which join returns all rows from both tables, with NULLs where there is no match?
Explanation
FULL OUTER JOIN combines LEFT and RIGHT joins, keeping unmatched rows from both sides.
Last verified on 27-11-2026
1694 Which join produces every combination of rows from two tables?
Explanation
CROSS JOIN returns the Cartesian product, pairing every row of the first table with every row of the second.
Last verified on 27-11-2026
1695 If Table A has 3 rows and Table B has 4 rows, how many rows does a CROSS JOIN return?
Explanation
A Cartesian product has 3 times 4, or 12, rows.
Last verified on 27-11-2026
1696 Which join joins a table to itself?
Explanation
A self join uses two aliases for the same table, for example to find each employee and their manager.
Last verified on 27-11-2026
1697 Which statement gives the total salary paid in each department?
Explanation
GROUP BY Department with SUM(Salary) totals salaries separately for each department.
Last verified on 27-11-2026
1698 Which statement gives the average marks for each subject?
Explanation
Grouping by Subject and applying AVG(Marks) returns one average per subject.
Last verified on 27-11-2026
1699 Which statement is invalid because a non-aggregated column is not in GROUP BY?
Explanation
Every selected column that is not aggregated must appear in GROUP BY, so City must be grouped when Age is the grouping column.
Last verified on 27-11-2026
1700 Which TCL statement makes all changes in a transaction permanent?
Explanation
COMMIT ends a transaction and makes its changes permanent in the database.
Last verified on 27-11-2026