Question: Oracle SQL Task 1. Write and test a query to report what tools were loaned out during the seven months prior to the current month.
Oracle SQL
Task 1. Write and test a query to report what tools were loaned out during the seven months prior to the current month. The identifying information for what tools includes the tool description, tool id from the manufacturer of the tool, and the manufacturer of the tool. The tool library manager also wants to know: to whom were the tools loaned? and for what job? and were the tools returned to the tool libary and when? She is going to use the
I have this so far
select t.TOOL_ID_FROM_MFG, t.TOOL_DESC,t.TOOL_MFG, l.TOOL_OUT_DATE from QLIU07.loan_02 l, QLIU07.TOOL_DESCRIPTION_02 t where t.TOOL_DESC_ID = l.TOOL_DESC_ID and TOOL_OUT_DATE >='01-sep-2018' and TOOL_OUT_DATE

JOB-02 JOBID JOB-DESC JOBCUSTOMER JOBDATE TOOLDESCRIPTION02 - - TOOLDESCID TOOL ID FROM_MFG TOOL_MFG - - - - I TOOL DESC E CHANGED_BY_USER - JOB-STATUS JOB-STATUS-CHANGE-DA DATE UPDATED E CHANGED_BY_USER DATEUPDATED - TOOL02 LOAN-01 LOAN02 - TOOLNO TOOLDESCID CHANGEDBYUSER DATEUPDATED - - LOANID TOOL-NO TOOLDESCID EMPLOYEEID - - - - - - - - - JOBID - TOOL OUT_DATE DUEDATE LOANACTIVE LOAN-STATUS-CHANGE-[ E CHANGED_BY_USER - - DATEUPDATED
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
