Viewing 15 posts - 1,711 through 1,725 (of 10,143 total)
lanky_doodle (3/3/2016)
I have a query that is returning 3 rows (because there are 3 owners). I need to concat the 3 owners into a single value, which would return...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
March 3, 2016 at 4:35 am
TomThomson (3/3/2016)
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
March 3, 2016 at 1:52 am
Sean Lange (3/2/2016)
Ed Wagner (3/2/2016)
Sean Lange (3/2/2016)
Alan.B (3/2/2016)
Sean Lange (3/2/2016)
Steve Jones - SSC Editor (3/2/2016)
Alan.B (3/1/2016)
Ed Wagner (3/1/2016)
Alan.B (3/1/2016)
jasona.work (3/1/2016)
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
March 3, 2016 at 1:46 am
Run the result of the query into a #temp table and reference the temp table in your email body.
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
March 2, 2016 at 1:39 am
The two rows with date '2010-02-04' have FID of 1 and 3. Your desired output lists FID of 2 and 3 for this date.
Can you explain how FID of 2...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
March 1, 2016 at 5:45 am
ravi@sql (3/1/2016)
I have a Merge statement which has both insert and update .
But source table is quite huge it is having around 70 million records or 2...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
March 1, 2016 at 4:31 am
You have one too many SELECTs in there:
IF OBJECT_ID('tempdb..#StockManagement') IS NOT NULL DROP TABLE #StockManagement;
SELECT
STOCKCODE,
CAST(SUM((CASE WHEN TransactionTypeId IN (1, 4, 5, 7, 8, 10, 11, 13, 14) AND...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
March 1, 2016 at 2:13 am
This exact same query including comments word for word was published by Ian Stirk in 2009.
http://www.sqlservercentral.com/articles/DMV/64425/
[/url]
Edit: 2008 even!
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 29, 2016 at 1:57 am
Luis Cazares (2/26/2016)
Ray K (2/26/2016)
Steve Jones - SSC Editor (2/26/2016)
Ed Wagner (2/26/2016)
Sean Lange (2/26/2016)
Ed Wagner (2/26/2016)
Grumpy DBA (2/26/2016)
Hugo Kornelis (2/26/2016)
Grumpy DBA (2/26/2016)
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 26, 2016 at 9:19 am
Then you should try columnstore [/url]indexes too - another weapon in your armoury. I think your sample query could benefit a great deal from a columnstore index.
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 26, 2016 at 9:01 am
There seem to be numerous syntax errors with this part:
IF ( (
@Client = 'Winco Foods'
AND EXISTS ( ;
WITH XMLNAMESPACES('http://www.w3.org/2001/XMLSchema-instance' AS ns)
SELECT
AuditNbr, VndNbr, VndName, CompanyCode, AuditorID,...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 26, 2016 at 8:13 am
ScottPletcher (2/23/2016)
ChrisM@Work (2/23/2016)
spaghettidba (2/23/2016)
CONVERT(date, RIGHT(Date1,2) +...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 24, 2016 at 2:21 am
MMartin1 (2/23/2016)
ChrisM@Work (2/18/2016)
Nikku (2/18/2016)
I have two tables t1 & t2 which contains the same records. t1 is for bank1 & t2 is for bank2
i.e t1
accno name balance
001000 ...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 24, 2016 at 2:17 am
Alan.B (2/23/2016)
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 24, 2016 at 2:03 am
Just to clarify, Ben - it's this system you are attempting to tune:
ben.brugman (2/23/2016)
Has been designed from the start with clustered indexes on the subscriberid. And this has...
For fast, accurate and documented assistance in answering your questions, please read this article.
Understanding and using APPLY, (I) and (II) Paul White
Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden
February 23, 2016 at 7:53 am
Viewing 15 posts - 1,711 through 1,725 (of 10,143 total)