PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

How to Use a FROM Statement in a PSQuery Expression

edited Jun 5, 2012 5:17PM in PeopleTools and Lifecycle Management - PSFT (MOSC) 2 commentsAnswered
We are upgrading from PT.8.21 TO 8.52 and we have queries that use the FROM statement in expressions. These expressions are used and fields in the SELECT statement. The way we have packeged the FROM is by using a SQL Object containing the literal 'FROM'. This worked perfectly for us in 8.51 but we are getting the 'FROM clauses are not allowed in expressions.' error now that we are running the same set up in 8.52.

An example of the 8.51 code is:

SELECT

A.EMPLID,

(SELECT B.NAME %SQL(ZZ_SQL) PS_NAMES B WHERE B.EMPLID = A.EMPLID)

FROM PS_JOB

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center