Archives of the TeradataForum
Message Posted: Thu, 03 Apr 2003 @ 15:45:04 GMT
While, as Glen explains, you can do this, a stored procedure may be a better fit.
It depends on what you are attempting to accomplish. Are you looking to return a single row or an entire result set from the final select?
Stored Procedures can only return a single row directly. They can however, build a table and return the table name that can be retrieved by any following SQL statement.
|Copyright 2016 - All Rights Reserved|
|Last Modified: 27 Dec 2016|