Home
Current Affairs January 2024

What is the correct answer?

4

Which one if these is used to put the same value in all the rows?

A. Group by unique column

B. Group by single column

C. Group by one column

D. Group by same value

Correct Answer :

B. Group by single column


Group by single column is used to put the same value in all the rows.

Related Questions

What is the correct answer?

4

Which of the following statement is false?

A. There is no difference between a lower case and upper case keyword in SQL.

B. It is easier to read SQL queries when the keywords are in lowercase.

C. An SQL statement's syntax is determined by its text line.

D. One or more SQL statements can be placed on a single line of text.

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

What does the DROP TABLE Statement do?

A. The table, its structure, views, permissions, and triggers will also be deleted or removed with this SQL statement.

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

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

D. A new database will be created through this SQL statement.

What is the correct answer?

4

A Key which uniquely identifies each row in the table is known as?

A. Primary Key

B. Unique Key

C. Composite Key

D. Foreign Key

What is the correct answer?

4

In case of ____Rule, 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.

A. Systematic Treatment of Null Values

B. Guaranteed Access

C. View Updating

D. Physical Data Independence

What is the correct answer?

4

Which of the following is TRUE about SQL Auto Increment?

A. It increments the unique number automatically.

B. It decrements the unique number automatically.

C. It keeps the unique number constant

D. None of the above

What is the correct answer?

4

What is the similarity between CLOB and NCLOB Oracle Large Object Data Types?

A. Both CLOB and NCLOB are used for multibyte national character set data.

B. Both CLOB and NCLOB can range upto 2^32-1 bytes or 4 GB.

C. Both CLOB and NCLOB can range upto 2^32-1 bytes or 8GB.

D. Both CLOB and NCLOB are used for singlebyte and multibyte national character set data.

What is the correct answer?

4

Select the correct statement.

A. DDL consist of 4 commands

B. DCL consist of 2 commands

C. TCL consist of 5 commands

D. DML consist of 3 commands

What is the correct answer?

4

Full form of DDL is

A. Data Describe Language

B. Definition Data Language

C. Data Definition Language

D. Data Distinct Language

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

Which clause is used to retrieve a unique element from the table?

A. SELECT UNIQUE

B. SELECT DISTINCT

C. Both A) and B)

D. None of the above

What is the correct answer?

4

Which of the following is the feature(s) of SQL Auto Increment?

A. In some cases you may not have any unique identifying characteristics in data; therefore, it makes sense to create a Primary Key.

B. Explicitly initializing and modifying the auto-increment value is possible at any time.

C. Record identifiers can easily be created that are unique to each record.

D. All of the above

What is the correct answer?

4

NOW function is used to return the current

A. Time

B. Date

C. Date & Time

D. Day

What is the correct answer?

4

In the database table, data types describe the kind of ___ that it can contain.

A. Table

B. Data

C. Number

D. None of the above

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

What is the correct answer?

4

A Sub query is an SQL expression that is placed ____ another SQL statement.

A. Before

B. After

C. Inside

D. Outside

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

Which function returns the correct date and time?

A. DATE()

B. NOW()

C. TIME()

D. DATETIME()

What is the correct answer?

4

What does COUNT() function returns?

A. Average value

B. Largest value

C. Smallest value

D. Number of rows

What is the correct answer?

4

Primary keys can be contained in a table only ____?

A. Once

B. Twice

C. Thrice

D. None of the above

What is the correct answer?

4

SQL BETWEEN operators include

A. Starting Value

B. In Between Value

C. Ending Value

D. All of the above

What is the correct answer?

4

Which syntax is correct for RENAME DATABASE in SQL?

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

Which of the following is not the SQL Comparison Operator?

A. SQL Equal Operator (=)

B. SQL Less Than Operator (<)

C. SQL Greater Than Operator (>)

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

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

Which function is used to obtain the month from the entire data stored in a table's column?

A. DATE

B. TIME

C. MONTH

D. DATE & TIME

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

____ 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

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 contains only two characters starting with a

D. All of the above

What is the correct answer?

4

Unique Index is similar to

A. Primary Key

B. Foreign Key

C. Composite Key

D. Alternate Key