Implicit cursor to print out the mid of manager of bob

Assignment Help Database Management System
Reference no: EM13853336 , Length:

Suppose you have created tables in assignment 1 listed below. Please write an anonymous PL/SQL program for each the following problems.

Tables: Company(cid, cname, city, state) /* city is the company's location, cname is company name */ Employee(eid, ename, street, city, state, salary, cid) /* city is where the employee lives*/ Manages(eid, mid) /* mid is manager's ID*/

Problem 1: Write an anonymous PL/SQL program to compute the sum of 1, 3, 5, 7, 9. You must use a loop.

Tip: consider how to update your loop variable.

Problem 2: Use an implicit cursor to print out the MID of manager of Bob. Please handle exceptions. If you do not have Bob as ename in your employee table, use any name you have (e.g., Jeff).

Problem 3: Use an explicit cursor to print out the ename, street, and city of all employees working for Verizon (you can also use any company name you have in your company table if you do not have Verizon as company_name).

Reference no: EM13853336

Questions Cloud

What is the marginal cost of a flight : Suppose an airline is losing money because they cannot fill enough seats in their flights with passengers. The airline would offer a flight only if at least 70% of the seats could be filled. The average total cost for the typical flight is $12,600. W..
Required reserves and excess reserves : Suppose that Best National Bank currently has $50,000 in demand deposits and $32,500 in outstanding loans. The Federal Reserve has set the reserve requirement at 10%. Required Reserves?: Excess Reserves?:
Eight major classifications of management skills : What are the eight major classifications of management skills? Which skills do you feel you are strong in? Why?
Tightening of consumer credited effected individual spending : How has the tightening of consumer credited effected individual spending and in turn the U.S. economy? Has this strategy by the financial institutions helped our economic recovery?
Implicit cursor to print out the mid of manager of bob : Write an anonymous PL/SQL program to compute the sum of 1, 3, 5, 7, 9. You must use a loop -  implicit cursor to print out the MID of manager of Bob.
Consider the goods and services : Consider the following goods and services. Which are the most likely to be produced in a perfectly competitive industry? Which are not? Explain why you made the choices you did, relating your answer to the assumptions of the model of perfect competit..
Physician-ethicist at hope hospital in nirvana : You are a physician-ethicist at Hope hospital in Nirvana, USA. Your state is voting this month whether to allow PAS, under the exact guidelines and safeguards instituted in Oregon. The local news station has asked you to join a televised multi-discip..
Calculate the net present value to the society : Suppose El Centro California decides to tackle the problem of nitrates in the water. Nitrates are compounds derived from synthetic fertilizers that are not assimilated by plants and leached out into the underground water and affect the human health. ..
What is the slope of the above budget constraint : Sidney makes $200 per week. She buys only two items: pizza and beer. The price of a pizza is $5 and the price of each beer is $2. What is the y-axis intercept for the above budget constraint? What is the x-axis intercept for the above budget constrai..

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