Viewing 15 posts - 316 through 330 (of 374 total)
:w00t:
SQL Saturday Chicago, here I come! (I was wait listed when I originally signed up...)
March 21, 2011 at 11:54 am
WayneS (3/21/2011)
Koen Verbeeck (3/21/2011)
I'm glad I'm not the only Twitter noob around here 😀
It looks like there's quite a few of us jumping into this twitter thing all at once....
March 21, 2011 at 7:47 am
Let me try to tackle this from another direction. Based on the information you provided, I set up this data set:
create table #AVGtest
(LOS int)
go
insert into #AVGtest (LOS) values (8)
go
insert into...
March 18, 2011 at 11:45 am
Can you post a sample table definition and sample data? I built a test bed for this and couldn't get avg(LOS) to return anything but an integer result on my...
March 18, 2011 at 11:26 am
hbanerje (3/18/2011)
I am struggling to get two decimal places in an AVG number
so I wrote
select
cast(avg(LOS) as decimal (9,2))
from the table1
---it is giving me the result 9.00
LOS is an integer...
not...
March 18, 2011 at 11:09 am
Ryan Fitzgerald (3/18/2011)
Bull, theres a comma at the end of the create. That will fail.
Try running it. I thought it would fail, but I decided to test the code...
March 18, 2011 at 11:00 am
Grant Fritchey (3/17/2011)
Brandie Tarvin (3/17/2011)
March 17, 2011 at 9:17 am
Steve Jones - SSC Editor (3/15/2011)
March 15, 2011 at 10:24 am
CirquedeSQLeil (3/14/2011)
bitbucket-25253 (3/14/2011)
March 15, 2011 at 5:28 am
Jeff Moden (3/14/2011)
March 15, 2011 at 5:21 am
I found a few minutes I wasn't expecting to have and mocked up a sample for you:
create table auditData
(pk_id int
,fk_id int
,column1 varchar(15)
,column2 varchar(15)
,column3 varchar(15)
)
go
insert into auditData (pk_id, fk_id, column1, column2,...
March 14, 2011 at 5:40 am
Have you looked at UNPIVOT as an option?
March 14, 2011 at 5:30 am
GSquared (3/11/2011)
Ian Scarlett (3/11/2011)
DBA - Does Bu**er Allas some of my co-workers try to tell me 😛
And here I thought the usual insult on it was "Database A**hole".
That's certainly what...
March 11, 2011 at 9:48 am
GSquared (3/10/2011)
To truncate a table in Rhode Island, you first get a chainsaw, then you lock the chairs so no one new can sit down at the table, unless they...
March 10, 2011 at 11:23 am
Viewing 15 posts - 316 through 330 (of 374 total)