c# - How i can use five different SQl Queries in the same gridview from the same table -


how can use 5 different sql queries in same gridview same table different parameters

select count(distinct callingnumber) uniquecaller,count(callingnumber)      numberofcall fcr1  callnumberpercallreason >15;  select count(distinct callingnumber) uniquecaller,count(callingnumber) numberofcall fcr1  callnumberpercallreason between 2 , 6 , callreasonname='mobile/gsm>vas-crbt>crbt service deactivation'; 

=========output============

calling frequency   unique caller   no of call 15                  7               116 b/n 14-11           11              133 b/n 10-8            50              412 b/n 7-2             8528            20635 1 times           46219           46219 total               54815           67515 

if columns same can use union between 2 queries this:

select count(distinct callingnumber) uniquecaller,count(callingnumber)      numberofcall fcr1  callnumberpercallreason >15; union select count(distinct callingnumber) uniquecaller,count(callingnumber) numberofcall fcr1  callnumberpercallreason between 2 , 6 , callreasonname='mobile/gsm>vas-crbt>crbt service deactivation'; 

if columns different can create blanks columns different example:

 select col1, col2, col3 table1  union  select col1, '', col4 table2 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -