Home
Current Affairs January 2024

What is the correct answer?

4

Combining the results of ___ select statements will be done using UNION.

A. One

B. Two

C. Three

D. Four

Correct Answer :

B. Two


Combining the results of two select statements will be done using UNION.

Related Questions

What is the correct answer?

4

SQL EXCEPT returns the record from -

A. First SELECT Query

B. Second SELECT Query

C. Third SELECT Query

D. None of the above

What is the correct answer?

4

Which statement is not true?

A. SQL is rational whereas No-SQL is non-rational.

B. SQL follows BASE Model whereas No-SQL follows ACID Model.

C. SQL database are vertically scalable whereas No-SQL database are horizontally scalable.

D. No-SQL databases are preferable to store hierarchical data in comparison SQL databases.

What is the correct answer?

4

Command that comes under DML is/are

A. ROLLBACK

B. GRANT

C. UPDATE

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

Which of the following is TRUE about Savepoint command?

A. A transaction is marked in a table by this TCL command.

B. Imagine that you are making a long table, and you want to roll back only to a specific point in the table. You can do this with the savepoint.

C. In order to rollback part of a table rather than the entire table, a savepoint is useful.

D. All of the above

What is the correct answer?

4

In order to update one table using another table and join condition, which statement is used.

A. SQL UPDATE INTO

B. SQL UPDATE JOIN

C. SQL JOIN

D. SQL JOIN UPDATE

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

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

Types of SQL Commands are

A. DDL

B. DML

C. DCL

D. All of the above

What is the correct answer?

4

A SELECT statement is intersected to use it as a join, but it only returns the records that are ________ between both statements.

A. Distinct

B. Common

C. Shared

D. Both B and C

What is the correct answer?

4

To delete table definition and all data from the table, which statement is used?

A. DELETE

B. DROP

C. ALTER

D. None of the above

What is the correct answer?

4

Which of the following clause cannot be optional in SQL SELECT Statement?

A. WHERE

B. GROUP BY

C. ORDER BY

D. None of the above

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

In order to sort the records according to the columns, which clause is used?

A. HAVING

B. GROUP BY

C. ORDER BY

D. None of the above

What is the correct answer?

4

In order to join N tables, minimum number of join statements required is

A. N

B. N-1

C. N-2

D. N+1

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

Which clause is needed in CTE SQL syntax?

A. FOR

B. AS

C. WITH

D. TO

What is the correct answer?

4

What is the symbol of Concatenation Operator?

A. |

B. ||

C. //

D. \

What is the correct answer?

4

BETWEEN Operator returns the TRUE value if the column value is

A. <=Value1 & >=Value2

B. <=Value1 & <=Value2

C. >=Value1 & >=Value2

D. >=Value1 & <=Value2

What is the correct answer?

4

Which statement is not true about SQL?

A. Using SQL in relational databases is all about inserting, updating, and deleting data.

B. Sample data can also be described with the aid of this tool.

C. It helps develop relational database functions, events, and views.

D. A SQL user can also set restrictions and permissions for a table column, a view, and a stored procedure.

What is the correct answer?

4

Which of the statement is true?

A. The precedence-low operators are evaluated last in SQL.

B. The precedence-high operators are evaluated first in SQL.

C. Both A and B

D. None of the above

What is the correct answer?

4

The description in SQL Script, displays script in

A. One Line

B. Two Line

C. Three Line

D. Many Lines

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

An SQL ____ is a virtual table, whose contents are based on the SQL statement's results.

A. Concatenate

B. Virtual

C. View

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

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

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

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

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

Following the completion of a transaction, it must be executed to save all the operations performed in the transaction. Here we are talking about which command?

A. REVOKE

B. COMMIT

C. ROLLBACK

D. SAVE