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 …
Tag: hana
Calculated query with parameters in HANA/CrystalReports
I’m having trouble trying to explain my necessity, so I’ll describe the scenario. Scenario: Product A has a maximum production of 125KG at a time. The operator received a production order of 1027,5KG of product A. The operator have to calculate how many rounds he’ll have to manufacture and adjust the components quantity for each round. We want to create
Rolling 12 month filter criteria in SQL
Having an issue in SQL script where I’m trying to achieve filter criteria of rolling 12 months in the day column which stored data as a text in server. Goal is to count sizes for product at retail store location over the last 12 months from the current day. Currently, in my query I’m using the criteria of year 2019
Is it possible to access application properties from schema.sql?
I want to make a date type variable. Locally I am using a h2-database. But I am deploying into a cloud with a Hana DB. Hana has the exact Date format I am needing: SECONDDATE (YYYY-MM-DD HH24:MI:SS). …
SQL View Select Optional
I have a view that the current output something like this The rules are as follows Each group can only have 2 code and always have a default code vs not a default code. IF default code is not null, then always show the row. Regardless if Non default code has value or not If default code is null, then
Create New SQL Column With Smaller Buckets (Based on Text, not Numbers)
I have a column in SQL that has multiple “Definitions” but I would like anything that starts with DEF to just be the generic “Definition”. What can I put in my Select statement to have this converted? Answer You can use case:
SAP HANA | Get string between two strings
I have below data in my table T – ROW Col1 1 utm_source:|utm_medium:kiosk|device:d|expires:Sun, 02 Jun 2019 13:27:28 GMT|IP:10.YYY.YY.YY| 2 IP:10.XXX….
Hana SQL Logic needed
select groupid,count(value) as x from test_distinct_count group by rollup (groupid); This query gives output like : What i need is to display the value 5 for all the groupids in a column say Total. …
How we can validate/identified two SQL queries whether data is matching from both the queries output or not in SAP HANA Studio?
I have a question, can anyone help me with this? I have two SQL queries, one is query on top of reporting calculation view and the other is a query on the base CV of reported CV. Now, I need to …
How to consider a long “integer” as a string in SQL query when useing R to connect HANA?
I am using R package RODBC to connect HANA. One of the columns is like a long integer, but actually used as a string such as 2772161413309, 4239530000000239. SQL takes such data as integers. In R, …