pls help me SQL Instructions: Answers ALL the questions. This test contributes 5% to your coursework. Use the following Table to write the queries. Emp Infor Table EmpID EmpFname EmpLname Department Salary 1 Mohd Ali HR 2000 2 Suliman Admin 3500 3 Kang Account 5000 4 Kulkarni HR 1800 Admin 8000 5 Sidhu Azizah Chen Ananthi Manjit Address Kuantan Ipoh DOB Gender 01/12/1977 M Georgetown Kangar 02/05/1975 F Kuala Lumpur 01/01/1984 ME 1. Write the query to display all the records in the Emp_Infor table. М F 02/05/1995 03/07/1998 M 2. Write a query to display the number of employees working in the department 'HR'. 3. Write a query to display the EmpFname from the EMP_Infor table and use the ALIAS name as StaffName.

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
pls help me SQL
Instructions:
Answers ALL the questions. This test contributes 5% to your coursework.
Use the following Table to write the queries.
Emp_Infor Table
EmpID EmpFname EmpLname Department Salary
1
Mohd
Ali
HR
2000
2
Admin
Azizah
Chen
3
Account
4
5
Ananthi
Manjit
Suliman
Kang
Kulkarni
Sidhu
HR
Admin
3500
5000
1800
8000
Address
Kuantan
02/05/1975
Ipoh
Kuala Lumpur 01/01/1984
Georgetown
02/05/1995
Kangar 03/07/1998
DOB
01/12/1977
1. Write the query to display all the records in the Emp_Infor table.
Gender
M
F
M
MEN
F
M
2. Write a query to display the number of employees working in the department
'HR'.
3. Write a query to display the EmpFname from the EMP_Infor table and use the
ALIAS name as StaffName..
Transcribed Image Text:pls help me SQL Instructions: Answers ALL the questions. This test contributes 5% to your coursework. Use the following Table to write the queries. Emp_Infor Table EmpID EmpFname EmpLname Department Salary 1 Mohd Ali HR 2000 2 Admin Azizah Chen 3 Account 4 5 Ananthi Manjit Suliman Kang Kulkarni Sidhu HR Admin 3500 5000 1800 8000 Address Kuantan 02/05/1975 Ipoh Kuala Lumpur 01/01/1984 Georgetown 02/05/1995 Kangar 03/07/1998 DOB 01/12/1977 1. Write the query to display all the records in the Emp_Infor table. Gender M F M MEN F M 2. Write a query to display the number of employees working in the department 'HR'. 3. Write a query to display the EmpFname from the EMP_Infor table and use the ALIAS name as StaffName..
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Multiple table
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
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