Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

instruction Case in SQL

Status
Not open for further replies.

vpv

Programmer
Oct 30, 2003
24
RU
i write follow instruction :
CURSOR DL (dt1 DATE,dt2 DATE) IS
select ipcrcard, dpcrsdt, dpcrfdt, ipcracc,
f.ccknname, h.cognsname,
case when cognsname is null then 'natural person' else cognsname end,ccusname,cncrhtp
from dfc, trm.....

but show error: "encountered symbol CASE, when expecting..."

Why?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top