Dashboards & Analytics Discussions
cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

Unpivot using sparksql

HI I have two dimensions, Ensys and CONTROLLER  and two measures KWH and Count(Site ID) .I want to unpivot both dimensions and measure values  as per below screenshot.Please let me know how to achieve.    

KHK_1-1758545328840.png
KHK by Partner
  • 53 Views
  • 0 replies
  • 0 kudos

Row Number in Spark SQL MV

Hi,I have below Oracle Query and i want to convert the query to Spark SQL . Please let me know how to write Rownum condition in spark sql.Sample Oracle Query:selectpes.event_num,glp.period_name,(SELECT conversion_rate FROM gl_daily_ratesWHERE from_cu...

KHK_0-1737382559224.png
KHK by Partner
  • 1347 Views
  • 2 replies
  • 6 kudos