Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need to perform a JOIN statement. I want to implement a join on the results that the select statement returns the table called MET_REF in

Need to perform a JOIN statement. I want to implement a join on the results that the select statement returns the table called "MET_REF" in a database. I have the table made, what is needed is to make correction to the query statement below

select @initial as REF_SERVICE_ORDER_KEY, @referkey as MAINTENANCE_ORDER_KEY, @OGORDER as OG_MAINTENANCE_ORDER_KEY, CREATED_ON

from TEMP_MAIN_project a

LEFT JOIN MET_REF b ON @OGORDER = b.CREATED

where MAINTENANCE_ORDER_KEY = @referkey

Fix the query above (you can have an example but has to be similar to this above in order for it to work)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Management Accounting Information for Decision-Making and Strategy Execution

Authors: Anthony A. Atkinson, Robert S. Kaplan, Ella Mae Matsumura, S. Mark Young

6th Edition

137024975, 978-0137024971

More Books

Students also viewed these Databases questions

Question

What does a person include in his/her application?

Answered: 1 week ago