Database & Data Handling (NCCIA) MCQs
1999 MCQs is category mein available hain.
All MCQs in Database & Data Handling (NCCIA)
1661 What is the result of an INNER JOIN when a student has a DeptID that matches no department?
Explanation
INNER JOIN keeps only matched pairs, so a student with no matching department disappears from the result.
Last verified on 27-11-2026
1662 Which statement finds products priced below 100 or above 1000?
Explanation
OR keeps rows outside the 100 to 1000 range; AND would require a price to be both below 100 and above 1000 at once.
Last verified on 27-11-2026
1663 Which clause can replace an INNER JOIN in older SQL style?
Explanation
In older syntax, tables are listed in FROM and the matching condition is written in WHERE.
Last verified on 27-11-2026
1664 What does WHERE Age BETWEEN 18 AND 25 AND City = ‘Lahore’ return?
Explanation
BETWEEN limits Age to 18 to 25 inclusive, and AND adds the Lahore condition, so both must hold.
Last verified on 27-11-2026
1665 What is an equi-join?
Explanation
An equi-join matches rows where the join columns are equal, usually foreign key equals primary key.
Last verified on 27-11-2026
1666 Which LIKE pattern finds a five-letter name starting with S?
Explanation
S followed by four underscores matches exactly five characters, with the first letter S.
Last verified on 27-11-2026
1667 Which join condition would link Orders to Customers correctly?
Explanation
The foreign key CustomerID in Orders must equal the primary key CustomerID in Customers.
Last verified on 27-11-2026
1668 Which LIKE pattern finds names containing ‘ali’ anywhere?
Explanation
Percent signs on both sides allow any characters before and after ali.
Last verified on 27-11-2026
1669 Which statement counts orders per customer, including customers with no orders?
Explanation
LEFT JOIN keeps customers with no orders, and COUNT of the order key counts zero for them instead of counting the customer row.
Last verified on 27-11-2026
1670 Which join type is rarely used because it returns a huge result?
Explanation
A CROSS JOIN pairs every row with every row, so even small tables produce a very large result.
Last verified on 27-11-2026