Hi Guys,I know I might be in the wrong topic group but I am new here and don't know how to use it.I am currently doing sql at UNISA and I have an sql assignment question that I don't know how to complete.The question reads as follows:The HR department wants to get a list of underpaid employees, salary history of employees and the salary history of managers based on an industry salary survey.You were requested to create a SQL statement (save it as A2Q10) to do the following:Retrieve the details of the employee ID, hire date and manager ID of those employees whose mangers are 101, 102, 103 and 108 and who is in the IT department.If the salary is less than a certain AMOUNT (request the user to dynamically insert this value),o insert the details of employee ID and salary into the SPECIAL_SAL table.o Insert the details of employee ID, hire date and salary into the SAL_HISTORY table.o Insert the details of employee ID, manager ID and salary into the MGR_HISTORY table.I know how to retrieve the data but I don't know how to insert the specific data into those tables.I know how to insert new data in a table, but don't know how to combine it.PLEASE HELP...... question counts like 15 marks.
↧