thanks a lot for look in... i have a example u ca paste and see it returns different data... bit not clear create table #abc(a numeric,b varchar(5),c varchar(10))insert into #abc values (1,'aa1','a11a3sas')insert into #abc values (1,'aa2','a11a1sas')insert into #abc values (2,'aa3','a11a4sas')insert into #abc values (3,'aa4','a11a6sas')insert into #abc values (1,'aa3','a11a3sas')declare @a numeric,@b varchar(5),@c varchar(10)beginselect @a=a,@b=b,@c=c from #abc where a=1 order by 2 descselect @a,@b,@cselect a, b,c from #abc where a=1 order by 2 descselect @a=a,@b=b,@c=c from #abc where a=1 select @a,@b,@cselect a, b,c from #abc where a=1 select top 1 @a=a,@b=b,@c=c from #abc where a=1 select @a,@b,@cenddrop table #abc
is it that if the data returns more than one row the varibles hold the last value.....thanks======================================Ask to your self before u ask someone