Vidyalelo
Database · all questions

Introduction to SQL
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

69

Questions

3/4

Page

Pick an option on a question to see the right answer and solution.

There is an equivalent join expression that can be substituted for all subquery expressions.

Select an option to see the answer and solution.

A dynamic view is one whose contents materialize when referenced.

Select an option to see the answer and solution.

SQL is a programming language.

Select an option to see the answer and solution.

SELECT DISTINCT is used if a user wishes to see duplicate columns in a query.

Select an option to see the answer and solution.

Indexes can usually be created for both primary and secondary keys.

Select an option to see the answer and solution.

Each index consumes extra storage space and also requires overhead maintenance time whenever indexed data change value.

Select an option to see the answer and solution.

The HAVING clause acts like a WHERE clause, but it identifies groups that meet a criterion, rather than rows.

Select an option to see the answer and solution.

SQL is a data sublanguage.

Select an option to see the answer and solution.

The qualifier DISTINCT must be used in an SQL statement when we want to eliminate duplicate rows.

Select an option to see the answer and solution.

DISTINCT and its counterpart, ALL, can be used more than once in a SELECT statement.

Select an option to see the answer and solution.

The result of every SQL query is a table.

Select an option to see the answer and solution.

COUNT(field_name) tallies only those rows that contain a value; it ignores all null values.

Select an option to see the answer and solution.

SUM, AVG, MIN, and MAX can only be used with numeric columns.

Select an option to see the answer and solution.

Most companies keep at least two versions of any database they are using.

Select an option to see the answer and solution.

The format SELECT-FROM-WHERE is the fundamental framework of SQL SELECT statements.

Select an option to see the answer and solution.

Indexes may be created or dropped at any time.

Select an option to see the answer and solution.

The SQL statement: SELECT Number1 + Number 2 AS Total FROM NUMBER_TABLE; adds two numbers from each row together and lists the results in a column named Total.

Select an option to see the answer and solution.

ORDER BY can be combined with the SELECT statements.

Select an option to see the answer and solution.

Data manipulation language (DML) commands are used to define a database, including creating, altering, and dropping tables and establishing constraints.

Select an option to see the answer and solution.

Scalar aggregate are multiple values returned from an SQL query that includes an aggregate function.

Select an option to see the answer and solution.