Quantcast
Channel: SCN : Discussion List - SAP SQL Anywhere
Viewing all articles
Browse latest Browse all 125

Group on measures not working

$
0
0

Hi, I want to find out the most common values for field "x", and "x" is a measure with DECIMAL type. So I ran the following pass-through-sql, The output has only 1 record with some random value for "x". I know "x" has many different values. Can someone help? Thanks.

 

 

SELECT "x", count(*) as cnt

FROM "table1"

GROUP BY "x"

ORDER BY cnt DESC


Viewing all articles
Browse latest Browse all 125

Trending Articles



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