Viewing 15 posts - 586 through 600 (of 600 total)
To me, its not the least bit intimidating. In fact, its reassuring. For there to be so much collective knowledge, and for it to be so accessible and easy...
July 16, 2010 at 6:43 am
You have the parameters in the wrong order, I believe.
July 15, 2010 at 1:59 pm
Can't you just do a group by clause and use avg for this?
select ClientId, ProductName, Avg(Size), dateadd(month, datediff(month, 0, MeasuredDate),0)
from WHATEVERYOURTABLEISCALLED
where WHATEVER YOUR RESTRICTIONS ARE
group by ClientId, ProductName, dateadd(month, datediff(month,...
July 15, 2010 at 12:53 pm
Is that display intented to match the sample data you provided?
Because the sample you showed for client 101, product tkczfbag , month june, you said you want it...
July 15, 2010 at 10:36 am
So you have a customer table with 11 account fields on it?
July 14, 2010 at 1:10 pm
lol, if I was a genius I'd probably have gotten it right the first time.
July 13, 2010 at 10:44 am
Bleh, I'm making a mess of this. Now I see why they ask people on here to post compileable versions of their tables with test data.
Also had a brain...
July 13, 2010 at 9:35 am
Think I just forgot to put "END" after ELSE 0 in both case statements.
July 13, 2010 at 6:58 am
phil.cooper.2 (7/12/2010)
I am not...
July 12, 2010 at 2:22 pm
My bad. I assumed from your sample data that they would have all matching rows.
You can use a full outer join instead of an inner join to...
July 12, 2010 at 11:21 am
It looks like you may be misunderstanding what a union does. It will give you all the rows from both queries, not merge them together.
What you actually...
July 12, 2010 at 9:47 am
Mike Cunningham (7/9/2010)
July 9, 2010 at 7:39 am
I think a DBA reacting to situations like this they encounter is fine. If you learn of critical data being stored in an unsafe way, by all means speak...
July 5, 2010 at 10:13 am
James Stover (7/2/2010)
July 2, 2010 at 2:20 pm
I recently started as an IT manager for a company (formerly a programmer elsewhere) without a DBA. And as Mark Magnus suggested back on page 1, there is...
July 2, 2010 at 1:47 pm
Viewing 15 posts - 586 through 600 (of 600 total)