Viewing 7 posts - 1 through 7 (of 7 total)
Hi
Here is the possible solution.
create proc [dbo].[parent_child_relation]
@childid char(1)
as
begin
;with cte as
(select Parent,Child from parent_child c
where c.Child = @childid
union all
select c.* from cte p, parent_child c
where p.Parent =...
January 5, 2011 at 2:48 pm
We can use left function also.
Declare @sss varchar(100)
Set @sss ='12,11,23,34,567,690,4,321'
set @sss = reverse(@sss)
set @sss = reverse(left(@sss,charindex(',',@sss) - 1))
print @sss
September 1, 2010 at 11:52 am
You need to take a variable which is of Object data type whch stores all the records into variable
August 26, 2010 at 11:24 am
Can you explain the requirement clearly. I am little confused. You want to move files as they come in...or what exactly you are looking for!!!
August 26, 2010 at 11:15 am
Try soemthing like this!!!
select ID, [Description], Field =
case when ID = 1 then Field1
...
August 24, 2010 at 12:51 pm
Here is the sample query... for the above post
select [Doc Name],
count(case when [Start Date] between '2010-06-01 00:00:00.000' and '2010-06-07 00:00:00.000' then cast(RegID as...
August 24, 2010 at 12:01 pm
Viewing 7 posts - 1 through 7 (of 7 total)