Viewing 3 posts - 1 through 3 (of 3 total)
Assuming that the zero values really are nulls in the database then I suggest the following:-
select
coalesce( col1, 0 ) col1,
coalesce( col2, 0 ) col2,
coalesce( col3, 0 ) col3
from data
order by...
April 6, 2009 at 3:23 am
If it would make sense in your context, you could call one stored procedure from another.
Thus Procedure A calls Procedure B and then uses the output from Procedure B to...
February 3, 2005 at 1:54 am
You could use Query analyser. Right-click on the table you want to create the insert statement for and select 'Script Object to new window' and choose the 'insert' option.
January 18, 2005 at 2:04 am
Viewing 3 posts - 1 through 3 (of 3 total)