Instead of using ELSE you may have to use a separate query for each "CASE".. like this person did:
https://stackoverflow.com/questions/23065695/providex-pvx-sql-case-statement
Also found this version 4 ODBC installation and general info manual (attached).
------------------------------
Doug Higgs
Midwest Commerce Solutions, Inc
(312) 315-0960
Chauffeur, Chef, and Personal Assistant to Sprinkles
------------------------------
Original Message:
Sent: 05-05-2023 15:09
From: Dan Burleson
Subject: ProvideX SQL Syntax Regarding the WHEN Statement
That link doesn't work for me either, but the one's Doug and I found have examples that are close, but none that show the ELSE keyword. I wonder if you added a search criteria to ChatCPT of Version 4.x or Sage 100, whether it would give the answer I was looking for. That the WHEN keyword was not yet supported.
------------------------------
Dan Burleson
Software Consultant
Connex Software
------------------------------
Original Message:
Sent: 05-05-2023 10:48
From: Wayne Schulz
Subject: ProvideX SQL Syntax Regarding the WHEN Statement
ChatGPT claims that it found the manual at https://www.sage.com/en-user/products/providex-sql/documentation/
Which does not seem to be a valid link
------------------------------
Wayne Schulz
wayne@s-consult.com
Schulz Consulting
(860) 516-8990
Moodus, CT
Original Message:
Sent: 05-05-2023 10:27
From: Dan Burleson
Subject: ProvideX SQL Syntax Regarding the WHEN Statement
It appears to be "dead on" as in "we're screwed" ;-) at least for the later version of the PxPlus. I haven't downloaded version 6, but it corrected my syntax at that level. That solution will not work for version 4.X. I could find no examples of the "ELSE" keyword and I'm wondering how ChatGBT did. Anyone know where it found this example as it wasn't in the current manual at "https://manual.pvxplus.com".
------------------------------
Dan Burleson
Software Consultant
Connex Software
Original Message:
Sent: 05-05-2023 08:49
From: Wayne Schulz
Subject: ProvideX SQL Syntax Regarding the WHEN Statement
is ChatGPT even close here?

------------------------------
Wayne Schulz
wayne@s-consult.com
Schulz Consulting
(860) 516-8990
Moodus, CT