-
Hi,
Here is the below query i tried with OR condition
#####################################
SELECT DISTINCT CASE
WHEN esc.x1 = Substr(inp.y, 0, 3)
AND esc.x2 = Substr(inp.y, 4, 2)THEN esc.cc
WHEN esc.mcc = Substr(inp.y, 0, 3)
AND esc.mnc = Substr(inp.y, 4, 3)THEN esc.cc
END
FROM xxx inp,
yyy esc
where ( esc.x1=substr(inp.y,0,3) and esc.x2=substr(inp.y,4,2))
or (esc.x1=substr(inp.y,0,3) and esc.x2=substr(inp.y,4,3))
#############################################
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|