Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: Does anyone know the HANA equivalent of the following SQL statement?

$
0
0

Hi Ronnie,

 

There is one alternative. Please check if the following code helps you.

 

select

  (case when record_count > 0 then EMP_ID end) "EMP_ID"

, (case when record_count > 0 then ENAME end) "ENAME"

from EMP a, (select record_count from m_cs_tables where schema_name = 'MY_SCHEMA' and table_name = 'EMP' ) b;

 

Regards,

 

Ravi


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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