Home
Current Affairs January 2024

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

Correct Answer :

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.


In the event of a default constraint is 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.

Related Questions

What is the correct answer?

4

Which of the following are the types of the temp tables?

A. Local Temp

B. Global Temp

C. Both A) and B)

D. None of the above

What is the correct answer?

4

What is TRUE about SAVEPOINT?

A. Following the completion of a transaction, it must be executed to save all the operations performed in the transaction.

B. A transaction can be rolled back to its last saved state.

C. A specific part of a transaction can be given a name

D. None of the above

What is the correct answer?

4

Select the correct syntax for Multi-line Comments.

A. //*Line1

B. Line2*//

C. /*Line1

D. Line2/*

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

The SQL Modulus Operator returns the,

A. Quotient

B. Percentage

C. Sum

D. Reminder

What is the correct answer?

4

Global Temp Variable is used with which sign?

A. ###

B. ####

C. #

D. ##

What is the correct answer?

4

What does the DESCRIBE Statement do?

A. In this SQL statement, the data or records are inserted into an existing database table. One query statement can insert multiple records simultaneously using this statement.

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

C. Specify the columns of the table in this SQL statement to return distinct values.

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

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

Select the Aggregate function(s) among the following.

A. AVG()

B. FIRST()

C. LAST()

D. All of the above

What is the correct answer?

4

Select the correct statement.

A. With the DDL commands, any structural changes can be made to the table, including creation, deletion, and alteration.

B. With the DML commands, any structural changes can be made to the table, including creation, deletion, and alteration.

C. With the DCL commands, any structural changes can be made to the table, including creation, deletion, and alteration.

D. With the TCL commands, any structural changes can be made to the table, including creation, deletion, and alteration.

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

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

What does the following statement do?

A. Finds any values that end with a

B. Finds any values whose second character is a

C. Find any values that contains only two characters ending with a

D. Mysql > Savepoint ini;

What is the correct answer?

4

In order to build a link between two tables, which key is used?

A. Primary

B. Foreign

C. Composite

D. Unique

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

When an expression includes ___ SQL operator(s), the sequence in which they are evaluated is known as the SQL operator's precedence.

A. 0

B. 1

C. Multiple

D. NULL

What is the correct answer?

4

Which of the following is TRUE about The Foundation Rule in the 12 Codd's Rules?

A. Relational databases are required.

B. Databases contain a wide variety of information, and each row and column of each table must hold this information.

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

D. Null values are treated in database records according to this rule.

What is the correct answer?

4

Which of the following is SQL Server Date and Time Data Type?

A. timestamp

B. sql_variant

C. real

D. text

What is the correct answer?

4

Select the correct statement which will return all the rows from the Table and then also deletes the Table_Add table?

A. SELECT * FROM Table; DROP TABLE Table_Add

B. SELECT * WHERE Table; DROP TABLE Table_Add

C. SELECT * FROM Table; DELETE TABLE Table_Add

D. SELECT * WHERE Table; DELETE TABLE Table_Add

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

Select the correct type(s) of SQL Comments.

A. Inline Comments

B. Single Line Comments

C. Multi-line Comments

D. All of the above

What is the correct answer?

4

Using the DELETE Query from the CRUD Operator, we can delete

A. Only one row

B. All the rows

C. Only two rows

D. None of the above

What is the correct answer?

4

Types of SQL Commands are

A. DDL

B. DML

C. DCL

D. All of the above

What is the correct answer?

4

ROUND function consists of ___ parameters?

A. One

B. Two

C. Three

D. Four

What is the correct answer?

4

We can use literal in the CONCAT function. What does literal refer to?

A. Number

B. Character

C. Date

D. All of the above

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

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

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 the database, which keyword is used?

A. DROP

B. DELETE

C. ALTER

D. None of the above