Home
Current Affairs January 2024

What is the correct answer?

4

Using the SQL last() function, one can return the ______ value of the selected column.

A. First

B. Second

C. Third

D. Last

Correct Answer :

D. Last


Using the SQL last() function, one can return the last value of the selected column.

Related Questions

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

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

SQL BETWEEN operators can be used to select the

A. Dates

B. Texts

C. Numbers

D. All of the above

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

In the case of the ____ Independence Rule, It shouldn't make a difference what the user sees (application) if the logical structure changes.

A. Physical Data

B. Logical Data

C. Integrity

D. Distribution

What is the correct answer?

4

Which of the following clause cannot be used in SQL sub queries?

A. GROUP BY

B. ORDER BY

C. DELETE

D. FROM

What is the correct answer?

4

In order to start the transaction, the command used is

A. Mysql > START COMMIT;

B. Mysql > START TRANSACTION;

C. Mysql > START ROLLBACK;

D. None of the above

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

When two or more columns are combined to be used to uniquely identify each row in the table, it is known as -

A. Primary Key

B. Unique Key

C. Composite Key

D. Foreign Key

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 Column Level and Table Level Constraints?

A. Constraints are applied to a single row using Column Level Constraints whereas Multiple rows can be constrained using a Table Level Constraint.

B. Constraints are applied to multiple rows using Column Level Constraints whereas a single row can be constrained using a Table Level Constraint.

C. Constraints are applied to a single column using Column Level Constraints whereas Multiple columns can be constrained using a Table Level Constraint.

D. Constraints are applied to multiple columns using Column Level Constraints whereas only a single column can be constrained using a Table Level Constraint.

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

Which function combines the two different columns?

A. ADD

B. MERGE

C. CONCAT

D. None of the above

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

How can we prevent SQL Injection attack?

A. We should pre-define the input type, input field and length of the user data to validate the input for the user authentication.

B. Access privileges should be restricted for the users

C. Administrator accounts should not be used.

D. All of the above

What is the correct answer?

4

A Primary Key is basically a

A. Row

B. Column

C. Table

D. Database

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

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

What is TRUE about SQL EXCEPT clause?

A. The result is purged of duplicates

B. Duplicate records are not removed

C. Only one column can be compared by a clause

D. None of the above

What is the correct answer?

4

In the relational database, in order to modify index, we need to use which command?

A. ALTER

B. MODIFY

C. UPDATE

D. ADD

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

Full form of LCASE is -

A. Low case

B. Letter case

C. Light case

D. Lower case

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

By constraining a SQL statement, we limit the ____ according to certain conditions or restrictions.

A. Row

B. Column

C. Table

D. Database

What is the correct answer?

4

____ are the columns for the retrieval purpose.

A. Tables

B. WHERE Conditions

C. Expressions

D. None of the above

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

Select the correct rule of SQL EXCEPT.

A. There must be the same number of columns in each table and the same order in every select statement.

B. It is desirable that the columns have similar or compatible data types.

C. Both SELECT statements must have the same fields in their respective columns.

D. All of the above

What is the correct answer?

4

SQL indexes speed up the execution time of which statement(s)?

A. SELECT

B. WHERE

C. Both A and B

D. None of the above

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

What is the difference between nvarchar and ntext?

A. nvarchar is fixed and ntext is variable.

B. nvarchar is variable and ntext is fixed.

C. nvarchar can be of the maximum size upto 4000 characters and ntext can be of the maximum size upto 2GB of the text data.

D. nvarchar can be of the maximum size upto 4000 characters and ntext can be of the maximum size upto 1GB of the text data.