Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Need a Query on group by condition

$
0
0
Hi ALL,I have one table which contines 3 columns they are 1.emp2.monthyear3.amountin that table i am having 6 rows like below.emp monthyear amount1 102013 10002 102013 10001 112013 10001 112013 10002 122013 10002 122013 0000i want a total on group by condition on each employee. which will have the data from NOV to dec 2013 only.out put should be like this1 20002 1000

Viewing all articles
Browse latest Browse all 3145

Trending Articles