Question: MYSQL query for below using TWO SUBQUERIES: TABLE 1: FacultySubjects (Columns: StaffID, SubjectID, ProficiencyRating) TABLE 2: Staff (Columns; StaffID, StaffName, StaffAddress, PhoneNumber, Salary, DateHired, Position)
MYSQL query for below using TWO SUBQUERIES:
TABLE 1: FacultySubjects (Columns: StaffID, SubjectID, ProficiencyRating)
TABLE 2: Staff (Columns; StaffID, StaffName, StaffAddress, PhoneNumber, Salary, DateHired, Position)
Show the name, salary, and proficiency rating of the staff getting a salary of 5000 OR more than the average staff salary AND also have a proficiency rating more than or equal to the average proficiency rating.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
