I'm trying to avoid using a stored procedure, but I'm attempting the following SQL query in CR 8.5:
SELECT
A.X
FROM
A, B
WHERE
A.Y = B.Y (+) AND
B.Z=user
However, everytime I enter this into Database-->Show SQL Query, it changes it and returns:
SELECT
A.X
FROM
A
WHERE
AND B.Z=user
Of course, returning a syntax error. Can CR 8.5 and/or SQL not compute the two together, in which case a stored procedure would be pointless as well?
I'm trying to avoid prompting the user for their username and use the DB User ID which is the same.
SELECT
A.X
FROM
A, B
WHERE
A.Y = B.Y (+) AND
B.Z=user
However, everytime I enter this into Database-->Show SQL Query, it changes it and returns:
SELECT
A.X
FROM
A
WHERE
AND B.Z=user
Of course, returning a syntax error. Can CR 8.5 and/or SQL not compute the two together, in which case a stored procedure would be pointless as well?
I'm trying to avoid prompting the user for their username and use the DB User ID which is the same.