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

ORA-00904 Invalid Identifier

Status
Not open for further replies.

FireGeek21

Technical User
Dec 12, 2007
218
US
I have the following SQL Expression that works just fine:

(SELECT "PGEMPLOYEE"."GROUP_NAME"
FROM "LAWSON"."PGEMPLOYEE" "PGEMPLOYEE"
WHERE ("PGEMPLOYEE"."GROUP_NAME"='MRALIST1-O'
OR "PGEMPLOYEE"."GROUP_NAME"='MRALIST2-O')
AND "PGEMPLOYEE"."COMPANY" = "EMPLOYEE"."COMPANY"
AND "PGEMPLOYEE"."EMPLOYEE" = "EMPLOYEE"."EMPLOYEE")

However... I actually need a list of employees to look through so selecting "PGEMPLOYEE"."EMPLOYEE" is better suited for this. I changed this out and now the following is not working at all!

(SELECT "PGEMPLOYEE"."EMPLOYEE"
FROM "LAWSON"."PGEMPLOYEE" "PGEMPLOYEE"
WHERE ("PGEMPLOYEE"."GROUP_NAME"='MRALIST1-O'
OR "PGEMPLOYEE"."GROUP_NAME"='MRALIST2-O')
AND "PGEMPLOYEE"."COMPANY" = "EMPLOYEE"."COMPANY"
AND "PGEMPLOYEE"."EMPLOYEE" = "EMPLOYEE"."EMPLOYEE")

Any ideas??? Thanks!

FireGeek21

FireGeek
(currently using Crystal Reports XI with Lawson 9.01)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top