hana-studio

How does one handle exceptions in date casting in SAP's HANA?

北城以北 提交于 2020-01-05 09:05:33
问题 QUESTION SUMMARY: What is the proper way within HANA SQL or HANA Studio in a view (Calculation, attribute or Analytic) to handle invalid data when attempting to cast to a date so a user can filter the data? In SAP's table KONM the field KSTBM is a datatype of decimal(15,3). This field right or wrong, stores a date value in YYYYMMDDHHM.MSS format. (I'm a user not a designer of the system. Why anyone stores a date in a decimal field instead of a oh a date/time field is beyond the purview of

Conditional update on Hana Studio (SQL Script) trigger

核能气质少年 提交于 2019-12-11 18:15:14
问题 I have two example tables: TABLE1: ID | COLUMN_B| COLUMN_C _________|_________|_________ 1 | 0 | 1 ________|_________|_________ 2 | 0 | 1 ________|_________|_________ 3 | 0 | 1 TABLE2: ID | COLUMN_E| COLUMN_F ________|_________|________ 1 | Y | X ________|_________|_________ 2 | Y | X ________|_________|_________ 3 | Y | X What I would like to do is to write a trigger on Hana Studio using SQL Script to update column E from table 2 when column B from table 1 is updated to a specific value (let