Answered step by step
Verified Expert Solution
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.
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started