Home
Current Affairs January 2024

What is the correct answer?

4

Which syntax is correct for RENAME DATABASE in SQL?

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;

Correct Answer :

D. ALTER DATABASE old_database_name MODIFY NAME = new_database_name;


ALTER DATABASE old_database_name MODIFY NAME = new_database_name; syntax is used to Rename Database in SQL.

Related Questions

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

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

We can create View in SQL using

A. CREATE statement

B. CREATE VIEW statement

C. VIEW CREATE statement

D. SQL VIEW statement

What is the correct answer?

4

In case to prevent the endless loop in CTE, ____ is added.

A. MAXLINEAR

B. MAXROUND

C. MAXRECURSION

D. None of the above

What is the correct answer?

4

Which of the following constraints are TRUE to be put in Password system?

A. One uppercase character must be included in the password.

B. An eight-character minimum password is required.

C. At least one symbol must appear in the password.

D. All of the above

What is the correct answer?

4

_____ variables are not supported by SQL Script.

A. Bind

B. Dynamic

C. Both A) and B)

D. None of the above

What is the correct answer?

4

What is TRUE about NOT NULL Constraint?

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

B. When a table's column is declared as NOT NULL, no record in the table can have an empty value for that column.

C. By applying the NOT NULL constraint, we will always ensure that the column contains a unique value and won't allow nulls.

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

What is the correct answer?

4

What is the full form of GUID?

A. Guided Unique Identifier

B. Guided Unique Interpreter

C. Globally Unique Identifier

D. Globally Unique Interpreter

What is the correct answer?

4

Which of the following statement is TRUE?

A. Web API is the part of HTML5

B. Web API is not the part of HTML5

C. Web API is the part of HTML

D. Web API is the part of XHTML

What is the correct answer?

4

What does the SELECT Statement do?

A. Data is read from the SQL database by this statement and displayed to the database user.

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

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

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

What is the correct answer?

4

SQL Division operator divides the operand on the ____ side by the operand on the ____ side.

A. Left, Left

B. Right, Left

C. Left, Right

D. Right, Right

What is the correct answer?

4

In case of ____ data, recursive CTE is used?

A. Round

B. Hierarchal

C. Linear

D. None of the above

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

Which of the following is/are type of SQL Constraint?

A. Column Level

B. Table Level

C. Both A and B

D. None of the above

What is the correct answer?

4

Transaction is able to control the following

A. Transaction

B. Commit

C. Rollback

D. All of the above

What is the correct answer?

4

In the relational database, in order to modify index, we need to use which command?

A. ALTER

B. MODIFY

C. UPDATE

D. ADD

What is the correct answer?

4

Which of the following statement is TRUE about DISTINCT Clause?

A. Returns only Distinct values.

B. Only on the single column, it operates.

C. It can be used with the aggregates such as COUNT, AVG, etc.

D. All of the above

What is the correct answer?

4

When the table is dropped:

A. Table structure is dropped

B. Integrity constraints are dropped

C. Relationship is dropped

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

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 function combines the two different columns?

A. ADD

B. MERGE

C. CONCAT

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

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

Using which SQL Comparison Operator can we find the data that matches our query?

A. SQL Not Equal Operator (!=)

B. SQL Equal Operator (=)

C. SQL Greater Than Operator (>)

D. SQL Less Than Operator (<)

What is the correct answer?

4

SELECT INTO statement -

A. Select the content from a table.

B. Rename the content in a table.

C. Copy the content from one table into another existing table.

D. None of the above

What is the correct answer?

4

In order to execute a query in Web SQL, which function is used?

A. open()

B. translate()

C. transaction()

D. execute()

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

What is the correct answer?

4

What will be the output of the below SQL statement?

A. 2021-10-06 00:00:00.000

B. 2021-10-06

C. 2021 OCT 06

D. 06-10-2021

What is the correct answer?

4

The SELECT TOP statement shows the limited number of:

A. Rows

B. Columns

C. Tables

D. None of the above

What is the correct answer?

4

What does the following statement do?

A. Finds any values that start with or

B. Finds any value that contains only four characters and second, third characters are 'o', 'r'

C. Finds any values that have or in any position

D. None of the above