Viewing 15 posts - 17,221 through 17,235 (of 26,489 total)
Actually, you only need the NULLIF in denominator:
AVG(ISNULL(F.WinningBid/NULLIF(F.AuctionSellerReserve, 0), 0))
Try making a change similar to the above in your code.
January 27, 2010 at 11:35 am
Krasavita (1/27/2010)
What is service account?
Curious, what is your position at your current employer?
Have you ever installed SQL Server?
You really need to start reading more in Books Online. It is...
January 27, 2010 at 11:28 am
Does the following help?
declare @ TimeVal time,
@ TotalTime time; -- spaces between @ and rest of variable names to...
January 27, 2010 at 11:23 am
Is my halo getting tarnished by such responses as this?
January 27, 2010 at 11:10 am
Since it appears that you are attempting to setup SQL Mail in SQL Server 2000, you need to install a MAPI compliant client on the server. This would be...
January 27, 2010 at 11:09 am
tan110 (1/27/2010)
Thanks everyone, was able to get it working with set based statement. Had to loop through all the records.
Care to share?
January 27, 2010 at 11:00 am
Ray K (1/27/2010)
Just curious: is anyone else besides me struck by the number of people asking about character-to-date conversions?
See it quite often. Most replies are that it was inherited...
January 27, 2010 at 10:58 am
It would help to have the table definition(s) (CREATE TABLE statement(s)), sample data (as a series of INSERT INTO statements) for the table(s), expected results based on sample data. ...
January 27, 2010 at 10:57 am
CirquedeSQLeil (1/27/2010)
Bumper Cars
Would be more fun! 😉
January 27, 2010 at 10:51 am
tan110 (1/27/2010)
declare @ TimeVal varchar(16); -- Added space between @ and TimeVal to get code to post
set @TimeVal = '00.13.00';
select @TimeVal, cast(replace(@TimeVal,'.',':') as time)
declare @ TimeVal...
January 27, 2010 at 10:50 am
Curious, the following test code worked just fine on my system:
declare @ TimeVal varchar(16); -- Added space between @ and TimeVal to get code to post
set @TimeVal = '00.13.00';
select @TimeVal,...
January 27, 2010 at 10:36 am
As for the date comparision, I'd rewrite the query as follows to allow for the use of an index on creation_time if it exists:
select
*
from
...
January 27, 2010 at 10:30 am
Greg Edwards-268690 (1/27/2010)
Just got the news about 'all they have left is slow SAN space', to which I said...
January 27, 2010 at 10:20 am
Greg Edwards-268690 (1/27/2010)
A bit on the spendy side, but see where you...
January 27, 2010 at 9:09 am
Viewing 15 posts - 17,221 through 17,235 (of 26,489 total)