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
- Find those with manager job title but have no supervisees
- Which job has the most employees?
Expert Solution
arrow_forward
Step 1
WHERE is SQL clause used to extract specific data from table.
NOT IN is used to eliminate specific part from query.
MAX is predefined function in SQL used to find maximum of extracted values.
arrow_forward
Step 2
SQL query to find those with manager job title but have no supervisees.
SELECT * FROM WHERE JOB=’MANAGER’ NOT IN (SELECT DNAME FROM DEPT WHERE DNAME=’SUPERVICEES’);
Step by stepSolved in 3 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
- If an employee can work for only one department and a department can have many employees (one to many relationship). Which answer the relationship table "work" that has the best values to describe the relationship between employee and department? The employee table has two columns (eid, name) with records ('E1','A'), ('E2','B'), ('E3','C'). The department table has two columns (did, name) with records ('D1','X'), ('D2','Y'), ('D3', 'Z'). work(eid, did) with values ('E1','D1'), ('E1','D2'), ('E2,'D2'). work(eid, did) with values ('E1','D1'), ('E2','D2'), ('E3,'D2'). work(eid, did) with values ('E1','D1'), ('E2','D2'), ('E2,'D3'). work(eid, did) with values ('E1','D1'), ('E2','D2'), ('E3,'D3').arrow_forwardPlease answer 2 and 3arrow_forwardWhat exactly do we mean when we say that the criteria must be "full and logically organized"?arrow_forward
- Write SQL queries for the database and questions below. user (email, password, name, date_of_birth, address, type) celebrity (email, website, kind) blurt (blurtid, email, text, location, time) foreign key(email) references user(email) hobby (email, hobby) follow (follower,followee) vendor (id, name) vendor_ambassador (vendorid, email) topic (id, description) vendor_topics (vendorid,topicid) blurt_analysis (email,blurtid,topicid,confidence,sentiment) advertisement (id, content, vendorid) user_ad (email,adid) Question 1: Write the following query in SQL: “Find (all) the celebrities with the most followers.” You should print the name of each celebrity and the corresponding number of followers. Note there may be more than one celebrity with the same number of followers. Question 2: Translate the following query into one English sentence: SELECT NAME FROM user WHERE email IN (SELECT email FROM celebrity WHERE email NOT IN (SELECT email FROM blurt))arrow_forwardWhat exactly do we mean when we say that the criteria must be "full and logically organized"?arrow_forwardDiscuss when you would use total specialization and when you would use partial specialization.arrow_forward
- Do all the sub partsarrow_forwardWHAT IS THE RELATIONSHIP THIS TABLE ZERO TO MANY OPTIONAL ? ONE TO MANY ? ONE MANDATORY ? ONE TO ONE ? ONE ? ZERO TO ONE ? MANY ? MANY TO MANY ? ONE OPTIONAL TO MANY OPTIONAL ? ONE MANDATORY TO MANY OPTIONAL ? MANY)arrow_forwardThe questions in this group refer to the following three relations: SALESPERSON (Name, Age, Salary) ORDER (Number, Customer Name, Salesperson Name, Amount) CUSTOMER (Name, City, Industry Type) SALESPERSON Name Age Salary Abel 63 120,000 Baker 38 42,000 Jones 26 36,000 Murphy 42 50,000 Zenith 59 118,000 Kobad 27 34,000 ORDER Number CustName SalespersonName Amount 100 Abernathy Construction Zenith 560 200 Abernathy Construction Jones 1800 300 Manchester Lumber Abel 480 400 Amalgamated Housing Abel 2500 500 Abernathy Construction Murphy 6000 600 Tri-City Builders Abel 700 700 Manchester Lumber Jones 150 CUSTOMER Name City Industry Type Abernathy Construction Willow B Manchester Lumber Manchester F Tri-City Builders Memphis B Amalgamated Housing Memphis B Use the data in those tables and show the SQL…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