Quantcast
Channel: SCN: Message List - SAP SQL Anywhere
Viewing all articles
Browse latest Browse all 2182

Show all returns from a query without manually sort, also count returns by value

$
0
0

I have this code:

 

select LastReqTime,

BlockedOn,

UncommitOps

from sa_conn_info()

WHERE LastReqTime < DATEADD(mi,-60,GETDATE()) AND BlockedOn > 0 AND UncommitOps = 0

 

An example of the return is:

 

Is there a way to instruct SQL to return and show all values, without limiting the display? In the above

query, it shows the first 115 rows and I must manually sort or scroll down to see the total number.

 

Also is there a way to get a count of each unique BlockedOn value, for use in a different query?


Viewing all articles
Browse latest Browse all 2182


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