Quiz
SQL
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (38)
1You can not order the results of a set operation
- ATrue
- BFalse
2 A table can be created with or without data.
- ATrue
- BFalse
3Transaction control determines when data manipulation becomes permanent in a database.
- ATrue
- BFalse
4Consider the SQL statement. Which of the following clauses does not sort the result rows by the salary values in the ascending order? SELECT last_name “Employee”, salary “Salary” FROM employees
- AORDER BY salary;
- BORDER BY 2;
- CORDER BY Salary DESC;
- DORDER BY “Salary” ASC;
5You can rename a table with the RENAME or the ALTER TABLE command.
- ATrue
- BFalse
6\Which of the following functions is not single-row function?
- ACONCAT
- BSUM
- CUPPER
- DROUND
7Write SQL statement for display the department numbers with more than employees in each dept.
- ASelect deptno, count(deptno) from emp group by deptno having count(*)>3;
- BSelect deptno, count (deptno) from emp group by deptno having count(*)>2;
- CSelect deptno, count (emp) from deptno group by emp having count(*)>2;
- DSelect deptno, count(deptno) from deptno group by emp having count(*)>3;
8You cannot drop a user if objects exist in the user’s schema.
- ATrue
- BFalse
9Queries that return more than one row from the inner SELECT statement are called
- AMultiple-row subqueries
- BMultiple-column subqueries
- CSing-column subqueries
- DSingle-row subqueries
10Use the _______ operator to return all rows from multiple tables and eliminate any duplicate rows.
- AUNION ALL
- BMINUS
- CINTERSECT
- DUNION
11Which statement discards all pending data changes
- ASAVEPOINT
- BCOMMIT
- CDISCARD
- DROLLBACK
12Privileges, roles, and synonyms are all used to implement security in an Oracle Database.
- ATrue
- BFalse
13The ____ operator returns all rows that are selected by either query
- AUNOIN ALL
- BINTERSECT
- CUNION
14You can update only a single column at a time in a table.
- ATrue
- BFalse
15Both object and system privileges can be granted through a single role to a user.
- ATrue
- BFalse
16DML statement such as INSERT, UPDATE, DELETE, and MERGE obtain a lock on the row(s), so other users cannot manipulate it.
- ATrue
- BFalse
1743. The UNION and UNION ALL set operator have the opposite effect other.
- ATrue
- BFalse
18A DISTINCT must always be user in the top-most SELECT statement of a set operation
- ATrue
- BFalse
19The TRANCATE command and the TRUNC function can be used interchangeably.
- ATrue
- BFalse
20To obtain a list of last names that students and instructors share, you use the MINUS set operator.
- ATrue
- BFalse
21Any user can grant or revoke any type of system privilege to or from another user
- ATrue
- BFalse
22The data dictionary view USER_TAB_PRIVS_MADE lists details of table privilege grants performed by the current user.
- ATrue
- BFalse
23Consider the EMPLOYEES table. Which of the following displays the maximum average salary for each department?
- ASELECT MAX(AVG(salary)) FROM employees
- BSELECT department_id, MAX(AVG(salary)) FROM employees GROUP BY department_id
- CSELECT AVG(MAX(salary)) FROM employees GROUP BY department_id
- DSELECT MAX(AVG(salary)) FROM employees GROUP BY department_id
24The TRUNCATE command removes all data permanently from a table.
- ATrue
- BFalse
25By default, the foreign key restricts deletes of any parent row has a corresponding child row(s).
- ATrue
- BFalse
26The ______ operator compares a value to every value returned by a subquery.
- ANOT
- BALL
- CSOME
- DANY
27When inserting data into a table form another table, the table names and columns must be the same.
- ATrue
- BFalse
28The data of a temporary table is visible to all session.
- ATrue
- BFalse
29The condition INSERT FIRST command evaluates the WHEN condition in order. For all conditions that are true a row is inserted into the appropriate table.
- ATrue
- BFalse
30The ____ operator compares a value to EACH value returned by a subquery
- ANOT
- BANY
- CALL
31A parent table referenced by a child table may not be dropped.
- ATrue
- BFalse
32You cannot drop a user if objects exist in the user’s schema.
- ATrue
- BFalse
33You can nor selectively delete rows a table.
- ATrue
- BFalse
34It is possible to combine from two tables that do not have a primary key/foreign key relationship into one result using a set operation
- ATrue
- BFalse
35Which of the following functions finds the numeric position of a named character?
- ACONCAT
- BINSTR
- CTRIM
- DSUBSTR
36Which of the following functions joins two strings together?
- ACONCAT
- BTRIM
- CINSTR
- DSUBSTR
37You can nor selectively delete rows a table.
- ATrue
- BFalse
38Use the _____ operator to return all rows from multiple tables and eliminate any duplicate rows.
- AUNION
- BMINUS
- CUNION ALL
Information
- Description
- Quiz on SQL, created by 1610 R on 14/12/2017.
- Author
- 1610 R
- Language
- English
- Views
- 69
- Rating
- No ratings yet Rate this quiz