Viewing 15 posts - 826 through 840 (of 1,048 total)
nice and easy question to grab +2 points 😛
November 19, 2012 at 6:03 am
good question...
day of week for qq was just a threat 😛
November 19, 2012 at 3:33 am
I used 0-9 range in script for procedure that dont have alphabets in the last like- 8680,0625 etc...
for code like '0625A', '0635B' i used the A-Z in where clause
November 19, 2012 at 3:28 am
good discussion as the explanation is not correct properly...
November 19, 2012 at 3:21 am
good basic question for the beginners..
November 19, 2012 at 3:17 am
Hi Jason,
Update
pc
Set
pc.ParentProcedureID=p.procedureid
from
ProcedureMaster pc
JOIN ProcedureMaster p on Left(pc.procedurecode,4)=P.procedurecode
Where
Right(pc.procedurecode,1) like '[0-9]'
This will also works..
your code is also working..
thnks a lot!!!:-)
November 19, 2012 at 3:02 am
but jason I alsio need to updateed parentprocedureID of procedureId 86 as 86 only----
November 19, 2012 at 2:39 am
here is the table structure with some sample data:
create table proceduremaster
( procedureid int primary key ,
procedurecode varchar(10),
ParentProcedureID int)
Insert into proceduremaster(procedureid, procedurecode)
select 86, '0062'
union all
select 87,'0062A'
union all
select 88,'0062B'
union all
select 93,8680
union
select...
November 19, 2012 at 2:39 am
i have already posted the script of table creation with some sample data...
November 19, 2012 at 1:55 am
I think this question is more about guessing rather than tricky one...
select STR(4.65,10,1) -- it will gives 4.7
select STR(3.65,10,1) -- it will gives 3.6
November 18, 2012 at 11:29 pm
GOOD QUESTION WITH +1 AS MOVING TOWARDS END OF THE WEEK :-):-)
November 9, 2012 at 12:03 am
Its not a question that worth of 21 points...
November 8, 2012 at 2:55 am
Viewing 15 posts - 826 through 840 (of 1,048 total)