MCQs > Database Management > Database MCQs > SQL Server Database MCQs

SQL Server Database MCQ

A subquery can be coded in a where, from, select, or ______________ clause.

Answer

Correct Answer: Select

Note: This Question is unanswered, help us to find answer for this one

A subquery is a/an ______________ statement thats coded within another sql statement.

Answer

Correct Answer: SELECT

Note: This Question is unanswered, help us to find answer for this one

A subquery must include a(n) ____ clause.

Answer

Correct Answer: SELECT

Note: This Question is unanswered, help us to find answer for this one

In sql server, you can use the ____ function to obtain today?s date.

Answer

Correct Answer: GETDATE()​

Note: This Question is unanswered, help us to find answer for this one

Only one ____ constraint can exist for each table.

Answer

Correct Answer: PRIMARY KEY

Note: This Question is unanswered, help us to find answer for this one

The ____ function is used to create a constant.

Answer

Correct Answer: Define()

Note: This Question is unanswered, help us to find answer for this one

The ____ data type stores only the actual character string.

Answer

Correct Answer: VARCHAR

Note: This Question is unanswered, help us to find answer for this one

The ____ command is permanent.

Answer

Correct Answer: ​COMMIT

Note: This Question is unanswered, help us to find answer for this one

The ____ data type is used to store integers.

Answer

Correct Answer: INT

Note: This Question is unanswered, help us to find answer for this one

When a script file contains more than one command, each command must end with a(n) ____.

Answer

Correct Answer: Semicolon

Note: This Question is unanswered, help us to find answer for this one

A ____ procedure returns a single value to the calling procedure.

Answer

Correct Answer: Function

Note: This Question is unanswered, help us to find answer for this one

In sql, table names cannot exceed ____ characters.

Answer

Correct Answer: 30

Note: This Question is unanswered, help us to find answer for this one

The privilege ____ can be granted to change the table structure.

Answer

Correct Answer: ALTER

Note: This Question is unanswered, help us to find answer for this one

The ____ is responsible for ensuring database security and integrity.

Answer

Correct Answer: Database programmer

Note: This Question is unanswered, help us to find answer for this one

The sql command that lets you select attributes from rows in one or more tables is ____.

Answer

Correct Answer: SELECT

Note: This Question is unanswered, help us to find answer for this one

The sql command that lets you insert rows into a table is ____.

Answer

Correct Answer: INSERT

Note: This Question is unanswered, help us to find answer for this one

The sql command that allows a user to list the contents of a table is _____.

Answer

Correct Answer: SELECT

Note: This Question is unanswered, help us to find answer for this one

The sql character data format(s) is(are) ____.

Answer

Correct Answer: CHAR and VARCHAR2.

Note: This Question is unanswered, help us to find answer for this one

Any create command may be reversed by using a(n) ________ command.

Answer

Correct Answer: Drop

Note: This Question is unanswered, help us to find answer for this one

An example of a command you would use when making changes to a product table is ____.

Answer

Correct Answer: UPDATE PRODUCT, SET P_INDATE = '18-JAN-2004', WHERE P_CODE = '13-Q2/P2';

Note: This Question is unanswered, help us to find answer for this one

A ________ is an in-memory copy of data read from database tables.

Answer

Correct Answer: Dataset

Note: This Question is unanswered, help us to find answer for this one

________ is a set of commands used to update and query a database.

Answer

Correct Answer: DML

Note: This Question is unanswered, help us to find answer for this one

________ is a set of commands used to control a database, which includes security.

Answer

Correct Answer: DCL

Note: This Question is unanswered, help us to find answer for this one

__________ is a feature that is used for tracking the changes on a table.

Answer

Correct Answer: Change Data Capture

Note: This Question is unanswered, help us to find answer for this one

Which of the following statements is/are true for Plan freezing?

Answer

Correct Answer: IntelliSense of SQL Server 2008 is ON by default and DML statements can also be used with IntelliSense

Note: This Question is unanswered, help us to find answer for this one

SQL Server 2000 always returns the result of a FOR XML query directly to the client in XML form.

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

Which of the following statements is/are false for Plan freezing?

Answer

Correct Answer: Helps to monitor schemas

Note: This Question is unanswered, help us to find answer for this one

By default "FILLFACTOR" value is __________.

Answer

Correct Answer: Zero

Note: This Question is unanswered, help us to find answer for this one

Which join combines all rows from both tables?

Answer

Correct Answer: Cross Join

Note: This Question is unanswered, help us to find answer for this one

By default sql server has ___________ isolation level.

Answer

Correct Answer: READ COMMITTED

Note: This Question is unanswered, help us to find answer for this one

Which of the following statements is/are false for Extended events in sql server 2008?

Answer

Correct Answer: An architecture that is not very scalable, highly configurable.

Note: This Question is unanswered, help us to find answer for this one

What is the default "SORT" order for a SQL?

Answer

Correct Answer: Ascending

Note: This Question is unanswered, help us to find answer for this one

Which of the following DBCC command is used to see when was the last time the index rebuild?

Answer

Correct Answer: DBCC SHOW_STATISTICS

Note: This Question is unanswered, help us to find answer for this one

Difference between UNION and UNION ALL:

Answer

Correct Answer: UNION returns only unique records from both tables. UNION ALL returns all records from both tables.

Note: This Question is unanswered, help us to find answer for this one

Which statement is used to delete all rows in a table without having the action logged?

Answer

Correct Answer: Truncate table statement

Note: This Question is unanswered, help us to find answer for this one

Which of the following prevent "Dirty Reads"?

Answer

Correct Answer: REPEATABLE READ

Note: This Question is unanswered, help us to find answer for this one

Which of the following statements is/are false for Declarative Management Framework (DMF) in sql server 2008?

Answer

Correct Answer: SQL Server does not enforce to define the policies by using Management Studio and a policy can be designed for allowing the usage of unauthorized applications.

Note: This Question is unanswered, help us to find answer for this one

Which of the following fixed database roles can add or remove user IDs?

Answer

Correct Answer: Db_accessadmin

Note: This Question is unanswered, help us to find answer for this one

Which type of integrity preserves the defined relationship between tables when records are entered or deleted?

Answer

Correct Answer: Referential integrity

Note: This Question is unanswered, help us to find answer for this one

Default is a type of constraint although it does not really enforce anything.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

CPUs can dynamically be added to a running system, by using __________ feature.

Answer

Correct Answer: Hot Add CPU

Note: This Question is unanswered, help us to find answer for this one

A filtered index is an optimized non-clustered index.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one