Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In the code below, Id like to have a new field in the results called CRE. The CRE field should be RE MANAGEMENT if that

In the code below, Id like to have a new field in the results called CRE. The CRE field should be RE MANAGEMENT if that is a SEGMENT connected to any CLANs within the PREMISE_GP_ID. If no CLANs are RE MANAGEMENT then the CRE field should be OTHER.

SELECT

PREMISE_ID,

PREMISE_GP_ID,

CLAN_NAME,

SEGMENT_NAME,

TOTAL_USAGE_2019

FROM ES_VIEW.ES_CI_MA

where PREMISE_GP_ID in ('797768','22146163,'797296','1854347','995577')

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

Students also viewed these Databases questions

Question

List the advantages and disadvantages of the pay programs. page 505

Answered: 1 week ago