---I have below SQL Table.....USE [abc]GOSET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOSET ANSI_PADDING ONGOCREATE TABLE [dbo].[IC_Raw_In]( [I_Date] [varchar](50) NULL, [I_O_P] [money] NULL, [I_O_H] [money] NULL, [I_O_L] [money] NULL, [I_C_O] [money] NULL, [I_Serial] [numeric](18, 0) NULL) ON [PRIMARY]GOSET ANSI_PADDING OFFGO--
Now i want to query on every row of I_C_O of last two rows difference, say example if the data has like below.I_C_O10121315985now I want the difference in sepearate two columns called positive and Nagtive Columns. and the fist row should be 0 in positive and Nagtive.from there onwords it should show the diffrence of last two rows of I_C_O, if the diffrence is in Positive (+) show in Positive Column else show in Nagtive Column (- value).I_C_O Positive Nagtive10 0 012 2 013 1 015 0 29 0 68 1 05 3 0
Looking for this query help..........