Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12554

combine two rows in single column data

$
0
0

hi,

I have an requirement

for ex:

Division              Resourcename   PRojectname    Projectstartdate           Projectenddate    allocated percentage

development           A                     one                    '01/01/2014'           '03/31/2014'             100%

development           B                     one                    '01/01/2014'           '03/31/2014'              100%

development           C                    one                    '01/01/2014'           '03/31/2014'              100%

development           D                    one                    '01/01/2014'           '03/31/2014'              100%

development           E                   one                    '01/01/2014'             '01/31/2014'                  25%

development           E                  one                    '02/01/2014'             '03/31/2014'                  25%

In the above "Resource E have multiple dates ,will work on separate dates on single project,but the resource allocated percentage will be always same(ie)=25%,so the report output look like

Division              Resourcename   PRojectname    Projectstartdate           Projectenddate    allocated percentage

development           A                     one                    '01/01/2014'           '03/31/2014'             100%

development           B                     one                    '01/01/2014'           '03/31/2014'              100%

development           C                    one                    '01/01/2014'           '03/31/2014'              100%

development           D                    one                    '01/01/2014'           '03/31/2014'              100%

development           E                   one                    '01/01/2014'             '01/31/2014'               25%

                                                                              '02/01/2014'             '03/31/2014'              

   

the above SSRS report output look after grouping on division,resource.

this same output i need from sql query.how to achieve this.

Thanks

r.b


Viewing all articles
Browse latest Browse all 12554

Trending Articles



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