Viewing 15 posts - 6,631 through 6,645 (of 26,490 total)
Eirikur Eiriksson (5/12/2014)
Lynn Pettis (5/12/2014)
I have no idea what you mean by a POC Index, please explain. Also, please note the changes I did make on the sample data.
The...
May 12, 2014 at 11:19 am
Here are the execution plans and a spreadsheet with the results tab from Plan Explorer.
May 12, 2014 at 10:24 am
Here is what I have seen in a couple of separate threads already, windowing functions aren't always the best solution to solving a problem.
May 12, 2014 at 10:17 am
Here is the latest execution plans and spreadsheet with the information from SQL Sentry Plan Explorer results tab when using it to generate the actual execution plans.
May 12, 2014 at 10:02 am
Not reposting all the code again, but here is the Statistics output after adding the latest code to the group:
********** Simple Outer Apply **********
(9 row(s) affected)
Table 'Company'. Scan...
May 12, 2014 at 9:56 am
Eirikur Eiriksson (5/12/2014)
May 12, 2014 at 9:51 am
Sean Lange (5/12/2014)
Ed Wagner (5/12/2014)
Sean Lange (5/12/2014)
paul.knibbs (5/12/2014)
May 12, 2014 at 9:47 am
Luis Cazares (5/12/2014)
SELECT c.IdCompany,
c.CompanyName,
...
May 12, 2014 at 9:00 am
I still haven't setup a million row test, and really should to really test the proposed solutions, but I made a few minor changes to the CompanyGroup table. I...
May 12, 2014 at 7:35 am
Eirikur Eiriksson (5/11/2014)
😎
SELECT
IdCompany
,CompanyName
...
May 12, 2014 at 6:50 am
Just for comparison I ran the following two queries against the sample data:
select
c.IdCompany,
c.CompanyName,
isnull(oa.CompanyCode, c.CompanyCode) CompanyCode
from
...
May 11, 2014 at 10:03 pm
And here is an alternative solution:
Create Table dbo.Company(
IdCompany int primary key,
CompanyName varchar(50),
CompanyCode varchar(50));
Insert into Company
values
...
May 11, 2014 at 8:28 pm
FYI, I changed the RecordingDate data type from varchar(255) to date (since this is a SQL Server 2008 forum). Dates really should be stored using the correct data type.
May 11, 2014 at 7:54 pm
A lot of extra work when it isn't really needed if you ask me.
If OBJECT_ID('tempdb..#Crusty_Table') is not null
Begin
Drop table #Crusty_Table
End
Create table #Crusty_Table (
UniqueIDvarchar(255),
RecordingDatedate
)
Insert Into #Crusty_Table(UniqueID, RecordingDate)
Select '123738','05/21/1969' UNION All
Select '123738','06/09/2010'...
May 11, 2014 at 7:49 pm
David Burrows (5/11/2014)
Lynn Pettis (5/11/2014)
Eirikur Eiriksson (5/11/2014)
thank you both for the input, I appreciate it.
Firstly, this is a valuable discussion and would merit a thread on its...
May 11, 2014 at 10:00 am
Viewing 15 posts - 6,631 through 6,645 (of 26,490 total)