Home
Current Affairs January 2024

What is the correct answer?

4

When SELECT statements used to create Views contain ____ clauses, the views cannot be updated.

A. JOIN

B. HAVING

C. GROUP BY

D. All of the above

Correct Answer :

D. All of the above


When SELECT statements used to create Views contain JOIN, HAVING, or GROUP BY clauses, the views cannot be updated.

Related Questions

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

Which clause is needed in CTE SQL syntax?

A. FOR

B. AS

C. WITH

D. TO

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

Why index is important in SQL?

A. The large database can be searched quickly with SQL Indexes.

B. The concept below is a quick way to include different values in those columns.

C. A smaller table may not recognize the performance of an index when used with an index.

D. All of the above

What is the correct answer?

4

Which of the following is the type of SQL Injection attack?

A. It inserts the data

B. It updates the data

C. It deletes the data

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 and ends with o

B. Finds any values whose first character is a and third character is o

C. Both A. and B.

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

For one table, there can be ____unique key constraint(s).

A. 1

B. NULL

C. Many

D. None of the above

What is the correct answer?

4

What is the difference between MIN and MAX function?

A. MIN function is used to show the minimum data and MAX function is used to show the maximum data.

B. MIN function is used to show the maximum data and MAX function is used to show the minimum data.

C. Both of the above

D. None of the above

What is the correct answer?

4

SQL Division operator divides the operand on the ____ side by the operand on the ____ side.

A. Left, Left

B. Right, Left

C. Left, Right

D. Right, Right

What is the correct answer?

4

Numbers of operand used by Binary Operators are?

A. 1

B. 2

C. 3

D. 4

What is the correct answer?

4

What does the INSERT INTO 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. A new database will be created through this SQL statement.

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

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

What is the correct answer?

4

Full form of DCL is -

A. Data Control Language

B. Data Commit Language

C. Data Common Language

D. Data Concatenate Language

What is the correct answer?

4

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

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

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

C. Database systems must update all views tables on a regular basis.

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

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

What does the DROP INDEX Statement do?

A. By running this SQL statement, the transaction will be undone and the operations not yet saved to the SQL database will be undone.

B. The SQL database table's index is deleted using this SQL statement.

C. An index is created in a SQL database table with this SQL statement.

D. An existing SQL database is selected with this SQL statement. A database must be selected from several existing databases before you can perform operations on the table.

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

What is the clause to delete all rows from the table?

A. SQL DELETE ALL ROWS Table_Name;

B. SQL DELETE ROWS Table_Name;

C. DELETE FROM ALL ROWS Table_Name;

D. DELETE FROM Table_Name;

What is the correct answer?

4

What does the following statement do?

A. Finds any values that start with or

B. Finds any value that contains only four characters and second, third characters are 'o', 'r'

C. Finds any values that have or in any position

D. None of the above

What is the correct answer?

4

The SELECT TOP statement shows the limited number of:

A. Rows

B. Columns

C. Tables

D. None of the above

What is the correct answer?

4

What does the CREATE INDEX Statement do?

A. An index is created in a SQL database table with this SQL statement.

B. Changes made in the SQL database transaction are permanently saved using this SQL statement.

C. By running this SQL statement, the transaction will be undone and the operations not yet saved to the SQL database will be undone.

D. The SQL database table's index is deleted using this SQL statement.

What is the correct answer?

4

SQL BETWEEN is a ______ operator.

A. Relational

B. Logical

C. Arithmetic

D. Assignment

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

To rename the Index, we need to use which command?

A. RENAME

B. ALTER

C. UPDATE

D. ADD

What is the correct answer?

4

To add a Primary Key constraint after table is created, which clause is used?

A. UPDATE

B. ADD

C. ALTER

D. JOIN

What is the correct answer?

4

What does the ROLLBACK Statement do?

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

B. Changes made in the SQL database transaction are permanently saved using this SQL statement.

C. By running this SQL statement, the transaction will be undone and the operations not yet saved to the SQL database will be undone.

D. An index is created in a SQL database table with this SQL statement.

What is the correct answer?

4

TRUNCATE TABLE requires:

A. WHERE clause

B. HAVING clause

C. Both a and b

D. None of the above

What is the correct answer?

4

Which of the following clause is optional in SQL SELECT Statement?

A. SELECT

B. FROM

C. HAVING

D. None of the above

What is the correct answer?

4

What is meant by 'SQL is an interactive language'?

A. Learning and understanding SQL is easy

B. It can also be used for communicating with the database.

C. In a few seconds, complex queries can also be answered using this language.

D. All of the above