Viewing 15 posts - 991 through 1,005 (of 1,248 total)
BWFC (6/20/2014)
BWFC (6/20/2014)
thomashohner (6/19/2014)
SpammersSpam
Spam
Spam
Sorry, couldn't resist :Whistling:
Python
June 20, 2014 at 1:11 am
BWFC (6/20/2014)
thomashohner (6/19/2014)
SpammersSpam
Spam
June 20, 2014 at 1:09 am
Sean Pearce (6/19/2014)
mod: removed dead link
Do you mind if I borrow that?
June 19, 2014 at 6:37 am
TomThomson (6/18/2014)
BWFC (6/18/2014)
I disagree there. It doesn't say that all on site databases are 2012, it says that uses 2012. That doesn't preclude there being...
June 18, 2014 at 1:01 pm
SELECT distinct
q.Description
,SUM(q.Amount) OVER (PARTITION BY q.Description)
FROM #Question q
It might be worth you trying to create some sample data that's closer to what you actually have. You can do...
June 18, 2014 at 8:26 am
And another thing!!!
the cloud is the more likely given that the company is progressive enought to have everything on site running SQL 2012
The company I work for is constantly employing,...
June 18, 2014 at 8:11 am
mattech06 (6/18/2014)
So a better example would be using a table with ..
CREATE TABLE...
June 18, 2014 at 8:03 am
You're welcome.
If you have read of this article [/url] then it'll be much quicker getting an answer in future. It'll save people having to make assumptions and it'll...
June 18, 2014 at 7:19 am
You can use one CTE after another, like so:
CREATE TABLE #Question ([Description] VARCHAR(15), [Amount] INT)
INSERT INTO#Question
SELECT 'Bob', 10 UNION ALL
SELECT 'Tim',20 UNION ALL
SELECT 'Jim',30
;
WITH cteTest AS
(
SELECT * FROM...
June 18, 2014 at 7:00 am
Rhythmk's solution does exactly what you want or the alteration to my solution below will do the same, although much less elegantly.
SELECT
q.[Description]
,SUM(s.totSum)
FROM #Question q
CROSS APPLY
(
...
June 18, 2014 at 6:32 am
Viewing 15 posts - 991 through 1,005 (of 1,248 total)