Given the Employee, Class, and Training tables. Employee Emp_id (PK) Name Address Phone Email Ali ali@yahoo.com nazire@gmail.com katrina@gmail.com lemi@hotmail.com alican@yahoo.com mustafa@hotmail.c hasan@gmail.com EM8765 USA 98733211 EM3456 Nazire Dubai 98764533 90857464 EM7658 Katrina USA EM1987 Lemi USA 99663425 Alican Mustafa Hasan EM8009 UK 95583372 EM7698 Dubai 92234452 EM6666 Jordan 92123366 Class

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%
Given the Employee, Class, and Training tables.
Employee
Emp_id (PK)
EM8765
Address
USA
Name
Phone
Email
Ali
ali@yahoo.com
nazire@gmail.com
katrina@gmail.com
lemi@hotmail.com
alican@yahoo.com
mustafa@hotmail.com
hasan@gmail.com
98733211
ЕМ3456
Nazire
Dubai
98764533
90857464
EM7658
Katrina
USA
EM1987
Lemi
USA
99663425
EM8009
Alican
UK
95583372
|EM7698
Mustafa
Dubai
Jordan
92234452
EM6666
Hasan
92123366
Class
Class_id (PK)
Class_name
Multimedia
Credit
СOM106
COM206
Database
сомз06
Public Speaking
9.
Training Table
Emp_id (FK)
EM8765
Date
Class_id (FK)
Result
05-May-2010
08-May-2011
08-Feb-2010
08-Feb-2010
соM106
Pass
EM3456
COM206
Pass
EM7658
сомз06
Fail
EM1987
сомзо6
Fail
28-Jan-2011
10-March-2012
EM8009
сомз06
Pass
EM7698
сом106
Fail
EM8765
08-May-2011
сOM206
Pass
Write the appropriate SQL queries
a) Get the address of employee whose name is Alican
b) Get the name and email of employees located in Dubai. Sort the results in
alphabetical order of name.
c) Show the count of employees that stored in Employee Table.
d) What is the minimum, maximum, average and total values of credit in Class Table
e) Show the Emp_id and Result column of Training table which class_id is 'COM106' and
"COM206' by using IN function.
f) Show the employee(s) whose email account is gmail.
8) (10 Mark) List Name, Email, Class Name and Result of employees.
Transcribed Image Text:Given the Employee, Class, and Training tables. Employee Emp_id (PK) EM8765 Address USA Name Phone Email Ali ali@yahoo.com nazire@gmail.com katrina@gmail.com lemi@hotmail.com alican@yahoo.com mustafa@hotmail.com hasan@gmail.com 98733211 ЕМ3456 Nazire Dubai 98764533 90857464 EM7658 Katrina USA EM1987 Lemi USA 99663425 EM8009 Alican UK 95583372 |EM7698 Mustafa Dubai Jordan 92234452 EM6666 Hasan 92123366 Class Class_id (PK) Class_name Multimedia Credit СOM106 COM206 Database сомз06 Public Speaking 9. Training Table Emp_id (FK) EM8765 Date Class_id (FK) Result 05-May-2010 08-May-2011 08-Feb-2010 08-Feb-2010 соM106 Pass EM3456 COM206 Pass EM7658 сомз06 Fail EM1987 сомзо6 Fail 28-Jan-2011 10-March-2012 EM8009 сомз06 Pass EM7698 сом106 Fail EM8765 08-May-2011 сOM206 Pass Write the appropriate SQL queries a) Get the address of employee whose name is Alican b) Get the name and email of employees located in Dubai. Sort the results in alphabetical order of name. c) Show the count of employees that stored in Employee Table. d) What is the minimum, maximum, average and total values of credit in Class Table e) Show the Emp_id and Result column of Training table which class_id is 'COM106' and "COM206' by using IN function. f) Show the employee(s) whose email account is gmail. 8) (10 Mark) List Name, Email, Class Name and Result of employees.
Expert Solution
steps

Step by step

Solved in 7 steps with 9 images

Blurred answer
Knowledge Booster
Database Functions
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
Recommended textbooks for you
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education