Skip to content
Advertisement

Select with update statement sap hana

I’m trying to combine select and update in one statement

In select I’m trying to find what is the current Fiscal year fiscal period based on table "month_dim" and by using current date. its running fine since it has corresponding values. But I need to pass values from select to update statement to same table to update values of CY,PY and YTD. Currently in update statements I’m doing hard coding and have 3 separate update statements. it will good if it can be combined in one as well.

update statements are below:-

Please help

Thanks

Advertisement

Answer

Is this what you are looking for? :

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement