i have a table session ,
as i have to run two select statements everytime which shows the result sof online user's and username and status
is it possible to combine both the statement in a single statement or any other method
query 1
query 2
as i have to run two select statements everytime which shows the result sof online user's and username and status
is it possible to combine both the statement in a single statement or any other method
query 1
VB.NET:
select username ,status from session where status='online'
query 2
VB.NET:
select count(status) from session where status='online'