Quantcast
Channel: SCN : All Content - SAP SQL Anywhere
Viewing all articles
Browse latest Browse all 647

Multiple sub SQL not working

$
0
0

Hello,

 

I am able to run the 1st pass through SQL

 

select count(*) as cnt1,

         (select count(*) as cnt2 from table1 where var1 is null)

from table1


However, the 2nd SQL failed with "undefined index" error message.


select count(*) as cnt1,

         (select count(*) as cnt2 from table1 where var1 is null),

         (select count(*) as cnt3 from table1 where var1<0)

from table1


Does anybody know why?



Thanks.


Viewing all articles
Browse latest Browse all 647

Trending Articles



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