Hi everyone,
Being a very new in SQL Server 2005, I happend to read somebody's code'S segment and got totally confused with what certain expressions mean....
Particularly:
1. What "ID+case when...." expression really means. Actually I am confused with "+" operator between field name and case expression
2. What "end+dos as ClaimNo" means in the expression below? My understanding is that END just closes CASE expression. However what is a role of "dos" and how this kind of "sumary" of END +dos
occurs to become an elliase? Or a table ?
This is the code's segment:
SELECT
ID+case when [LOINC Code] eq '13457-7' and ResultVal<100 then '3048F' when [LOINC Code] eq '13457-7' and ResultVal<120 then '3049F'
end+dos as CLAIMNO
,1 as LINENUM
,ID AS memid
,'QUESTLAB' AS provid
Could you, please, give me a hand?
Thank you in advance,
Iren
Being a very new in SQL Server 2005, I happend to read somebody's code'S segment and got totally confused with what certain expressions mean....
Particularly:
1. What "ID+case when...." expression really means. Actually I am confused with "+" operator between field name and case expression
2. What "end+dos as ClaimNo" means in the expression below? My understanding is that END just closes CASE expression. However what is a role of "dos" and how this kind of "sumary" of END +dos
occurs to become an elliase? Or a table ?
This is the code's segment:
SELECT
ID+case when [LOINC Code] eq '13457-7' and ResultVal<100 then '3048F' when [LOINC Code] eq '13457-7' and ResultVal<120 then '3049F'
end+dos as CLAIMNO
,1 as LINENUM
,ID AS memid
,'QUESTLAB' AS provid
Could you, please, give me a hand?
Thank you in advance,
Iren