Question: Table Employee fname text, Iname text, dob date, Table Skill skillcode numeric, skillname text salary numeric, skillcode numeric DO NOT USE JOINS. You have to
Table Employee
fname text,
Iname text,
dob
date,
Table Skill
skillcode numeric,
skillname text
salary numeric,
skillcode numeric
DO NOT USE JOINS. You have to use subqueries where needed. Do not use codes in your search criteria.
Identify each of your answers with the corresponding number associated with the question.
Display the first and last name of all employees whose salary is less than the average salary,
are Electricians and are older than years old. You have to search the skillname column for Electricians If the last name is null display no last name". Also, keep in mind that dob is a date datatype.
Display the average salary of employees who are programmers regardless of caseYou have to search the skillname column for programmer regardless of case
Create a table called employee that contains all the employees who are electricians and
whose last name ends with an regardless of case. You have to search the skillname column for electricians The new table should only contain the columns fname, Iname and salary
Display the employee first name and the text "rich" if the worker is making more than otherwise display "poor".
Display the skillcode and the number of people for each skill. In your count, include only the employees who are older than years old. Keep in mind that you have to convert dob to age
Display the employee first name and the text "unemployed" if the person is not associated with any skill otherwise display the employee first name and the text "employed"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
