Home
Current Affairs January 2024

What is the correct answer?

4

____ function extract characters from the text field.

A. LEN()

B. NOW()

C. MID()

D. FORMAT()

Correct Answer :

C. MID()


MID() function extract characters from the text field.

Related Questions

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

Which of the following constraints are TRUE to be put in Password system?

A. One uppercase character must be included in the password.

B. An eight-character minimum password is required.

C. At least one symbol must appear in the password.

D. All of the above

What is the correct answer?

4

What is TRUE about NOT IN clause?

A. The result is purged of duplicates

B. Duplicate records are not removed

C. Performs column-by-column comparisons

D. None of the above

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

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

A. First

B. Second

C. Third

D. Last

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 of the following is not MySQL Numeric Data Type?

A. BIT(Size)

B. CHAR(Size)

C. INTEGER(Size)

D. INT(Size)

What is the correct answer?

4

All other columns other than the column which is termed as Primary Key, are known as

A. Unique Keys

B. Alternate Keys

C. Composite Keys

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

Whenever a sub query appears in SQL, it is enclosed within ____ and placed to the ____ of the SQL operators.

A. Brackets, Left

B. Brackets, Right

C. Parenthesis, Left

D. Parenthesis, Right

What is the correct answer?

4

Savepoint command is used with _____ command.

A. Commit

B. Transaction

C. Rollback

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

Which one is not the OPTIONAL Clause in SELECT statement?

A. WHERE

B. ORDER BY

C. HAVE

D. HAVING

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

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

Which statement is TRUE about the HAVING Clause?

A. In order to group the rows, HAVING Clause is used.

B. In order to return the rows, HAVING Clause is used.

C. In order to select the defined groups by the GROUP BY Clause, HAVING Clause is used.

D. None of the above

What is the correct answer?

4

Which of the following is among the 12 Codd's Rules?

A. View Updating Rule

B. Relational Level Operation Rule

C. Distribution Independence Rule

D. None of the above

What is the correct answer?

4

What is meant by Partial Database Control?

A. Business rules are hidden.

B. Users or professionals can't have the full control over the database.

C. Both A and B

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

Select the correct statement about SQL Scripts?

A. At the run time, the SQL*Plus commands are ignored.

B. SQL Scripts and SQL Commands in the SQL Scripts have no interaction.

C. Through the SQL Script editor, SQL Commands are cut and pasted.

D. All of the above

What is the correct answer?

4

Which of the following statement is TRUE about DISTINCT Clause?

A. Returns only Distinct values.

B. Only on the single column, it operates.

C. It can be used with the aggregates such as COUNT, AVG, etc.

D. All 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 order to assign a random name to a column or table, which SQL SELECT Clause is used?

A. FROM

B. WHERE

C. HAVING

D. AS

What is the correct answer?

4

Which statement is correct to remove an Index from MySQL Database?

A. DROP INDEX Index_Name;

B. ALTER TABLE Table_Name DROP INDEX Index_Name;

C. DROP INDEX Index_Name ON Table_Name;

D. DROP INDEX Table_Name.Index_Name;

What is the correct answer?

4

Which statement is TRUE about the GROUP BY Clause?

A. In order to retrieve rows, GROUP BY Clause is used.

B. In order to group the rows that share the same property, GROUP BY Clause is used.

C. In order to select the defined groups, GROUP BY Clause is used.

D. In order to return the rows, GROUP BY Clause is used.

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

Which statement is TRUE about the ORDER BY Clause?

A. In order to return the rows in a specific order, ORDER BY Clause is used.

B. In order to group the rows, ORDER BY Clause is used.

C. In order to select the defined groups, ORDER BY Clause is used.

D. None of the above

What is the correct answer?

4

Which of the following is/are Scalar function(s)?

A. UCASE()

B. MID()

C. ROUND()

D. All of the above

What is the correct answer?

4

What does the CREATE TABLE Statement do?

A. The stored data in the SQL database is changed or modified by this SQL statement.

B. By deleting the stored data, this SQL statement deletes the database.

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

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

What is the correct answer?

4

Which statement is used to select the database in SQL?

A. SELECT

B. USE

C. ALTER

D. CREATE