Write a pl-sql stored function that takes username as input

Assignment Help Database Management System
Reference no: EM132098935

Please do in Oracle SQL

Create a table UserPermissions (provide create and insert statements code)

Document

UserName

Policy

SYSTEM

Menu

JDOW

W2

USAM

Permissions

SYSTEM

W2

JDOW

Form 1040

USAM

Policy

JDOW

W2

SYSTEM

Write a PL/SQL stored function that takes username as input and returns number of documents that user has permissions to view. If username is not in the table, your procedure should return, "User not found".

Sample output:

JDOW can view 3 document(s)

SYSTEM can view 3 document(s)

USAM can view 2 document(s)

Reference no: EM132098935

Questions Cloud

Identify components used in building an IT infrastructure : SBM4104 IT Infrastructure Assignment - Poster. Identify and classify the different components used in building an IT infrastructure
Write a program to simulate processing of a packet : Write a (simple) program to simulate processing of a packet at a router interface with an ACL bound to that interface.
Find the events that led up to the liquidation : ACC701 Accounting Financial Assignment - Discuss all three companies above and find (via electronic journals) the events that led up to the liquidation
Define a complete binary heap : List 5 uses of heaps. Define a d-ary heap. Define a complete binary heap.
Write a pl-sql stored function that takes username as input : Write a PL/SQL stored function that takes username as input and returns number of documents that user has permissions to view.
Determine the total cost of manufacturing : Using the current cost system, determine the total cost of manufacturing one unit of each product and the profit per unit for each product
Create an application that uses the file created by the use : Create an application that uses the file created by the user in Exercise 9a and allows the user to enter an account number to view the account balance.
What are the top two sorting and searching algorithms : What are the top 2 sorting and searching algorithms ? Write a OOP program that store an array of 100 integers.
Write a simple user interface which allows users to create : Write a simple user interface, which allows users to create polygons of the various types, input their geometric dimensions

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd