A SAS/ACCESS connection uses PROC SQL with a pass-through query to execute native Oracle SQL. Which statement correctly implements an explicit SQL pass-through query to Oracle?
Select an answer to reveal the explanation.
Short Explanation
Here's the deal — you use CONNECT TO Oracle to open the connection, SELECT * FROM CONNECTION TO Oracle (...) to run native Oracle SQL and bring results back, then DISCONNECT FROM Oracle to close it. The EXECUTE ... AT Oracle form is for non-SELECT commands like UPDATE, not for returning rows.
Full Explanation
The correct PROC SQL block uses CONNECT TO oracle to open the connection, SELECT * FROM CONNECTION TO oracle (...) to run native Oracle SQL and return rows to SAS, then DISCONNECT FROM oracle. The EXECUTE ... AT oracle form is wrong because EXECUTE is for non-SELECT commands like UPDATE, not returning query results. The PASSTHROUGH oracle ... ENDPASSTHROUGH block is invalid SAS SQL syntax. The ORACLE DIRECT statement is also invalid SAS SQL syntax.