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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

subquery in a query using a case

Status
Not open for further replies.

ShockValue

Programmer
Joined
Jul 22, 2011
Messages
2
Location
US
I am trying to do with pervasive sql somehting like this,
basically if it a nested subquery in a case. I can do this in MSSQL but pervasive is trickier.

select "Date","FNAME","LASTNAME","ID",select case "ID when
10 then
(select "altid" from "system")
else
"ID"
end select
as "DAYID"
from "Account"
 
What version of PSQL are you using? What error are you getting?

Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
 
I have to code this to work across 7.9 2000i to version 10




[Pervasive][ODBC Engine Interface]Syntax Error:
select<< ???
>>>>>>>>>>>>>>>>>>>>>>>>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top