Home
Current Affairs January 2024

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

Correct Answer :

D. All of the above


AVG(), FIRST() and LAST() are all the aggregate functions.

Related Questions

What is the correct answer?

4

What is the work of SELECT command?

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

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

What is the clause to delete all rows from the table?

A. SQL DELETE ALL ROWS Table_Name;

B. SQL DELETE ROWS Table_Name;

C. DELETE FROM ALL ROWS Table_Name;

D. DELETE FROM Table_Name;

What is the correct answer?

4

____ integrity is achieved by using a foreign key.

A. Referential Integrity

B. Domain Integrity

C. User-defined Integrity

D. Entity Integrity

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

Description allows the Script to load the

A. Owner of the script

B. Script name

C. Script Editor

D. All of the above

What is the correct answer?

4

Primary keys can be contained in a table only ____?

A. Once

B. Twice

C. Thrice

D. None of the above

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

What is the correct answer?

4

In SQL, which statement can help in changing the name of the table?

A. RENAME

B. ALTER

C. Both A) and B)

D. None of the above

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

Commands that comes under DDL is/are

A. CREATE

B. DROP

C. TRUNCATE

D. All of the above

What is the correct answer?

4

What does the INSERT INTO Statement do?

A. In this SQL statement, the data or records are inserted into an existing database table. One query statement can insert multiple records simultaneously using this statement.

B. A new database will be created through this SQL statement.

C. In the database management system, this SQL statement deletes the existing database, together with all the database tables and views.

D. By executing this SQL statement, all records in the SQL database will be deleted.

What is the correct answer?

4

What does COUNT() function returns?

A. Average value

B. Largest value

C. Smallest value

D. Number of rows

What is the correct answer?

4

What does the following statement do?

A. Finds any values that start with a

B. Finds any values that start with a%

C. Finds any values that contains only two characters starting with a

D. All of the above

What is the correct answer?

4

Which of the following is TRUE about Information Rule in the 12 Codd's Rules?

A. The primary key value, table name, and column name are characteristics that allow us to access the precise data (atomic value) logically from a relational database.

B. Null values are treated in database records according to this rule.

C. Database systems must update all views tables on a regular basis.

D. Databases contain a wide variety of information, and each row and column of each table must hold this information.

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

What is the correct answer?

4

Full form of DML is

A. Data Multiplication Language

B. Data Manipulation Language

C. Data Modify Language

D. Data Mapping Language

What is the correct answer?

4

What does the UPDATE Statement do?

A. By deleting the stored data, this SQL statement deletes the database.

B. A new table in SQL is created using this SQL statement.

C. The stored data in the SQL database is changed or modified by this SQL statement.

D. Columns in the SQL database can be created, deleted, or modified with this SQL statement.

What is the correct answer?

4

With export, you can ____ SQL Scripts from the SQL repositories in your workspace.

A. Export

B. Import

C. Save

D. Exchange

What is the correct answer?

4

Choose the correct syntax of NOW function?

A. SELECT ()NOW;

B. NOW() SELECT;

C. SELECT NOW();

D. SELECT OWN();

What is the correct answer?

4

Which of the following clause cannot be optional in SQL SELECT Statement?

A. WHERE

B. GROUP BY

C. ORDER BY

D. None of the above

What is the correct answer?

4

Select the correct order of precedence among the following?

A. OR > NOT > + > **

B. NOT > OR > ** > +

C. ** > + > OR > NOT

D. ** > + > NOT > OR

What is the correct answer?

4

Which of the following is TRUE about UNIQUE constraint?

A. In columns that are subject to the UNIQUE constraint, duplicate values are not allowed.

B. Unique values will always be present in the column containing the unique constraint.

C. A single table can have more than one unique constraint, since it can be applied to more than one column.

D. All of the above

What is the correct answer?

4

What is the symbol of Concatenation Operator?

A. |

B. ||

C. //

D. \

What is the correct answer?

4

What is TRUE about NOT IN clause?

A. The result is purged of duplicates

B. Duplicate records are not removed

C. Performs column-by-column comparisons

D. None 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

Which function returns the largest value of the column?

A. MIN()

B. MAX()

C. LARGE()

D. AVG()

What is the correct answer?

4

At which of the following stage does SQL Injection occurs?

A. When the user is asked to logout

B. When the user is asked to input password

C. When the user is asked to input captcha

D. When the user is asked to input username

What is the correct answer?

4

In LIKE clause, to represent a single character, _____ is used.

A. -

B. _

C. !

D. &

What is the correct answer?

4

To get the table's previous permanent status, use the ____ command.

A. Commit

B. Transaction

C. Rollback

D. None of the above