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

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter7: Database Administration
Section: Chapter Questions
Problem 4TD: Write, but do not execute, the commands to grant the following privileges: a. User Ashton must be...
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
  • SEE MORE QUESTIONS
Recommended textbooks for you
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage