Dear Friends,
Need help in resolving the below case-
I want how the output could be build using Vertica SQL:
I have a source table:
Emp_Id,Name_of_Day,Sales_Amount
--------------------------------------------------
1 Monday 5100
2 Wednesday 2000
Now the O/P should look like:
Target Table:
Emp_Id, Monday, Tues,Wed, Thus,Friday
1 5100 0 0 0 0
2 0 0 2000 0 0
How the target table could be loaded in Vertica?
# I could probably think of using CASE Statement
Thanks and Regards,
Kushal Sen
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.