Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Ozzie Hive Script

avatar
Explorer

Hi folks,

 

Can I use the below script in Ozzie workflow?

 

WITH order_data (order_date, product_name, amount)

AS (

SELECT

  order_date,

  product_name,

  SUM(i.quantity * i.list_price * (1 - discount))

FROM sales.orders o

INNER JOIN sales.order_items i

  ON i.order_id = o.order_id

INNER JOIN production.products p

  ON p.product_id = i.product_id

GROUP BY order_date,

         product_name

)

 

SELECT * FROM order_data;

1 ACCEPTED SOLUTION

avatar
Expert Contributor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
3 REPLIES 3

avatar
Expert Contributor
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login

avatar
Explorer
Thanks

avatar
Community Manager

@newbieone, Has the reply helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future. 



Regards,

Vidya Sargur,
Community Manager


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community: