FPSC Past Papers MCQs

FPSC Database Administrator Model Papers 2026  — 399 MCQs  (Page 3 of 40)

Practice FPSC Past Papers MCQs with solved questions from real past exams. These MCQs cover FPSC Database Administrator Model Papers 2026 past papers and are ideal for candidates preparing for competitive exams.

View Tests (30 MCQs each)
A NATURAL JOIN joins tables on:
  • All columns with the same name in both tables
  • The primary key only
  • The first column only
  • No columns (cross product)
Which statement about COUNT is correct?
  • COUNT(*) counts all rows, while COUNT(column) ignores NULL values
  • COUNT(*) ignores NULL values
  • COUNT(column) counts NULL values
  • COUNT works only with numbers
What does the DISTINCT keyword do?
  • Removes duplicate rows from the result
  • Sorts the result descending
  • Deletes duplicate rows from the table
  • Counts the rows
What is the difference between UNION and UNION ALL?
  • UNION keeps duplicates, UNION ALL removes them
  • They are identical
  • UNION removes duplicates, UNION ALL keeps them
  • UNION ALL works only on numbers
Which statement correctly inserts a row into the EMP table?
  • INSERT INTO emp (id, name) VALUES (1, 'Ali');
  • INSERT emp VALUES INTO (1, 'Ali');
  • ADD INTO emp (id, name) VALUES (1, 'Ali');
  • INSERT INTO emp SET id = 1, name = 'Ali';
What happens if an UPDATE statement has no WHERE clause?
  • All rows in the table are updated
  • Only the first row is updated
  • The statement fails
  • No rows are updated