ThatRickGuy
Programmer
Hi! I'm having some problems with a sub query. I have to admit I'm not too familiar with uSQL/Informix but this is an older app that our users want modified.
When I try to run this query I get: "*** Error: ')' expected here (DISTINCT)" If I remove the DISTINCT command I get the same error except the (FROM) is specified instead.
Any thoughts?
-Rick
VB.Net Forum forum796 forum855 ASP.NET Forum
I believe in killer coding ninja monkeys.
Code:
SELECT
(... field list...)
FROM
CUSTOMR_SHIP_TO,
INVOICE_PRODUCT,
[COLOR=#ff0000](SELECT DISTINCT
PROGRAM_TYPE,
CUSTOMER_NUMBER
FROM
SERIAL_EQUIP) CUSTOMER_PROGRAM_TYPE[/color]
WHERE
CUSTOMR_SHIP_TO.SHIP_TO = INVOICE_PRODUCT.SHIP_TO AND
CUSTOMR_SHIP_TO.SHIP_TO = CUSTOMER_PROGRAM_TYPE.CUSTOMER_NUMBER
When I try to run this query I get: "*** Error: ')' expected here (DISTINCT)" If I remove the DISTINCT command I get the same error except the (FROM) is specified instead.
Any thoughts?
-Rick
VB.Net Forum forum796 forum855 ASP.NET Forum
I believe in killer coding ninja monkeys.