Computer Knowledge

Database and SQL

4,213 Questions

Master structured query language commands, database joins, table constraints, and alias generation. This section covers relational database management concepts and query outputs essential for technical aptitude. These technical questions feature prominently in banking IT officer exams and computer knowledge sections.

SQL queries and aliasesDatabase table constraintsDatabase joins and transformationsStored procedures and functions

Database and SQL Questions

Multiple choice technology databases
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

TOP() is a SELECT clause used to limit result rows, not an UPDATE statement feature. In SQL Server, updates with TOP require a subquery or specific syntax, and in Oracle/database systems, TOP doesn't exist for updates at all.

Multiple choice technology databases
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Analytic functions differ from standard aggregate functions because they return a result for each individual row in the query, rather than collapsing the group into a single summary row. Standard aggregate functions with GROUP BY are what return a single row per group.

Multiple choice technology databases
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

In Oracle SQL, all set operators (UNION, UNION ALL, INTERSECT, and MINUS) share the same level of precedence. Consequently, Oracle evaluates them in order from left to right as they appear in the query, unless parentheses are explicitly used to specify a different evaluation order.