Determine what system privileges the dvonline role has


Part 1: Using the following Data Dictionary views write the statements that will perform the following actions. Be sure to test your statements.

ROLE_ROLE_PRIVS

ROLE_SYS_PRIVS

ROLE_TAB_PRIVS

USER_ROLE_PRIVS

USER_SYS_PRIVS

USER_TAB_PRIVS

Determine what privileges your account has been granted through a role.

Determine what system privileges your account has been granted.

Execute the following statement then determine what table privileges your account has been granted.

Determine what system privileges the DVONLINE role has.

Analyze the following query and write a description of the output it produces.

SELECT COUNT(DECODE(SIGN(total_capacity-20), -1, 1, 0, 1)) "<=20",
COUNT(DECODE(SIGN(total_capacity-21), 0, 1, -1, NULL,
DECODE(SIGN(total_capacity-30), -1, 1)))"21-30",
COUNT(DECODE(SIGN(total_capacity-30), 1, 1)) "31+"
FROM
(SELECT SUM(capacity) total_capacity, course_no
FROM section
GROUP BY course_no)

Determine the top three zip codes where most of the students live. Use an analytical function. The query will product 10 rows.

Part 2: Analyze the file from Doc Share called utlpwdmg.sql and analyze the code in this file. Write a paragraph that describes what the function performs. What are the inputs parameters, the output parameter and what does the function do?

Using the student schema from week 2, provide answers to the following questions.

1. Generate statistics for the student, enrollment, grade, and zipcode tables.

1. Write a query that performs a join, a subquery, a correlated subquery using the student, enrollment, grade, and zipcode tables. Execute each query to show that it produces the same results.

1. Produce an autotrace output and explain plan for each query.

1. Analyze the results and state which performs best and why. Write an analysis of what operations are being performed for each query. Determine which query is the most efficient and explain why.

Request for Solution File

Ask an Expert for Answer!!
Database Management System: Determine what system privileges the dvonline role has
Reference No:- TGS01088404

Expected delivery within 24 Hours