Viewing 15 posts - 61 through 75 (of 128 total)
Perhaps this isn't the actual SQL you're using? Your 't1' and 't2' sub-queries don't contain a 'Model' column - and neither alias is used in the rest of the...
November 25, 2009 at 2:50 pm
Since you will always be rounding to two decimal places, this will work, regardless of the number of decimal positions.
SELECT ROUND(YourNumber + .005, 2, 0)
November 23, 2009 at 9:17 am
As Matt wrote in an earlier post, the COALESCE statement *is* working.
SELECT COALESCE(0, 15) will return 0. SELECT COALESCE(NULL, 15) will return 15. To return the first non-null,...
September 18, 2009 at 8:52 am
This is the output of a T-SQL statement contained within a batch of statements. A BCP format file will not help.
July 21, 2009 at 2:07 pm
After re-re-re-reading the entry in BOL, I tried enclosing the character code for [Tab] in double quotes. That finally worked.
July 21, 2009 at 1:46 pm
Where "PS" said "get max identity from this table", instead use SCOPE_IDENTITY. Read about it in Books Online (BOL). The problem with selecting the maximum identity from a...
June 17, 2009 at 7:06 am
Thanks, Flo. Sigh...
I can cobble the data-entry in Access, but it won't help the appearance in the SSMS TableView grid, though. The CRLF will show as...
March 24, 2009 at 1:06 pm
Jeff, does that mean you're aware of a 'non-easy' method for determining whether a Stored Procedure returns a resultset? And, no, I don't see any dilema; we're interested in...
January 29, 2009 at 10:30 am
Hmmm... Simple addition will NOT work. Multiplication is also needed.
Example 1: 2009 + 1 + 2 = 2012 (January 2, 2009)
Example 2: 2009 +...
December 29, 2008 at 11:55 am
It doesn't matter how quickly it can be done WRONG. 😉
October 23, 2008 at 3:08 pm
upperbognor (10/23/2008)
October 23, 2008 at 2:53 pm
I'm sorry... I meant ROUND(YourValue, 0, 1)
I apologize for my lack of proof-reading.
July 9, 2008 at 7:54 am
or, use
ROUND(YourValue, 1)
(revised) I'm sorry... I meant ROUND(YourValue, 0, 1)
I apologize for my lack of proof-reading.
The non-zero 2nd parameter truncates the value, without changing the...
July 8, 2008 at 2:21 pm
(IntegerConstant * IntegerColumn) / IntegerColumn = IntegerResult
You need to CONVERT or CAST somthing to at least Decimal(8, 2), then round. I'd suggest your IntegerConstant for this.
June 18, 2008 at 3:12 pm
Would the batch-level include parsing and query plan determination / selection?
April 30, 2008 at 9:29 am
Viewing 15 posts - 61 through 75 (of 128 total)