Need split the data when condition is getting changed without loop
Advertisements Below is my table if exists(select top 1 1 from sys.tables where name=’ObjInfo’) drop table ObjInfo create table ObjInfo(id int identity ,ObjNumber int ,ObjDate datetime ,ObjConditionId int) insert into ObjInfo(ObjNumber,ObjDate,ObjConditionId) values(1,’2014-01-03′,1) ,(1,’2014-01-05′,1) ,(1,’2014-01-06′,1) ,(1,’2014-01-08′,2) ,(1,’2014-01-13′,1) ,(1,’2014-01-15′,1) ,(1,’2014-01-25′,4) ,(2,’2014-01-01′,1) ,(2,’2014-01-05′,1) ,(2,’2014-01-07′,2) ,(2,’2014-01-08′,2) ,(2,’2014-01-12′,2) ,(2,’2014-01-14′,3) ,(2,’2014-01-15′,4) My Job is to display ObjectNumbers wise when condition was… Read More Need split the data when condition is getting changed without loop