Академический Документы
Профессиональный Документы
Культура Документы
5) Manager’s salary details are hidden from the employee. This is Conceptual level data hiding.
A) Physical level data hiding
B) External level data hiding
C) All of these
D) None of these
6) A schema Contains
A) Username
B) All tables
C) All Anonymous data
D) User’s data
9) You will query which view to know that how many database objects you can access?
A. ALL_TABLES
B. ALL_TAB_COLUMNS
C. ALL_OBJECTS
D. USER_OBJECTS
10) You issue a select statement on the BANK_ACCT table containing the order by clause. Which of
the following uses of the order by clause * would produce an error?
11) When you drop a table with DROP TABLE command, the views based on those tables are also
dropped automatically along with the table.
A. True
B. False.
C. You can’t drop such table
D. View can’t be drop
12) Which statement would you use to remove the EMPLOYEE_ID_PK PRIMARY KEY constraint
and all depending constraints from the EMPLOYEE table?
A. ALTER TABLE employee DROP PRIMARY KEY CASCADE;
B. ALTER TABLE employee DELETE PRIMARY KEY CASCADE;
C. MODIFY TABLE employee DROP CONSTRAINT employee_id_pk CASCADE;
D. ALTER TABLE employee DROP PRIMARY KEY employee_id_pk CASCADE;
E. MODIFY TABLE employee DELETE PRIMARY KEY employee_id_pk CASCADE;
16) Assuming today is Monday, 16 DEC 2014, what is returned by this statement :
17) To produce a meaningful result set without any cartesian products, what is the minimum number
of conditions that should appear in the WHERE clause of a four-table join?
A. There is no such criteria
B. 2
C. 3
D. 4
E. 5
18) The commit and rollback commands are not applicable for __________
A. Insert
B. Create
C. Delete
D. Update
22) You define a multiple-row subquery in the WHERE clause of an SQL query with a
comparison operator "=".What happens when the main query is executed?
A. The main query executes with the first value returned by the subquery.
B. The main query executes with the last value returned by the subquery.
C. The main query fails because the multiple-row subquery cannot be used with the
comparison operator.
D. You cannot define a multiple-row subquery in the WHERE clause of a SQL query.
23) To write a query that performs an outer join of tables A and B and returns all rows from B, You
need to write
A. any outer join
B. a left outer join
C. a right outer join
D. an inner join
26) If you drop a parent row for which, a child exists, then what is the default behaviour?
A. It won’t allow. Error will be returned.
B. It will delete all the child rows along with the parent row.
C. Only parent row is deleted.
D. With the parent row, the first child row in the child table will be deleted.
28) Mark item for review Which best describes an inline view?
A. A schema object
B. A subquery that can contain an ORDER BY clause
C. Another name for a view that contains group functions
D. A subquery that is part of the FROM clause of another query
29) With SQL, how do you select all the records from a table named "Persons" where the
value of the column "FirstName" starts with an "a"?
A. SELECT * FROM PERSONS WHERE FIRSTnAME LIKE “%a”;
B. SELECT * FROM PERSONS WHERE UPPER(FIRSTNAME) LIKE ‘%a%’;
C. SELECT * FROM PERSONS WHERE FIRSTNAME =’%a’;
D. SELECT * FROM PERSONS WHERE FIRSTNAME LIKE ‘a%’;