Beruflich Dokumente
Kultur Dokumente
Multiple row subqueries return multiple rows from the outer SELECT statement.
Multiple row subqueries return multiple rows from the inner SELECT statement.
Multiple row subqueries use multiple-row comparison operators.
All of the above.
Which of the following code would allocate the privileges of creating tables and view to
the role named student_admin?
Which of the following statements allows William to change his database user account
password to bill?
You want to calculate the tax payable by the employees of an organization. If the
employee gets a commission, then the tax would be calculated on commission plus
salary, if the employee does not get any commission, then the tax would be calculated
on salary only. Which function should you use for calculating tax?
NVL
NVL2
NULLIF
COALESCE
CREATE student_admin;
GRANT student_admin;
CREATE ROLE student_admin;
ROLE student_admin;
Which of the following is not true about the MAX and MIN functions?
CREATE USER
CREATE TABLE
CREATE VIEW
CREATE SEQUENCE
Which of the following code will remove all the rows from the table LOCATIONS?
The join condition is not separated from other search conditions in a query.
The ON clause makes code difficult to understand.
The join condition for natural join is basically an equijoin of all columns with same name.
None of the above.
A NOT NULL constraint specifies that the column cannot have a null value.
A UNIQUE constraint specifies that a column or a combination of column must have unique
values for all rows.
A PRIMARY KEY is same as UNIQUE.
A FOREIGN KEY enforces a foreign key relationship between a column and a referenced
table.
Natural join is based on all columns in two tables having same name
It selects rows from the two tables having different values in the matched columns.
If columns having same names have different data types, it returns error.
None of the above.
Which of the following functions can be used on both numeric as well as non-numeric
data?
COUNT
AVG
STDDEV
VARIANCE
Which of the following is true about subqueries?
Multiple row subqueries return multiple rows from the outer SELECT statement.
Multiple row subqueries return multiple rows from the inner SELECT statement.
Multiple row subqueries use multiple-row comparison operators.
All of the above.