Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help to write an SQL statement to show first and last names of female employees. The title of female employee is either Mrs. or

Please help to write an SQL statement to show first and last names of female employees. The title of female employee is either Mrs. or Ms. And please sort the output in ascending order of employee last name. Thank you very much.

image text in transcribedimage text in transcribed

CREATE TABLE EMPLOYEE EMP_NUM NUMBER PRIMARY KEY, EMP TITLE CHAR(10), EMP_LNAME VARCHAR(15) NOT NULL, EMP_FNAME VARCHAR(15) NOT NULL, EMP_INITIAL CHAR(1) EMP_DOB EMP_HIRE_DATE DATE, EMP_YEARS NUMBER, EMP_AREACODE CHAR(3), EMP_PHONE CHAR(8)): DATE, CREATE TABLE EMP ( EMP_NUM NUMBER PRIMARY KEY, EMP TITLE CHAR(10), EMP_LNAME VARCHAR(15) NOT NULL, EMP_FNAME VARCHAR(15) NOT NULL, EMP_INITIAL CHAR(1) EMP_DOB EMP_HIRE_DATE DATE, EMP_AREACODE CHAR(3), EMP_PHONE CHAR(8), EMP_MGRNUMBER): DATE

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Select Healthcare Classification Systems And Databases

Authors: Katherine S. Rowell, Ann Cutrell

1st Edition

0615909760, 978-0615909769

More Books

Students also viewed these Databases questions

Question

How would you describe Mark Zuckerberg as a team leader?

Answered: 1 week ago

Question

2. How can competencies be used in employee development?

Answered: 1 week ago