
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Concept explainers
Question

Transcribed Image Text:QUESTION 1:
Consider the database whose database state shown in appendix and answer the following questions:
1. Retrieve the name of all employees who work in "Research" Department.

Transcribed Image Text:Appendix
EMPLOYEE
Fnamo
Minit
Lname
Ssn
Bdato
Addross
Ser Salary
Super ssn Dno
123456789 1965-01-00 731 Fondron, Houston, TX M 30000 333445555
333445555 1955-12-08 638 Voss, Houston, TX
John
B
Smith
Franklin
Wong
40000 888665555
25000 987654321
999887777 1968-01-10 3321 Castlo, Spring, TX
Wallaco 987654321 1941-06-20 201 Borry, Bollaire, TX
Alicia
Zolaya
4.
Jonnifor
43000 888665555
4.
Narayan 666884444 1962-09-15 975 Fire Oak, Humblo, TX M 38000 333445555
English 453453453 1972-07-31 5631 Rice, Houston, TX
Ramosh
K
Joyce
25000 333445555
Ahmad
V
Jabbar
987987987 1969-03-20 980 Dalas, Houston, TX
M 25000 087654321
4.
James
Borg
888665555 1937-11-10 450 Stono, Houston, TX
M 55000 NULL
DEPARTMENT
DEPT LOCATIONS
Dnamo
Dnumber
Mgr ssn
Mgr start date
Dnumbor
Dlocation
Rosearch
333445555
1988-05-22
Houston
Administration
4.
987654321
1995-01-01
Stafford
Headquarters
1.
888665555
1981-06-19
5.
Bellaire
5.
Sugarland
Houston
WORKS ON
PROJECT
Essn
Pno
Hours
Pname
Prumber
Plocation
Dnum
123456789
32.5
ProductX
Belaire
123456789
7.5
ProductY
2.
Sugarland
5.
666884444
40.0
ProductZ
Houston
453453453
20.0
Computorization
10
Stafford
4.
453453453
2.
20.0
Roorganization
20
Houston
1.
333445555
10.0
Nowbenefits
30
Stafford
4.
333445555
3.
10.0
333445555
10
10.0
DEPENDENT
333445555
20
10.0
Essn
Dependent name
Sox
Rolationship
Bdato
909887777
30
30.0
333445555
Alice
1986-04-05
Daughter
000887777
10
10.0
333445555
Theodoro
1983-10-25
Son
087087987
10
35.0
1958-05-03 Spouse
Spouse
333445555
Joy
087087987
30
5.0
987654321
Abnor
1942-02-28
087654321
30
20.0
123456780
Michaol
M.
1988-01-04
Son
087654321
20
15.0
123456789
Alice
1988-12-30
Daughter
888665555
20
NULL
123456789
Eizaboth
F
1967-05-05
Spouse
92020-2021 Faculty of Information Technology (FIT), Applied Science Private University, Amman, Jordan.
2
Expert Solution

arrow_forward
Step 1
1.
SELECT command is used to retrieve the data from the table.
We need to retrieve first name and last name of the employee as Name who works in Research department
Step by stepSolved in 2 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Follow the reading materials and write scripts to create collections for the data in the following relational table: 2. Find the document with ename as JONES 3. For all the documents inserted by Question 1, find their timestamps 4. Find the last three employees documents inserted in Question 1 5. Find the ObjectID of all the documents in the employees collection created in Question 1 6. Find the ename, hiredate, and job fields of all the documents in the employees collection in Question 1 USING MONGODBarrow_forwardUsing the instance of the Airport database, formulate the following queries in the relationalalgebra: 1)Display the number of all carriers and the average of their revenues. 2)Display the minimum, the average, and the maximum distances of the flights that arescheduled on October 17th, 2017? 3)Display, for each carrierID, the number of flights and the average of their distances. Examples of how to do it below:arrow_forwardCreate a procedure to allow company employee to add new product to the database. This procedure needs only IN parameters.arrow_forward
- Topic: Database Design Provide an example of a 3 table OUTER join. Explain how it works and what the order of of the joins is.arrow_forwardneed solution for problem 19 of chapter 7 of book- Database Systems: Design, Implementation, and Management, 13th Edition, by Carlos Coronel and Steven Morrisarrow_forwardA concise explanation of the many reasons why the use of tables in database design is a good idea could be of some use. Would you mind providing a brief remark on the subject of NULL?arrow_forward
- In the Testa EV database described in the previous question, fill in the blanks in the following MySQL statement to list (in this order) all the part numbers of components of 'EV Dashboard' (with Part_No=1) and their quantities; sort the results in ascending order of quantity of components (i.e., components with small quantities are listed first). (Please ensure correctness in the spelling of all names and commands. Do not enter unnecessary symbols such as spaces or commas)arrow_forwardAll parts of this question use the following database schema: Flights(flno, from, to, distance) Aircraft(aid, aname, cruisingrange) Certified(eid, aid) Employees(eid, ename, salary) c) For each cruisingrange held by at least 3 aircraft, give the lowest salary of employees certified to fly one of those aircraft. Express in SQL only:arrow_forwardStayWell also rents out properties on a weekly basis to students attending summer school in the Seattle area. Design a database to meet the following requirements, using the shorthand representation and a diagram of your choice. For each student renter, list his or her number, first name, middle initial, last name, address, city, state, postal code, telephone number, and e-mail address. For each property, list the office number, property address, city, state, postal code, square footage, number of bedrooms, number of floors, maximum number of persons that can sleep in the unit, and the base weekly rate. For each rental agreement, list the renter number, first name, middle initial, last name, address, city, state, postal code, telephone number, start date of the rental, end date of the rental, and the weekly rental amount. The rental period is one or more weeks.arrow_forward
- Write SQL update statements to do the following on the database schema shown in Figure 1.i. Insert a new course, <‘Knowledge Engineering’, ‘CS4390’, 3, ‘CS’>.ii. Delete the record for the student whose name is ‘Smith’ and whose student number is 17.arrow_forwardThe following tables form part of a database held in a relational DBMS: Hotel (h) hotelNo, hotelName, cityRoom (r) roomNo, hotelNo, type, priceBooking (b) bookingNo, hotelNo, guestNo, dateFrom, dateTo, roomNoGuest (g) guestNo, guestName, guestAddress where the bolded attributes are the primary keys for the respective tables. Using the above tables, answer the following questions: 1. List the names and addresses of all guests in London, alphabetically ordered by name. 2. List all double or family rooms with a price below $40.00 per night, in ascending order of price. 3. What is the total revenue per night from all double rooms?arrow_forwardThe following relations are part of a general store database: customer(custnum, custname, city, creditlimit) orders(ordernum, orderdate, filled, custnum) orderline(ordernum, productnum, quantity, salesprice) product(productnum, descr, producttype, msrp, onhand) Here is a sample data (assume there are more records)Using PROJECT, SELECT and JOIN, write the sequence of operations to answer each of the following questions: 1a. What are the names and customer numbers of customers who are from Mississauga? 1b.What are the names of products (descry) and product types of products purchased by customers from brapton?arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education