Home
Current Affairs January 2024

What is the correct answer?

4

Which of the following is/are transaction control commands in SQL?

A. Commit

B. Rollback

C. Both A. and B.

D. None of the above

Correct Answer :

C. Both A. and B.


Commit and Rollback are transaction control commands in SQL.

Related Questions

What is the correct answer?

4

What will be the output of the below SQL statement?

A. 25

B. 26

C. 25.65

D. 25.00

What is the correct answer?

4

In order to sort the records according to the columns, which clause is used?

A. HAVING

B. GROUP BY

C. ORDER BY

D. None of the above

What is the correct answer?

4

SQL BETWEEN operators include

A. Starting Value

B. In Between Value

C. Ending Value

D. All of the above

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 start with a and are at least 2 characters in length

D. All of the above

What is the correct answer?

4

Which of the following keyword is used to delete the Join?

A. DELETE

B. ON

C. WHERE

D. All of the above

What is the correct answer?

4

What is TRUE about the Active/Dynamic Online Catalog based on the relational model 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 dictionaries represent the complete logic of all descriptive data, which must be stored online.

D. None of the above

What is the correct answer?

4

Using the SQL last() function, one can return the ______ value of the selected column.

A. First

B. Second

C. Third

D. Last

What is the correct answer?

4

In order to delete the database, which keyword is used?

A. DROP

B. DELETE

C. ALTER

D. None of the above

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

In order to delete duplicate rows from the table, which keyword is used?

A. DELETE

B. DISTINCT

C. FROM

D. WHERE

What is the correct answer?

4

What does the ALTER TABLE Statement do?

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

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

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

D. The table, its structure, views, permissions, and triggers will also be deleted or removed with this SQL statement.

What is the correct answer?

4

It is possible to use LIKE clauses with

A. Strings

B. Numbers

C. Both A. and B.

D. None of the above

What is the correct answer?

4

What does the CREATE TABLE Statement do?

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

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

C. A new table in SQL is created using 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

What does the DROP TABLE Statement do?

A. The table, its structure, views, permissions, and triggers will also be deleted or removed with this SQL statement.

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

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

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

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

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

Which statement is used to select the database in SQL?

A. SELECT

B. USE

C. ALTER

D. CREATE

What is the correct answer?

4

In order to manage or store the data in the database, WEB SQL Database is used which is a

A. Web site

B. Web page

C. Web browser

D. None of the above

What is the correct answer?

4

What is TRUE about DEFAULT constraint?

A. The value will first be checked for certain conditions before inserting it into the column when a DEFAULT constraint applies to a column in the table.

B. In the event of a DEFAULT constraint being applied to a table's column without a user specifying the value to be inserted when that constraint was applied, the default value that was specified when the constraint was applied will be put into that column.

C. An index can be created on the table using the DEFAULT constraint.

D. None of the above

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

SQL DELETE can be used to delete,

A. Rows

B. Database

C. View

D. All 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 a SQL Logical Operator?

A. SQL ALL Operator

B. SQL OR Operator

C. SQL LIKE Operator

D. All of the above

What is the correct answer?

4

Which statement is TRUE about the GROUP BY Clause?

A. In order to retrieve rows, GROUP BY Clause is used.

B. In order to group the rows that share the same property, GROUP BY Clause is used.

C. In order to select the defined groups, GROUP BY Clause is used.

D. In order to return the rows, GROUP BY Clause is used.

What is the correct answer?

4

In order to update one table using another table and join condition, which statement is used.

A. SQL UPDATE INTO

B. SQL UPDATE JOIN

C. SQL JOIN

D. SQL JOIN UPDATE

What is the correct answer?

4

What is the functionality of SQL COUNT?

A. It returns the no of record of table

B. It returns the no of record of database

C. It returns the no of record of row

D. It returns the no of record of column

What is the correct answer?

4

In the case of ____ Independence Rule, if using the SQL queries language to insert data into table's cells, the database must maintain integrity independence.

A. Interdependent

B. Intradependent

C. Integration

D. Integrity

What is the correct answer?

4

What does the CREATE DATABASE Statement do?

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

B. The table, its structure, views, permissions, and triggers will also be deleted or removed with 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. A new database will be created through this SQL statement.

What is the correct answer?

4

What is TRUE about UNION ALL Operator?

A. The results of both queries are combined with this operator.

B. After performing the UNION ALL operation, duplicate rows will not be removed.

C. Both A and B

D. None of the above

What is the correct answer?

4

What does the DISTINCT Clause do?

A. Specify the columns of the table in this SQL clause to return distinct values.

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

C. The data specified in this table or view is reported in this SQL statement.

D. Changes made in the SQL database transaction are permanently saved using this SQL statement.