vairam2008 wrote:
the procedure construct itself looks wrong, did you mean that it will return one result or the other conditionally?
This is correct
SQL server supports returning unlimted number of results in one statment .
This is useful as a performance gain .
You can get a customer and his orders in one trip to the server .
Oracle supports this also using packages .
MySQL supports it also via procedures .