Home
Current Affairs January 2024

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

Correct Answer :

B. IDENTITY


IDENTITY keyword is used in SQL Server to implement the auto-increment.

Related Questions

What is the correct answer?

4

Using SQL SELECT RANDOM() function, one can return the random

A. Table

B. Database

C. Row

D. Column

What is the correct answer?

4

Difference between GRAND & REVOKE command is/are?

A. The GRANT command can be used to grant a user access to databases and tables whereas The REVOKE command can be used to revoke all access privileges already assigned to the user.

B. The REVOKE command can be used to grant a user access to databases and tables whereas The GRANT command can be used to revoke all access privileges already assigned to the user.

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

D. None of the above

What is the correct answer?

4

Rules that are needed to be followed in SET Operators in SQL are

A. All columns must be identical in number and order.

B. There must be compatibility between data types.

C. Both A and B

D. None of the above

What is the correct answer?

4

Which of the following statement is TRUE?

A. At run time, temporary tables can be created.

B. Temporary table can do similar operations to normal table.

C. Both A) and B)

D. None of the above

What is the correct answer?

4

In case the CTE is wrong, it goes into

A. Infinite Loop

B. Null State

C. False State

D. True State

What is the correct answer?

4

Select the syntax of Single Line Comment.

A. .

B. !

C. --

D. #

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

What is the correct answer?

4

What is the functionality of SQL COUNT?

A. It returns the no of record of table

B. It returns the no of record of database

C. It returns the no of record of row

D. It returns the no of record of column

What is the correct answer?

4

You can also ____ the existing tables by using the UNIQUE constraint.

A. Change

B. Delete

C. Modify

D. Drop

What is the correct answer?

4

What is the work of UPDATE command?

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

B. Using this command, you can remove or erase recorded information from a database table.

C. Database data can be updated or changed using this command.

D. It enables you to create new databases, tables, table views, and other objects using this command.

What is the correct answer?

4

From the set of results, in order to remove the duplicate columns, ____ Clause is used.

A. DUPLICATE

B. DISTINCT

C. REMOVE

D. DROP

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

In order to merge two or more strings, which string function is used?

A. CHAR

B. ALTER

C. CONCAT

D. MERGE

What is the correct answer?

4

What is TRUE about UPDATE in SQL VIEW?

A. Views that depend on a single table can be updated.

B. An update of a view created from more than one table will not be allowed by SQL.

C. There should be no NULL values in the fields of view.

D. All of the above

What is the correct answer?

4

Which of the following is a SQL Logical Operator?

A. SQL ALL Operator

B. SQL OR Operator

C. SQL LIKE Operator

D. All of the above

What is the correct answer?

4

Foreign key is a field in a table that is _______ key in another table?

A. Primary

B. Unique

C. Composite

D. None of the above

What is the correct answer?

4

With export, you can ____ SQL Scripts from the SQL repositories in your workspace.

A. Export

B. Import

C. Save

D. Exchange

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

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

Number of operands used by Unary Operator is?

A. 1

B. 2

C. 3

D. 4

What is the correct answer?

4

What is the work of DELETE command?

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

B. Database data can be updated or changed using this command.

C. Database objects such as tables, table views, and other objects can be deleted using this command.

D. Using this command, you can remove or erase recorded information from a database table.

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

Full form of LCASE is -

A. Low case

B. Letter case

C. Light case

D. Lower case

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

What does the TRUNCATE TABLE Statement do?

A. In the database management system, this SQL statement deletes the existing database, together with all the database tables and views.

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

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

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

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

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

Transaction is able to control the following

A. Transaction

B. Commit

C. Rollback

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

What does this SQL database language design to?

A. Maintain the data in hierarchal database management systems.

B. Maintain the data in relational database management systems.

C. Maintain the data in network database management systems.

D. Maintain the data in object-oriented database management systems.