Reputation: 413
Am trying to Fetch Only one record from the Sybase Table without using the RowCount Function, even though "WHERE Condition" returns multiple results.
SELECT TOP 1 EMPLOYEE_NAME FROM EMPLOYEES WHERE EMPLOYEEID > 50
Runs Successfully with one Record Only,
However
SELECT TOP 1 EMPLOYEE_NAME FROM EMPLOYEES WHERE EMPLOYEEID > 50
fails, when written inside a Sybase Procedure as a Sub Query
Upvotes: 4
Views: 12166
Reputation: 4683
I know it is late but just for others TOP inside a subquery can be used in sybase latest version.
Upvotes: -2