Home
Current Affairs January 2024

What is the correct answer?

4

In order to start the transaction, the command used is

A. Mysql > START COMMIT;

B. Mysql > START TRANSACTION;

C. Mysql > START ROLLBACK;

D. None of the above

Correct Answer :

B. Mysql > START TRANSACTION;


To start the transaction, Mysql > START ROLLBACK; command is used.

Related Questions

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 clause is used to retrieve a unique element from the table?

A. SELECT UNIQUE

B. SELECT DISTINCT

C. Both A) and B)

D. None of the above

What is the correct answer?

4

What is the work of CREATE command?

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

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

C. Inserting records or data into the database tables is accomplished with this command. In addition to inserting records in single rows, we can insert records in multiple rows as well.

D. A single or multiple rows can be accessed using this command from one or more tables of a database. Using the WHERE clause with this command is also possible.

What is the correct answer?

4

What is the difference between Column Level and Table Level Constraints?

A. Constraints are applied to a single row using Column Level Constraints whereas Multiple rows can be constrained using a Table Level Constraint.

B. Constraints are applied to multiple rows using Column Level Constraints whereas a single row can be constrained using a Table Level Constraint.

C. Constraints are applied to a single column using Column Level Constraints whereas Multiple columns can be constrained using a Table Level Constraint.

D. Constraints are applied to multiple columns using Column Level Constraints whereas only a single column can be constrained using a Table Level Constraint.

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

Which of the following statement is TRUE about SQL Injection?

A. SQL Injection is an Object Penetration Technique

B. SQL Injection is a Function Penetration Technique

C. SQL Injection is a Code Penetration Technique

D. SQL Injection is a Database Penetration Technique

What is the correct answer?

4

Select the syntax of Single Line Comment.

A. .

B. !

C. --

D. #

What is the correct answer?

4

ORDER BY clause comes ____ the EXCEPT clause in SQL statement?

A. Before

B. After

C. Flexible to before or after

D. None of the above

What is the correct answer?

4

What does AVG() function returns?

A. First value of the column

B. Last value of the column

C. Sum of rows of the table

D. Average value of the column

What is the correct answer?

4

A Key which uniquely identifies each row in the table is known as?

A. Primary Key

B. Unique Key

C. Composite Key

D. Foreign Key

What is the correct answer?

4

Full form of LCASE is -

A. Low case

B. Letter case

C. Light case

D. Lower case

What is the correct answer?

4

Select the correct syntax for Savepoint.

A. Mysql > Transaction ini;

B. Mysql > &Savepoint;

C. Mysql > START Transaction;

D. Mysql > Savepoint ini;

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

Select the correct syntax of SELECT TOP clause?

A. SELECT TOP name

B. SELECT TOP column

C. SELECT TOP FROM

D. SELECT TOP Number

What is the correct answer?

4

Which one is not the OPTIONAL Clause in SELECT statement?

A. WHERE

B. ORDER BY

C. HAVE

D. HAVING

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

Which function returns the largest value of the column?

A. MIN()

B. MAX()

C. LARGE()

D. AVG()

What is the correct answer?

4

Which of the following statement is FALSE?

A. A Primary Key cannot be NULL

B. A Foreign Key cannot be NULL

C. A Primary Key cannot be Duplicate

D. A Foreign Key can be Duplicate

What is the correct answer?

4

When two or more columns are combined to be used to uniquely identify each row in the table, it is known as -

A. Primary Key

B. Unique Key

C. Composite Key

D. Foreign Key

What is the correct answer?

4

Which of the following statement is false?

A. There is no difference between a lower case and upper case keyword in SQL.

B. It is easier to read SQL queries when the keywords are in lowercase.

C. An SQL statement's syntax is determined by its text line.

D. One or more SQL statements can be placed on a single line of text.

What is the correct answer?

4

Temporary variables use ____ resources than table variables.

A. More

B. Less

C. Equal

D. None of the above

What is the correct answer?

4

Determine the correct SQL command?

A. CREATE

B. UPDATE

C. DELETE

D. All of the above

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

The SQL Modulus Operator returns the,

A. Quotient

B. Percentage

C. Sum

D. Reminder

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

LIKE clause can be used with

A. % operator

B. _ operator

C. NOT operator

D. All of the above

What is the correct answer?

4

Which syntax is correct for RENAME DATABASE in MySQL?

A. RENAME old_database_name TO new_database_name;

B. RENAME DATABASE old_database_name TO new_database_name;

C. ALTER old_database_name MODIFY NAME = new_database_name;

D. ALTER DATABASE old_database_name MODIFY NAME = new_database_name;

What is the correct answer?

4

A Primary Key is basically a

A. Row

B. Column

C. Table

D. Database

What is the correct answer?

4

The description in SQL Script, displays script in

A. One Line

B. Two Line

C. Three Line

D. Many Lines

What is the correct answer?

4

Command that comes under DCL is/are -

A. GRANT

B. REVOKE

C. Both A. and B.

D. None of the above