WizIQ helps you learn and teach online - any subject you can think of!
Join for FREE

Online Test DDL, DML and DCL commands

Which describes the default behavior when you create a table?
The table is accessible to all users.
Tables are created in the public schema.
Tables are created in your schema.
Tables are created in the DBA schema.
The DBA issues this SQL command: CREATE USER Scott IDENTIFIED by tiger; what privileges do the user Scott has at this point?
no privileges
only the SELECT privilege
only the CONNECT privilege
all the privileges of a default user
Examine these statements: CREATE ROLE registrar; GRANT UPDATE ON student_grades TO registrar; GRANT registrar to user1, user2, user3; What does this set of SQL statements do?
The set of statements contains an error and does not work.
It creates a role called REGISTRAR, adds the MODIFY privilege on the STUDENT_GRADES object to the role, and gives the REGISTRAR role to three users.
It creates a role called REGISTRAR, adds the UPDATE privilege on the STUDENT_GRADES object to the role, and gives the REGISTRAR role to three users.
It creates a role called REGISTRAR, adds the UPDATE privilege on the STUDENT_GRADES object to the role, and creates three users with the role.
Examine the statement: Create synonym EMP for hr.employees; What happens when you issue the statement?
An error is generated.
You will have two identical tables in the HR schema with different names.
You create a table called employees in the HR schema based on your EMP table.
You create an alternative name for the employees table in the HR schema in your own schema
You need to create a view EMP_VU. The view should allow the users to manipulate the records of only the employees that are working for departments 10 or 20. Which SQL statement would you use to create the view EMP_VU?
CREATE VIEW emp_vu AS SELECT * FROM employees WHERE department_id IN (10,20);
CREATE VIEW emp_vu AS SELECT * FROM employees WHERE department_id IN (10,20) WITH READ ONLY;
CREATE VIEW emp_vu AS SELECT * FROM employees WHERE department_id IN (10,20) WITH CHECK OPTION;
CREATE FORCE VIEW emp_vu AS SELECT * FROM employees WHERE department_id IN (10,20);]
Which is a valid CREATE TABLE statement?
CREATE TABLE EMP9$# AS (emp_id number(2));
CREATE TABLE EMP*123 AS (emp_id number(2));
CREATE TABLE PACKAGE AS (pack_id number(2));
CREATE TABLE 1EMP_TEST AS (emp_id number(2));
Evaluate the set of SQL statements: CREATE TABLE dept ( dept_id NUMBER (2), dname VARCHAR2 (14), Loc VARCHAR2 (13)); ROLLBACK; DESCRIBE DEPT; What is true about the set?
The DESCRIBE DEPT statement displays the structure of the DEPT table
The ROLLBACK statement frees the storage space occupied by the DEPT table.
The DESCRIBE DEPT statement returns an error ORA-04043: object DEPT does not exist
The DESCRIBE DEPT statement displays the structure of the DEPT table only if there is a COMMIT statement introduced before the ROLLBACK statement.
When should you create a role?
to simplify the process of creating new users using the CREATE USER xxx IDENTIFIED by yyyy statement
To grant a group of related privileges to a user.
When the number of people using the database is very high
To simplify profile maintenance for a user who is constantly traveling.
You are granted the CREATE VIEW privilege. What does this allow you to do?
create a table view
create a view in any scheme
create a view in your schema
create a sequence view in any schema
Description:

Check your knowledge of SQL DDL,DML,DCL Commands
Disclaimer: Content, such as images used in the questions (if any), have been picked up from various places for the sole purpose of Instruction.

Comments
PcAlgDbt
By: PcAlgDbt
729 days 19 hours 7 minutes ago

This test has an error in results. In test review all the answers are correct but total score is 8/9. At the same time at "My tests" page my score for this test is 4/9. :)

anju joshi
By: anju joshi
648 days 1 hours 59 minutes ago

got to kno abou my subject knowledge......

sanjay kumarjena
By: sanjay kumarjena
552 days 20 hours 34 minutes ago

this is a good site for oracle professionals.

amulu
By: amulu
527 days 19 hours 59 minutes ago

good one

kc lim
By: kc lim
382 days 6 hours 30 minutes ago

^^ thx a lot sharing this for practice!

raja
By: raja
296 days 12 hours 31 minutes ago

beautiful qus - no one face it for the first time

Namrata
By: Namrata
193 days 6 hours 16 minutes ago

seriously this one is useful for the students who wants to become professional in this subject....i really appreciate the this test.......................
thanks !!!!!!!!!!

Namrata
By: Namrata
193 days 6 hours 15 minutes ago

thanx

Want to learn?

Sign up and browse through relevant courses.

Name:
Your Email:
Password:
Country:
Contact no.:


Area code Number
Subject you are interested in:
Word verification: (Enter the text as in image)


Sign Up Already a member? Sign In
I agree to WizIQ's User Agreement & Privacy Policy

Your Facebook Friends on WizIQ

More Tests By Author

ASP Server Controls
10 Questions | 227 Attempts

ASP.NET, Namespaces ASP.NET
10 Questions | 855 Attempts

An ASP.NET Application
10 Questions | 173 Attempts

Test your basic knowledge on DATASTRUCTURES, STACK
10 Questions | 410 Attempts