Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

selection dataset Expand / Collapse
Author
Message
Posted Thursday, May 9, 2013 4:16 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Saturday, June 22, 2013 4:44 AM
Points: 4, Visits: 46
Hello Friends

I want this type output.Here I want in first column how many members are join today(registration),and in second column sum of member before today,and third column the sum of two columns.I want to display this records in c#
where user can pass current date(today date) and according to this he/she will get this output.If this possible in single query?



  Post Attachments 
qq.png (9 views, 3.21 KB)
Post #1450989
Posted Thursday, May 9, 2013 8:15 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 2:34 PM
Points: 12,923, Visits: 12,342
kishor.patgir (5/9/2013)
Hello Friends

I want this type output.Here I want in first column how many members are join today(registration),and in second column sum of member before today,and third column the sum of two columns.I want to display this records in c#
where user can pass current date(today date) and according to this he/she will get this output.If this possible in single query?



I am pretty sure that this is possible in a single query.

I am guessing that you also would like some help with query? If so, you will need to post ddl (create table statements) and sample data (insert statements) along with the desired output based on the sample data. Please take a few minutes to read the first article in my signature for best practices when posting questions.


_______________________________________________________________

Need help? Help us help you.

Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.

Need to split a string? Try Jeff Moden's splitter.

Cross Tabs and Pivots, Part 1 – Converting Rows to Columns
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs
Understanding and Using APPLY (Part 1)
Understanding and Using APPLY (Part 2)
Post #1451141
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse