Viewing 15 posts - 2,191 through 2,205 (of 4,081 total)
Trudye, I tried to give you a hint that you were casting the result. This will work with your current column which is in numeric format. ...
October 18, 2009 at 7:46 pm
Hey Trudye:
You need to think about this a little. Your [CEFDT] is NOT really a date. It is a numeric column holding a bunch of numbers...
October 17, 2009 at 9:31 pm
America learned, Jeff.
Lynn we are all grateful to your daughter and all those like her for their service and sacrifice. God bless her and keep...
October 17, 2009 at 9:10 pm
Trying to use case statements to return different datatypes will fail in some cases (like mixing character data with numeric. ) Why you would want to is beyond me...
October 17, 2009 at 9:25 am
You're almost there...
SELECT z.ZipCode, z.CountyName,
MAX(CASE WHEN productid = 1 THEN customerid end) AS 'product1',
MAX(CASE WHEN productid = 2 THEN customerid end)...
October 17, 2009 at 9:09 am
No need to cast everything as float. This will work too.
select 1.0*1/100
-- but not
select 1/100*1.00
SQL resolves each step of a calculation and returns the result using the more...
October 17, 2009 at 8:58 am
I don't know, Jeff. After seeing the kindler/gentler you in action in that "urgent" thread that the OP never came back to, I'd say it's time for...
October 17, 2009 at 8:45 am
Ohhhh..... you mean real physical objects... not higher level code constructs. 😉
October 16, 2009 at 1:56 pm
I got the term from early William Gibson: Neuromancer / Count Zero, but Gus got it right with his link.
Did anyone here ever play a card game called...
October 16, 2009 at 1:02 pm
The volcanic super-eruption of Yellowstone should shatter and melt a lot of the glacial ice, although the ash from the blast will probably bring on global cooling as well as...
October 16, 2009 at 12:58 pm
Jeff,
I have a couple of questions:
(1) Who are you, and (2) what have you done with Jeff Moden?
Alternatively:
(1) What kind of tranquilizers are you taking?
(2) Do...
October 16, 2009 at 10:35 am
I was going to do a version with a CTE, but it wouldn't have been substantively different from your solution, Ken.
October 16, 2009 at 8:47 am
Hey Elliot... what kind of cookies?
October 16, 2009 at 8:09 am
Viewing 15 posts - 2,191 through 2,205 (of 4,081 total)