Home
Current Affairs January 2024

What is the correct answer?

4

Which of the following are not MySQL Date and Time Data Type?

A. DATE

B. TIME(fsp)

C. YEAR

D. None of the above

Correct Answer :

D. None of the above


MySQL Date and Time Data Types are DATE, TIME(fsp), and YEAR.

Related Questions

What is the correct answer?

4

Which keyword is used in SQL Server to implement the auto increment?

A. UNIQUE

B. IDENTITY

C. INCREMENT

D. ADD

What is the correct answer?

4

Select the correct order of precedence among the following?

A. OR > NOT > + > **

B. NOT > OR > ** > +

C. ** > + > OR > NOT

D. ** > + > NOT > OR

What is the correct answer?

4

SQL has the disadvantage of?

A. SQL is cheap.

B. SQL interface is simple.

C. Both A and B.

D. None of the above.

What is the correct answer?

4

In order to convert the expression from one to another data type, which SQL Function is used?

A. CONVERT

B. CHANGE

C. CAST

D. TRANSIT

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

What is the difference between nchar and nvarchar?

A. nchar is fixed and nvarchar is variable.

B. nchar is variable and nvarchar is fixed.

C. nchar has the maximum size of 4000 characters and nvarchar has the maximum size of 8000 characters.

D. nchar has the maximum size of 800 characters and nvarchar has the maximum size of 4000 characters.

What is the correct answer?

4

____ and ____constraints form the core of the PRIMARY KEY constraint.

A. NOT NULL , CHECK

B. NOT NULL , DEFAULT

C. NOT NULL , FOREIGN KEY

D. NOT NULL , UNIQUE

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

To connect strings, which function is used

A. CONNECT

B. ADD

C. COMBINE

D. CONCAT

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

What is TRUE about NOT IN clause?

A. The result is purged of duplicates

B. Duplicate records are not removed

C. Performs column-by-column comparisons

D. None of the above

What is the correct answer?

4

In the script field, script is found by entering the

A. Script Name

B. Script Number

C. Script ID

D. Script Symbol

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

Select the statement which is TRUE?

A. In a table, there could be any number of rows and any number of columns.

B. In a table, there could be any number of rows and specified number of columns.

C. In a table, there could be any number of columns and specified number of rows.

D. In a table, there could be specified number of rows and specified number of columns.

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

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

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

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

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

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

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

Which of the following is not an SQL Statement?

A. SELECT Statement

B. UPDATE Statement

C. TRUNCATE TABLE Statement

D. FROM Statement

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 of the following is TRUE about Pattern Matching in SQL?

A. In SQL, pattern matching is performed with LIKE clauses.

B. An SQL query usually begins with a LIKE clause before a WHERE clause

C. Using the LIKE clause in an SQL query, we compare the pattern in the query with the pattern present in a table.

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

When the table is truncated:

A. Table structure is dropped

B. Integrity constraints are dropped

C. Relationship is dropped

D. None of the above

What is the correct answer?

4

A single unit of work for all commands executed consecutively is known as-

A. Transaction

B. Commit

C. Rollback

D. Control

What is the correct answer?

4

In order to remove an index, we need to use which command?

A. REMOVE

B. DELETE

C. DROP

D. DEL

What is the correct answer?

4

What is the default length of any data type in the CAST function?

A. 10

B. 20

C. 30

D. 40