hana

can I place a sql query in a sql hana place holder

半腔热情 提交于 2020-12-26 11:05:45
问题 can I place a sql query in a sql hana place holder? the following query works: Select * From table1 ('PLACEHOLDER' = ('$$IP_ShipmentDate$$', '2020-01-01')) I am trying to pass something like the following: Select * From table1 ('PLACEHOLDER' = ('$$IP_ShipmentDate$$', Select TO_VARCHAR(min("some_date"),'YYYY-MM-DD') from Table2) Currently getting a syntex error 回答1: As error says you, expressions are not supported for column view parameter: Can't use column expression as column view parameter

can I place a sql query in a sql hana place holder

生来就可爱ヽ(ⅴ<●) 提交于 2020-12-26 11:05:43
问题 can I place a sql query in a sql hana place holder? the following query works: Select * From table1 ('PLACEHOLDER' = ('$$IP_ShipmentDate$$', '2020-01-01')) I am trying to pass something like the following: Select * From table1 ('PLACEHOLDER' = ('$$IP_ShipmentDate$$', Select TO_VARCHAR(min("some_date"),'YYYY-MM-DD') from Table2) Currently getting a syntex error 回答1: As error says you, expressions are not supported for column view parameter: Can't use column expression as column view parameter

Connect to SAP HANA Database using VBA

半世苍凉 提交于 2020-07-11 05:23:13
问题 I am trying to fetch data into Excel from SAP HANA database using vba. I came across the below questions. Do I need to install SAP HANA MDX Provider for this? If yes, please provide the link. I am unable to spot any. What would be the vba script that I should write to connect to HANA DB? Please help me out on this. Thanks in advance. 回答1: Haven't done this with VBA as Excel has other ways to connect to HANA. Hope this helps: Using MDX: https://blogs.sap.com/2017/02/17/connecting-ms-excel-to

How to format date in hana

佐手、 提交于 2020-05-15 08:36:25
问题 I need to format date in my hana sql, but I don't know how to. Something like this: SELECT DATE_FORMAT(DATAS,'%Y-%m') as Dat ,sum(SALES_VALUE) as Venda ,sum(SALES_QTY) as Qtd ,sum(SALES_VALUE) / sum(SALES_QTY) as Preco FROM looqdata.data_store_sales as s inner join looqdata.data_store_cad as c on s.STORE_CODE = c.STORE_CODE where 1=1 and DATAS between '2016-01-04' and '2016-02-10' and s.STORE_CODE in (1,2) group by DATE_FORMAT(DATAS,'%Y-%m') 回答1: Date-data types in SAP HANA, just as in most

[转帖]安装HANA数据库

爱⌒轻易说出口 提交于 2020-03-30 06:51:03
安装数据库 https://support.huawei.com/enterprise/zh/doc/EDOC1100082491/bc8e25fe 以root用户名登录服务器,打开“Terminal”窗口。 执行 cd 命令切换目录到SAP HANA数据库软件拷贝所在的目录下面,本例是“cd /hana/shared/hana2.0”。 执行 chmod +x * 命令,增加可执行权限。 hw00001:/hana/shared/hana2.0 # chmod +x * 执行 ./SAPCAR_816-80000935.EXE -manifest SIGNATURE.SMF -xvf IMDB_SERVER20_020_0-80002031.SAR 命令解压数据库文件(SAPCAR和IMDB_SERVER的具体版本根据实际需求安装),得到一个 SAP_HANA_DATABASE 目录以及“SIGNATURE.SMF”文件夹。 hw00001:/hana/shared/hana2.0 # ./SAPCAR_816-80000935.EXE -manifest SIGNATURE.SMF -xvf IMDB_SERVER20_020_0-80002031.SAR 执行命令 cp SIGNATURE.SMF SAP_HANA_DATABASE/ 把解压生成的校验文件

【SAP HANA】HANA trace管理

久未见 提交于 2020-03-26 23:40:11
tracle 类型 tracle 配置 tracle 级别 SQL tracle Performance Trace Expensive Statements Trace Kernel profiler Plan trace dump 1.Tracle Database Trace    : default active :confingure: global.ini(for all services) or services specific files such as indexserver.ini SAP NOTE 2380176 SQL trace       : default Inactive Performance Trace    : default Inactive Expensive Statement trace : default Inactive Plan trace       : default Inactive kernel profile     : default Inactive User-specfic trace 2. traces 配置: privilege TRACE ADMIN configure the kernel profile: have role SAP_INTERNAL_HANA_SUPPORT if a a trace

Does SQLScript for SAP HANA support the use of INSERT with CTEs (Common Table Expressions)?

旧城冷巷雨未停 提交于 2020-03-25 21:23:05
问题 I know this isn't a specific bit of code or problem, but I am having trouble with a very similar issue to the person asking this (except theirs is for SQL Server): Combining INSERT INTO and WITH/CTE ...and I can't seem to find it out there on any SAP HANA help forums etc. so thought there may be an expert on here who can just give me a simple yes or no answer. The SQL statement I am using contains multiple CTEs, but when I try to insert it tells me there is a Syntax error around the word