I have a proprietary application that generates its own IDs internally. I have replicated the logic in a Stored Procedure.
If I issue:
EXEC MyNewID @TableName = 'Account'
I get the ID correctly back.
I now need to impliment this in an INSERT INTO ....
I'm only trying to select the records...
Say I have a SQL statement something like:
Select Max(Col1), Max(Col2), Max(Col3) From Table1
The results are;
Col1 Col2 Col3
3 8 5
I would like to return the Max of these columns so the only return is 8.
Any Suggestions?
Ken
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.