Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following relational schema. An employee can work in more than one department, the pet time f Works relation shows the percent-age of time

image text in transcribed
Consider the following relational schema. An employee can work in more than one department, the pet time f Works relation shows the percent-age of time that a given employee works in a given department Empleid: integer, ename: string, age: integer, salary: real) Works(eid integer, did: integer, pet time: integer) Dept(did: integer, dname: string, budget: real, managerid: integer) Write the following queries in SQL: 1. Print the names and salary of each employee who works in more than one department. each department with 15 or more employees, print the department name and the mumber of employees that work in that department. 3. Find $1.5 million. 4 Find the name and age of managers who manage the departments with the largest budgets, and list the related employees in the department. the managers' name and the department name that the managers manage the departments with budgets greater thar

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions