T-SQL Query Help
try belowselect '1' Customer ,'Oct'month,'2013' year,100 Amount into #temp1 UNION ALL select '1','Nov','2013',500 UNION ALL select '1','Dec','2013',3000 UNION ALL select '1','Jan','2014',800 UNION ALL...
View ArticleT-SQL Query Help
This is a good use of the window framing functionality of the OVER clause.declare @YourTable table (customer int, [month] varchar(10), [year] int, Amount int) insert into @YourTable select...
View ArticleT-SQL Query Help
Why did you open a thread for the same issue?You never came back with aresponse on the other...
View ArticleT-SQL Query Help
create table #t (m varchar(50), y int, amn int) insert into #t values ('10',2013,100) insert into #t values ('11',2013,500) insert into #t values ('12',2013,3000) insert into #t values ('01',2014,800)...
View ArticleT-SQL Query Help
T-sql Query Help I have a tables as below Customer Month Year Amount 1 Oct 2013 100 1 Nov 2013 500 1 Dec 2013 3000 1...
View Article
More Pages to Explore .....