Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8653

Update a new column from two existing columns ina table

$
0
0

I am trying to add a new column in the time dimension table. My customer wants a column that gives them year and quarter but they want quarter listed as Q1.  The CAL_QUARTER gives me 20131.  what they want is 2013 Q1.  I can do the conversion of data from YEAR_INT and QUARTER_INT with the following sql statement:

 

Select concat(YEAR_INT, Concat(' Q', + QUARTER_INT) ) from "_SYS_BI"."M_TIME_DIMENSION"

 

But in HANA I have not been able to insert the new data into the new column (REP_QUARTER)

 

I have tried insert into and update statements.  Can you help me out with the correct sql statement.


Viewing all articles
Browse latest Browse all 8653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>