Write an SQL query to answer following question: which instructors are qualified to teach ISM3113 (please select FacultyID, FacultyName)? (first image)   2. Display the course ID and course name for all courses with an ISM prefix (hint: LIKE 'ISM%'): Google how to use LIKE in SQL   3. Display the numbers and names of all courses for which Professor Berndt has been qualified (hint: inner join):

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter2: Database Design Fundamentals
Section: Chapter Questions
Problem 3TD
icon
Related questions
Question

 

  1. Write an SQL query to answer following question: which instructors are qualified to teach ISM3113 (please select FacultyID, FacultyName)? (first image)

 

2. Display the course ID and course name for all courses with an ISM prefix (hint: LIKE 'ISM%'):

Google how to use LIKE in SQL

 

3. Display the numbers and names of all courses for which Professor Berndt has been qualified (hint: inner join):

 

4. Display the class roster, including student name, for all students enrolled in section 2714 of ISM 4212 (display StudentID, StudentName, CourseID, and SectionNo, use inner join):

 

5. How many courses in section 2714 during semester I-2021?

 

6. How many students were enrolled in section 2714?

 

 

7. Based on the following Customer table, answer following question:(Second imgage)

 

(1) for each Customer (e.g., customer C), display all other customers who have higher salary than this Customer (e.g., customer C). (use inner join, display each customer’s ID, name, and all higher salaries, you don’t need to display information about the customers who have higher salary.)

 

 

 

 

 

(2) for each Customer (e.g., customer C), display all other customers who have higher salary and are younger than this Customer (e.g., customer C).

 

 

 

8. Based on the following table, please find the customers who locate in the same state

sales.customers.

*cusomter_id

first_name

last_name

phone

email

street

city

state

zip_code

9. . Based on the following table, please display the staff and their corresponding manager in the same store. Please display staff’s full name in one column, manager’s full name in another column, and store_id

sales.staffs

*staff_id

first_name

last_name

email

phone

active

store_id

mangager_id

 

 

 

 

STUDENT (StudentID, StudentName)
StudentID
38214
54907
66324
70542
FacultyID
FACULTY (FacultyID, FacultyName)
2143
3467
4756
StudentName
CourselD
Letersky
Altvater
Aiken
Marral
ISM 3113
ISM 3112
ISM 4212
ISM 4930
FacultyName
COURSE (CourselD, CourseName)
Birkin
Berndt
Collins
CourseName
Syst Analysis
Syst Design
Database
Networking
QUALIFIED (FacultyID, CourselD, DateQualified)
FacultyID
2143
2143
3467
3467
4756
4756
Ⓒ2022 Pearson Education, Inc.
Questions 1 to 8 are based on the above tables.
Section No
2712
2713
2714
2715
CourselD
SECTION (Section No, Semester, CourseID)
StudentID
ISM 3112
ISM 3113
38214
54907
54907
66324
ISM 4212
ISM 4930
ISM 3113
ISM 3112
Semester
1-2021
I-2021
1-2021
I-2021
DateQualified
SectionNo
9/2011
9/2011
9/2018
9/2019
9/2014
9/2014
REGISTRATION (StudentID, SectionNo)
2714
2714
2715
2713
CourselD
ISM 3113
ISM 3113
ISM 4212
ISM 4930
Transcribed Image Text:STUDENT (StudentID, StudentName) StudentID 38214 54907 66324 70542 FacultyID FACULTY (FacultyID, FacultyName) 2143 3467 4756 StudentName CourselD Letersky Altvater Aiken Marral ISM 3113 ISM 3112 ISM 4212 ISM 4930 FacultyName COURSE (CourselD, CourseName) Birkin Berndt Collins CourseName Syst Analysis Syst Design Database Networking QUALIFIED (FacultyID, CourselD, DateQualified) FacultyID 2143 2143 3467 3467 4756 4756 Ⓒ2022 Pearson Education, Inc. Questions 1 to 8 are based on the above tables. Section No 2712 2713 2714 2715 CourselD SECTION (Section No, Semester, CourseID) StudentID ISM 3112 ISM 3113 38214 54907 54907 66324 ISM 4212 ISM 4930 ISM 3113 ISM 3112 Semester 1-2021 I-2021 1-2021 I-2021 DateQualified SectionNo 9/2011 9/2011 9/2018 9/2019 9/2014 9/2014 REGISTRATION (StudentID, SectionNo) 2714 2714 2715 2713 CourselD ISM 3113 ISM 3113 ISM 4212 ISM 4930
| ID | NAME
|
|
|
|
|
|
|
| AGE | ADDRESS | SALARY
| 32 | Ahmedabad |
|
1 | Ramesh
2 | Khilan
|
25 |
Delhi
3 | kaushik |
23 | Kota
4 |
Chaitali |
25 |
5 |
Hardik
|
27 |
6 | Komal
| 22 | MP
7 | Muffy
|
Mumbai
Bhopal
24 | Indore
2000.00
1500.00
2000.00
| 6500.00 |
|8500.00
I 4500.00
| 10000.00 |
Transcribed Image Text:| ID | NAME | | | | | | | | AGE | ADDRESS | SALARY | 32 | Ahmedabad | | 1 | Ramesh 2 | Khilan | 25 | Delhi 3 | kaushik | 23 | Kota 4 | Chaitali | 25 | 5 | Hardik | 27 | 6 | Komal | 22 | MP 7 | Muffy | Mumbai Bhopal 24 | Indore 2000.00 1500.00 2000.00 | 6500.00 | |8500.00 I 4500.00 | 10000.00 |
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 3 images

Blurred answer
Knowledge Booster
SQL Query
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.
Recommended textbooks for you
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781305971776
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage