Viewing 12 posts - 1 through 13 (of 13 total)
@old hand
but i have the inner condition if @@rowcount=0 then break then shouldnt go infinite......
@sean
Curser ?? can u write sample query of it ?
October 6, 2011 at 1:44 pm
yes i know tat ..but i want to use loop becoz want clear looping concept in SQL jst pretty mch confuse in it..
October 6, 2011 at 1:38 pm
Select
full_name, Case WHEN full_name LIKE '% % %'
Then
SUBSTRING(full_name, (CHARINDEX(' ', full_name) + 1),
CHARINDEX(' ', (SUBSTRING(full_name, (CHARINDEX(' ', full_name) + 1),
(LEN(full_name) -
CHARINDEX(' ', full_name))))))
Else
null
End
'Middle_Name' From #names
update
#names set middle_name=Case WHEN full_name LIKE...
September 12, 2011 at 7:05 am
well tatz not important whether is the surname or not.. all i need is to break the string 🙂
September 12, 2011 at 6:28 am
yes ..it will always have space ......the only constant thing is space after every word....
wat will b the possible solution ??/
September 12, 2011 at 6:25 am
select ordernumber session_time session_id email_id
from table
where session_time=(select max(session_time) from table)
and email_id=(your desired email)
tat will be possible solution by my understanding of ur question!!
August 26, 2011 at 11:52 pm
select ordernumber session_time session_id email_id
from table
where session_time=(select max(session_time) from table)
tat will be possible solution by my understanding of ur question!!
August 26, 2011 at 11:50 pm
hey guys i have figure it out.....and got the correct query thanx anyways 🙂
August 11, 2011 at 11:16 pm
myquery
=============
select distinct a.country,a.zone,a.branch,a.user1,' ' as 'user2'
from test a ,test b
where
a.country=b.country
anda.zone=b.zone
and a.branch=b.branch
guys i have this two records of users of same country ,zone...
August 11, 2011 at 11:03 pm
Viewing 12 posts - 1 through 13 (of 13 total)