Home
Current Affairs January 2024

What is the correct answer?

4

SQL indexes speed up the execution time of which statement(s)?

A. SELECT

B. WHERE

C. Both A and B

D. None of the above

Correct Answer :

C. Both A and B


SQL Indexes speed up the execution time of SELECT and WHERE statements.

Related Questions

What is the correct answer?

4

Which of the following clause is optional in SQL SELECT Statement?

A. SELECT

B. FROM

C. HAVING

D. None of the above

What is the correct answer?

4

In DBMS, table is known as _____ and row is known as _____.

A. Relation, Tuple

B. Tuple, Tuple

C. Tuple, Relation

D. Relation, Relation

What is the correct answer?

4

When the table is truncated:

A. Table structure is dropped

B. Integrity constraints are dropped

C. Relationship is dropped

D. None of the above

What is the correct answer?

4

How many temp tables are there?

A. 1

B. 2

C. 3

D. 4

What is the correct answer?

4

A single unit of work for all commands executed consecutively is known as-

A. Transaction

B. Commit

C. Rollback

D. Control

What is the correct answer?

4

Following the completion of a transaction, it must be executed to save all the operations performed in the transaction. Here we are talking about which command?

A. REVOKE

B. COMMIT

C. ROLLBACK

D. SAVE

What is the correct answer?

4

Which syntax is used to show all the databases?

A. USE DATABASES;

B. SELECT DATABASES;

C. SHOW DATABASES;

D. None of the above

What is the correct answer?

4

Name of the operators in SET Operators is

A. UNION

B. INTERSECT

C. MINUS

D. All of the above

What is the correct answer?

4

Which of the following is not a SQL Logical Operator?

A. SQL Equal Operator

B. SQL ANY Operator

C. SQL BETWEEN Operator

D. SQL IN Operator

What is the correct answer?

4

Which function is used to extract substrings from the column of the table

A. ROUND()

B. MID()

C. FORMAT()

D. NOW()

What is the correct answer?

4

Full form of DCL is -

A. Data Control Language

B. Data Commit Language

C. Data Common Language

D. Data Concatenate Language

What is the correct answer?

4

Which of the following statement is TRUE about Primary Key?

A. Table integrity is not enforced by the primary key.

B. The data in a primary key is always multiple.

C. 900 bytes is the maximum length of a primary key.

D. Null values are allowed in primary keys.

What is the correct answer?

4

Which of the following statement is correct for SQL Multiplication Operator?

A. SELECT Operand1+Operand2;

B. SELECT Operand1*Operand2;

C. SELECT Operand1**Operand2;

D. SELECT Operand1

What is the correct answer?

4

Which of the following are the types of the temp tables?

A. Local Temp

B. Global Temp

C. Both A) and B)

D. None of the above

What is the correct answer?

4

The character(s) which are used independently or in conjunction with SQL Like Operator:

A. %

B. _

C. Both A. and B.

D. None of the above

What is the correct answer?

4

In which clause does the BETWEEN operator is used?

A. IF

B. AS

C. WHERE

D. EXCEPT

What is the correct answer?

4

What can be the maximum size of char(n) in SQL Server String Data Type?

A. 7000

B. 8000

C. 9000

D. 10000

What is the correct answer?

4

In order to format, how the column should be displayed, which function is used?

A. FORM()

B. DISPLAY()

C. COL()

D. FORMAT()

What is the correct answer?

4

What is the work of DROP command?

A. Using this command, you can remove or erase recorded information from a database table.

B. Database objects such as tables, table views, and other objects can be deleted using this command.

C. One or more rows from one or more tables of the database can be accessed with this command. Using the WHERE clause with this command is also possible.

D. It enables you to create new databases, tables, table views, and other objects using this command.

What is the correct answer?

4

How MySQL determines which one to use, FLOAT or DOUBLE, using the p parameter?

A. If p comes between 0 to 25, data type becomes FLOAT(). If p comes between 26 to 54, data type becomes DOUBLE().

B. If p comes between 26 to 54, data type becomes FLOAT(). If p comes between 0 to 25, data type becomes DOUBLE().

C. If p comes between 25 to 53, data type becomes FLOAT(). If p comes between 0 to 24, data type becomes DOUBLE().

D. If p comes between 0 to 24, data type becomes FLOAT(). If p comes between 25 to 53, data type becomes DOUBLE().

What is the correct answer?

4

Which of the following statement is TRUE about DISTINCT Clause?

A. It cannot ignore the NULL values

B. It can ignore the NULL values

C. Its query can return multiple values

D. None of the above

What is the correct answer?

4

Which function is used to obtain the month from the entire data stored in a table's column?

A. DATE

B. TIME

C. MONTH

D. DATE & TIME

What is the correct answer?

4

Which statement is true about the SQL?

A. SQL databases are vertically scalable.

B. SQL follows BASE Model.

C. SQL database cannot handle complex queries.

D. SQL database does not require object-relational mapping.

What is the correct answer?

4

C in CRUD Operator means

A. To add or insert data

B. To retrieve or fetch data

C. To update the data

D. To delete the data

What is the correct answer?

4

The table records can be retrieved using which command?

A. RETRIEVE

B. SELECT

C. CREATE

D. ALTER

What is the correct answer?

4

Select the Aggregate function(s) among the following.

A. AVG()

B. FIRST()

C. LAST()

D. All of the above

What is the correct answer?

4

Unique Index is similar to

A. Primary Key

B. Foreign Key

C. Composite Key

D. Alternate Key

What is the correct answer?

4

In SQL, Like is a ____ operator.

A. Relational

B. Logical

C. Additional

D. Unique

What is the correct answer?

4

Using the ___ statement, a database can be renamed.

A. SQL CREATE DATABASE

B. SQL RENAME DATABASE

C. SQL DROP DATABASE

D. SQL SELECT DATABASE

What is the correct answer?

4

SET Operators are used to

A. Compile the results from two queries

B. Compile the results from three queries

C. Compile the results from four queries

D. Compile the results from five queries