Which of the following is a valid SQL type?
Which of the following is a valid SQL type?
The SQL keyword BETWEEN is used:
The SQL keyword BETWEEN is used:
Find the names of the countries whose condition is sunny.
Find the names of the countries whose condition is sunny.
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:
............. 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.
Which SQL statement is used to delete data FROM a database?
Which SQL statement is used to delete data FROM a database?
What SQL command can be used to add columns to a table?
What SQL command can be used to add columns to a table?
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?
Find the temperature in increasing order of all cities
Find the temperature in increasing order of all cities
Which of the following query finds colors of boats reserved by "Dustin"?
Which of the following query finds colors of boats reserved by "Dustin"?
Which of the following must be enclosed in double quotes?
Which of the following must be enclosed in double quotes?
Which of the following is NOT a type of SQL constraint?
Which of the following is NOT a type of SQL constraint?
What is the meaning of LIKE '%0%0%'
What is the meaning of LIKE '%0%0%'
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
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'?
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')
If a query involves NOT, AND, OR with no parenthesis
If a query involves NOT, AND, OR with no parenthesis
Select the right statement to insert values to the student table.
Select the right statement to insert values to the student table.
'AS' clause is used in SQL for
'AS' clause is used in SQL for
The SQL keyword(s) ________ is used with wildcards.
The SQL keyword(s) ________ is used with wildcards.
A subquery in an SQL SELECT statement is enclosed in:
A subquery in an SQL SELECT statement is enclosed in:
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"?
What is the full form of SQL?
What is the full form of SQL?
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 following join is also called as an 'inner-join'?
Which of the following join is also called as an 'inner-join'?
What is a view?
What is a view?
The FROM SQL clause is used to...
The FROM SQL clause is used to...
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?
What SQL command can be used to delete columns from a table?
What SQL command can be used to delete columns from a table?
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?
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
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 wildcard in a WHERE clause is useful when?
The wildcard in a WHERE clause is useful when?
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
Which SQL keyword is used to retrieve a maximum value?
Which SQL keyword is used to retrieve a maximum value?
The command to remove rows from a table 'CUSTOMER' is:
The command to remove rows from a table 'CUSTOMER' is:
Which of the following is illegal?
Which of the following is illegal?
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?
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
-
-
-
-
Which of the following is a SQL aggregate function?
Which of the following is a SQL aggregate function?
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?
Find all the cities whose humidity is 89
Find all the cities whose humidity is 89
Which of the following SQL commands is used to retrieve data?
Which of the following SQL commands is used to retrieve data?
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?
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
The SQL ALTER statement can be used to:
The SQL ALTER statement can be used to:
The result of a SQL SELECT statement is a ________ .
The result of a SQL SELECT statement is a ________ .
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?
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?
What operator tests column for the absence of data?
What operator tests column for the absence of data?
The SQL statement
SELECT SUBSTR('123456789', INSTR('abcabcabc', 'b'), 4) FROM DUAL;
The SQL statement
SELECT SUBSTR('123456789', INSTR('abcabcabc', 'b'), 4) FROM DUAL;
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):
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?
The command to eliminate a table from a database is:
The command to eliminate a table from a database is:
Find the name of all cities with their temperature, humidity and countries.
Find the name of all cities with their temperature, humidity and countries.
-
-
-
-
Which operator performs pattern matching?
Which operator performs pattern matching?
The SQL statement
SELECT ROUND(45.926, -1) FROM DUAL;
The SQL statement
SELECT ROUND(45.926, -1) FROM DUAL;
Count function in SQL returns the number of
Count function in SQL returns the number of
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?
Which of the following is the original purpose of SQL?
Which of the following is the original purpose of SQL?
Which of the following group functions ignore NULL values?
Which of the following group functions ignore NULL values?
Which SQL keyword is used to sort the result-set?
Which SQL keyword is used to sort the result-set?
SQL can be used to:
SQL can be used to:
The SQL WHERE clause:
The SQL WHERE clause:
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
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
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?
When using the SQL INSERT statement:
When using the SQL INSERT statement:
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?
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 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?
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.
Which SQL keyword is used to retrieve only unique values?
Which SQL keyword is used to retrieve only unique values?
Which SQL statement is used to update data in a database?
Which SQL statement is used to update data in a database?
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 all the tuples having temperature greater than 'Paris'.
Find all the tuples having temperature greater than 'Paris'.
Which of the SQL statements is correct?
Which of the SQL statements is correct?