What is an SQL virtual table that is constructed from other tables?
What is an SQL virtual table that is constructed from other tables?
Which of the following query is correct for using comparison operators in SQL?
Which of the following query is correct for using comparison operators in SQL?
Which of the following query finds colors of boats reserved by "Dustin"?
Which of the following query finds colors of boats reserved by "Dustin"?
The SQL keyword BETWEEN is used:
The SQL keyword BETWEEN is used:
In an SQL SELECT statement querying a single table, according to the SQL-92 standard the asterisk (*) means that:
In an SQL SELECT statement querying a single table, according to the SQL-92 standard the asterisk (*) means that:
Which SQL statement is used to update data in a database?
Which SQL statement is used to update data in a database?
Which of the following group functions ignore NULL values?
Which of the following group functions ignore NULL values?
The SQL statement
SELECT ROUND(45.926, -1) FROM DUAL;
The SQL statement
SELECT ROUND(45.926, -1) FROM DUAL;
Select the right statement to insert values to the student table.
Select the right statement to insert values to the student table.
Count function in SQL returns the number of
Count function in SQL returns the number of
Which of the following query finds the names of the sailors who have reserved at least one boat?
Which of the following query finds the names of the sailors who have reserved at least one boat?
In SQL, which command(s) is(are) used to change a table's storage characteristics?
In SQL, which command(s) is(are) used to change a table's storage characteristics?
The SQL statement
SELECT SUBSTR('123456789', INSTR('abcabcabc', 'b'), 4) FROM DUAL;
The SQL statement
SELECT SUBSTR('123456789', INSTR('abcabcabc', 'b'), 4) FROM DUAL;
The SQL statement
SELECT SUBSTR('abcdefghij', INSTR('123321234', '2', 3, 2), 2) FROM DUAL;
prints
The SQL statement
SELECT SUBSTR('abcdefghij', INSTR('123321234', '2', 3, 2), 2) FROM DUAL;
prints
Which of the following is NOT a type of SQL constraint?
Which of the following is NOT a type of SQL constraint?
Which of the following command makes the updates performed by the transaction permanent in the database?
Which of the following command makes the updates performed by the transaction permanent in the database?
In SQL, which command is used to change a table's storage characteristics?
In SQL, which command is used to change a table's storage characteristics?
Let the statement
SELECT column1 FROM myTable;
return 10 rows. The statement
SELECT ALL column1 FROM myTable;
will return
Let the statement
SELECT column1 FROM myTable;
return 10 rows. The statement
SELECT ALL column1 FROM myTable;
will return
Which SQL keyword is used to sort the result-set?
Which SQL keyword is used to sort the result-set?
Which of the following join is also called as an 'inner-join'?
Which of the following join is also called as an 'inner-join'?
Which command undo all the updates performed by the SQL in the transaction?
Which command undo all the updates performed by the SQL in the transaction?
What is the meaning of LIKE '%0%0%'
What is the meaning of LIKE '%0%0%'
Find the names of the countries whose condition is sunny.
Find the names of the countries whose condition is sunny.
Which is the subset of SQL commands used to manipulate Oracle Database structures, including tables?
Which is the subset of SQL commands used to manipulate Oracle Database structures, including tables?
Which of the SQL statements is correct?
Which of the SQL statements is correct?
The SQL ALTER statement can be used to:
The SQL ALTER statement can be used to:
In SQL, which of the following is not a data definition language commands?
In SQL, which of the following is not a data definition language commands?
Which SQL statement is used to delete data FROM a database?
Which SQL statement is used to delete data FROM a database?
A command that lets you change one or more fields in a record is
A command that lets you change one or more fields in a record is
What SQL command can be used to delete columns from a table?
What SQL command can be used to delete columns from a table?
Which of the following SQL commands can be used to add data to a database table?
Which of the following SQL commands can be used to add data to a database table?
The command to eliminate a table from a database is:
The command to eliminate a table from a database is:
In SQL, which command is used to SELECT only one copy of each set of duplicable rows
In SQL, which command is used to SELECT only one copy of each set of duplicable rows
The SELECT statement SELECT 'Hi' FROM DUAL WHERE NULL = NULL; Outputs
The SELECT statement SELECT 'Hi' FROM DUAL WHERE NULL = NULL; Outputs
The HAVING clause does which of the following?
The HAVING clause does which of the following?
Find the temperature in increasing order of all cities
Find the temperature in increasing order of all cities
The SQL WHERE clause:
The SQL WHERE clause:
The FROM SQL clause is used to...
The FROM SQL clause is used to...
Which SQL keyword is used to retrieve only unique values?
Which SQL keyword is used to retrieve only unique values?
When three or more AND and OR conditions are combined, it is easier to use the SQL keyword(s):
When three or more AND and OR conditions are combined, it is easier to use the SQL keyword(s):
In SQL, which of the following is not a data definition language commands?
In SQL, which of the following is not a data definition language commands?
Find all the tuples having temperature greater than 'Paris'.
Find all the tuples having temperature greater than 'Paris'.
What is a view?
What is a view?
Find all the cities whose humidity is 89
Find all the cities whose humidity is 89
Find the name of those cities with temperature and condition whose condition is either sunny or cloudy but temperature must be greater than 70oF.
Find the name of those cities with temperature and condition whose condition is either sunny or cloudy but temperature must be greater than 70oF.
What operator tests column for the absence of data?
What operator tests column for the absence of data?
When using the SQL INSERT statement:
When using the SQL INSERT statement:
The wildcard in a WHERE clause is useful when?
The wildcard in a WHERE clause is useful when?
Which operator performs pattern matching?
Which operator performs pattern matching?
If a query involves NOT, AND, OR with no parenthesis
If a query involves NOT, AND, OR with no parenthesis
Which of the following query finds the total rating of the sailors who have reserved boat "103"?
Which of the following query finds the total rating of the sailors who have reserved boat "103"?
SQL can be used to:
SQL can be used to:
Which of the following query finds the name of the sailors who have reserved at least two boats?
Which of the following query finds the name of the sailors who have reserved at least two boats?
The command to remove rows from a table 'CUSTOMER' is:
The command to remove rows from a table 'CUSTOMER' is:
What SQL command can be used to add columns to a table?
What SQL command can be used to add columns to a table?
Find the name of cities with all entries whose temperature is in the range of 71 and 89
Find the name of cities with all entries whose temperature is in the range of 71 and 89
Table employee has 10 records. It has a non-NULL SALARY column which is also UNIQUE.
The SQL statement
SELECT COUNT(*) FROM employee WHERE SALARY > ALL (SELECT SALARY FROM EMPLOYEE);
prints
Table employee has 10 records. It has a non-NULL SALARY column which is also UNIQUE.
The SQL statement
SELECT COUNT(*) FROM employee WHERE SALARY > ALL (SELECT SALARY FROM EMPLOYEE);
prints
Find all the cities with temperature, condition and humidity whose humidity is in the range of 63 to 79
Find all the cities with temperature, condition and humidity whose humidity is in the range of 63 to 79
'AS' clause is used in SQL for
'AS' clause is used in SQL for
Which of the following is illegal?
Which of the following is illegal?
The SQL keyword(s) ________ is used with wildcards.
The SQL keyword(s) ________ is used with wildcards.
Which of the following SQL query is correct for selecting the name of staffs from 'staffinfo' table where salary is 10,000 or 25,000?
Which of the following SQL query is correct for selecting the name of staffs from 'staffinfo' table where salary is 10,000 or 25,000?
Table Employee has 10 records. It has a non-NULL SALARY column which is also UNIQUE.
The SQL statement
SELECT COUNT(*) FROM Employee WHERE SALARY > ANY (SELECT SALARY FROM EMPLOYEE);
prints
Table Employee has 10 records. It has a non-NULL SALARY column which is also UNIQUE.
The SQL statement
SELECT COUNT(*) FROM Employee WHERE SALARY > ANY (SELECT SALARY FROM EMPLOYEE);
prints
Find the names of these cities with temperature and condition whose condition is neither sunny nor cloudy
Find the names of these cities with temperature and condition whose condition is neither sunny nor cloudy
-
-
-
-
A subquery in an SQL SELECT statement is enclosed in:
A subquery in an SQL SELECT statement is enclosed in:
Which of the following must be enclosed in double quotes?
Which of the following must be enclosed in double quotes?
What is the full form of SQL?
What is the full form of SQL?
............. joins two or more tables based on a specified column value not equaling a specified column value in another table.
............. joins two or more tables based on a specified column value not equaling a specified column value in another table.
Find the name of all cities with their temperature, humidity and countries.
Find the name of all cities with their temperature, humidity and countries.
-
-
-
-
The result of a SQL SELECT statement is a ________ .
The result of a SQL SELECT statement is a ________ .
Which of the following SQL commands is used to retrieve data?
Which of the following SQL commands is used to retrieve data?
Which of the following do you need to consider when you make a table in SQL?
Which of the following do you need to consider when you make a table in SQL?
What does the following query find?
(SELECT DISTINCT r.sid
FROM boats b, reserves r
WHERE b.bid = r.bid
AND b.color = 'red')
MINUS
(SELECT DISTINCT r.sid
FROM boats b, reserves r
WHERE b.bid = r.bid
AND b.color = 'green')
What does the following query find?
(SELECT DISTINCT r.sid
FROM boats b, reserves r
WHERE b.bid = r.bid
AND b.color = 'red')
MINUS
(SELECT DISTINCT r.sid
FROM boats b, reserves r
WHERE b.bid = r.bid
AND b.color = 'green')
Which of the following is a valid SQL type?
Which of the following is a valid SQL type?
How to select all data from student table starting the name from letter 'r'?
How to select all data from student table starting the name from letter 'r'?
Which of the following is a SQL aggregate function?
Which of the following is a SQL aggregate function?
Which of the following is the original purpose of SQL?
Which of the following is the original purpose of SQL?
Which SQL keyword is used to retrieve a maximum value?
Which SQL keyword is used to retrieve a maximum value?