Home
Current Affairs January 2024

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

Correct Answer :

C. Both A) and B)


In SQL, RENAME and ALTER statement can help change the name of the table.

Related Questions

What is the correct answer?

4

Using which clause, can SQL EXCEPT be used in single table?

A. TO

B. AS

C. WHERE

D. IN

What is the correct answer?

4

Which of the following is the type of SQL Injection attack?

A. It inserts the data

B. It updates the data

C. It deletes the data

D. All of the above

What is the correct answer?

4

Which of the following statement(s) is/are TRUE about DCL?

A. The DCL commands in SQL allow us to control which users have access to the data stored in SQL tables.

B. There will be certain privileges that each user has; consequently, the data can be accessed by them.

C. The DCL commands in SQL allow us to grant privileges to a user on the SQL database and its table(s), or revoke privileges that have already been granted.

D. All of the above

What is the correct answer?

4

What is SQL CREATE Table used for?

A. To Update table

B. To Create table

C. To Delete table

D. None of the above

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

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

Host-based IDS can be used to monitor

A. Web server logs

B. When something weird occurs

C. Both A) and B)

D. None of the above

What is the correct answer?

4

Global Temp Variable is used with which sign?

A. ###

B. ####

C. #

D. ##

What is the correct answer?

4

For integer value, which data type is supported in Oracle?

A. INT

B. Number

C. Digit

D. None of the above

What is the correct answer?

4

In more readable form, you can retrieve the date values, using ______ function?

A. DATE

B. DATE_FORM

C. DATE_FORMAT

D. DATE_VALUE

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

What is the difference between HAVING and WHERE clause?

A. HAVING clause is used in column operation whereas WHERE clause is used in row operation.

B. HAVING clause is post-filter whereas WHERE clause is pre-filter.

C. HAVING clause filters the groups whereas WHERE clauses filter the single record of the table.

D. All of the above

What is the correct answer?

4

Full form of TCL is -

A. Transaction Common Language

B. Transaction Commit Language

C. Transaction Concatenate Language

D. Transaction Control Language

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

What is the functionality of UCASE function?

A. To change the case of the string to lowercase characters.

B. To change the case of the string to uppercase characters.

C. To change the case of the string to numeric characters.

D. To change the case of the string to symbolic characters.

What is the correct answer?

4

Which of the following statement is correct?

A. Comparison Operator has higher precedence than Conjuction Operator.

B. Identity Operator has higher precedence than Multiplication Operator.

C. Both A and B

D. None of the above

What is the correct answer?

4

What is the meaning of Null Values in Systematic Treatment of Null Values in the 12 Codd's Rules?

A. No value in cell

B. Inappropriate Information

C. Unknown data

D. All of the above

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 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 does the DELETE Statement do?

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

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

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

D. By executing this SQL statement, you remove the table and all the information that it contains, including the structure, views, permissions, and triggers.

What is the correct answer?

4

What is the symbol of Concatenation Operator?

A. |

B. ||

C. //

D. \

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

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

What is the correct answer?

4

What is the difference between VARCHAR and VARCHAR2?

A. VARCHAR can store upto 4000 bytes and VARCHAR2 can store upto 8000 bytes.

B. VARCHAR can store upto 2000 bytes and VARCHAR2 can store upto 4000 bytes.

C. Both VARCHAR and VARCHAR2 are similar but use of VARCHAR2 is mostly recommended.

D. There is no similarity between VARCHAR and VARCHAR2.

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

Output returned by the Scalar functions is/are -

A. Single Value

B. Multiple Value

C. Two Values

D. None of the above

What is the correct answer?

4

What does task list consist of in SQL Script?

A. Import

B. Show Quotas

C. Manage Results

D. All of the above

What is the correct answer?

4

TRUNCATE TABLE requires:

A. WHERE clause

B. HAVING clause

C. Both a and b

D. None of the above

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

To rename the Index, we need to use which command?

A. RENAME

B. ALTER

C. UPDATE

D. ADD