Answered step by step
Verified Expert Solution
Question
1 Approved Answer
convert below SQL into spark program - select distinct a . branch _ number, b . post _ code, case when a . location _
convert below SQL into spark program select distinct abranchnumber,
bpostcode,
case when alocationformat is NULL and alocationtype like "PetrolFillingStation" then "Petrol"
when alocationformat is NULL and alegacyformatcode like PH then "Pharmacy"
else alocationformat end as storeformatdescription
from channelsreporting.vwchannelslocations a
inner join
select distinct locationid postcode from location.location
LATERAL VIEW INLINE arrayaddress postcode
where lifecyclestatus like "Trading"
b limit is for testing
on alocationidblocationid
where
alifecyclestatus like "Trading"
and acountrycode like GB;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started