Home
Current Affairs January 2024

What is the correct answer?

4

Determine the correct SQL command?

A. CREATE

B. UPDATE

C. DELETE

D. All of the above

Correct Answer :

D. All of the above


Commonly used SQL commands are CREATE, UPDATE, and DELETE, etc.

Related Questions

What is the correct answer?

4

What is meant by Partial Database Control?

A. Business rules are hidden.

B. Users or professionals can't have the full control over the database.

C. Both A and B

D. None of the above

What is the correct answer?

4

Bit is an integer that can be

A. 0

B. 1

C. Null

D. All of the above

What is the correct answer?

4

Which function returns the correct date and time?

A. DATE()

B. NOW()

C. TIME()

D. DATETIME()

What is the correct answer?

4

What does the following statement do?

A. Finds any values that start with a and ends with o

B. Finds any values whose first character is a and third character is o

C. Both A. and B.

D. None of the above

What is the correct answer?

4

What is the difference between DELETE and TRUNCATE statements?

A. DELETE statement free up the space kept in check by the table whereas TRUNCATE statement does not free up the space kept in check by the table.

B. DELETE statement does not free up the space kept in check by the table whereas TRUNCATE statement free up the space kept in check by the table.

C. DELETE statement only deletes rows from the table whereas TRUNCATE statement can only delete columns from the table.

D. DELETE statement only deletes columns from the table whereas TRUNCATE statement can only delete rows from the table.

What is the correct answer?

4

Using TIME_FORMAT() function, time can be retrieved in

A. 12-hour format

B. 24-hour format

C. Both A. and B.

D. None of the above

What is the correct answer?

4

If multiple columns are used as Primary Key, it is known as

A. Unique

B. Composite

C. Foreign

D. None of the above

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

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 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

In which clause does the BETWEEN operator is used?

A. IF

B. AS

C. WHERE

D. EXCEPT

What is the correct answer?

4

SQL Like is NOT used with which of the following statement(s)?

A. DELETE

B. SELECT

C. UPDATE

D. ALTER

What is the correct answer?

4

With which of the following statement(s) can the SQL sub queries be used?

A. SELECT

B. UPDATE

C. INSERT

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

To get a record from one table, which is not present in another table, we can use the clause

A. CONCAT

B. COPY

C. EXCEPT

D. ALTER

What is the correct answer?

4

The ____ size of the result is shown by Script Quota.

A. Minimum

B. Maximum

C. Average

D. None of the above

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 SELECT statements used to create Views contain ____ clauses, the views cannot be updated.

A. JOIN

B. HAVING

C. GROUP BY

D. All of the above

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

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

Which of the following is supported in Comprehensive Data SubLanguage Rule in the 12 Codd's Rules?

A. Data Definition

B. View Definition

C. Data Manipulation

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

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

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

In order to create the Index, we need to use which command?

A. ALTER

B. UPDATE

C. CREATE

D. ADD

What is the correct answer?

4

Which of the following states the correct situation in which Indexes should not be used in SQL?

A. When the table is small, it is possible to avoid using SQL indexes.

B. Updates need to be made frequently to the table.

C. When there are a lot of NULL values in a column, indexed should not be used.

D. All of the above

What is the correct answer?

4

What does the CREATE INDEX Statement do?

A. An index is created in a SQL database table with this SQL statement.

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

C. By running this SQL statement, the transaction will be undone and the operations not yet saved to the SQL database will be undone.

D. The SQL database table's index is deleted using this SQL statement.

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 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

Full form of DML is

A. Data Multiplication Language

B. Data Manipulation Language

C. Data Modify Language

D. Data Mapping Language