Viewing 15 posts - 4,576 through 4,590 (of 10,143 total)
karim.boulahfa (5/21/2013)
ChrisM@Work (5/21/2013)
karim.boulahfa (5/21/2013)
The valua is FLOAT of the columnFLOAT is the data type.
Can you show some sample data for the columns I listed?
select *
from StatisticalDisk
Thats are the rseult...
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
May 21, 2013 at 5:50 am
karim.boulahfa (5/21/2013)
The valua is FLOAT of the column
FLOAT is the data type.
Can you show some sample data for the columns I listed?
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
May 21, 2013 at 5:26 am
ChrisM@Work (5/21/2013)
What are typical values for nUsed_Min and nSize?
You could operate on either the original values or the aggregated values by a constant,...
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
May 21, 2013 at 5:17 am
What are typical values for SUM(nUsed_Min) and SUM(nSize)?
Your query is easier to read if table aliases are used:
SELECT TOP 10
d.nDeviceID,
d.sDisplayName,
sgroupname,
sDescription,
dPollTime,
MIN(nUsed_Min) AS Minimaal_gebruik,
MAX(nused_Max) AS...
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
May 21, 2013 at 4:11 am
or something like this:
SELECT
p.ProductId,
t.TransactionCount
FROM Product p
LEFT JOIN (
SELECT
ProductId,
TransactionCount = COUNT(*)
FROM [Transaction]
GROUP BY ProductId
) t ON t.ProductId = p.ProductId
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
May 20, 2013 at 8:44 am
Linda_web (5/16/2013)
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
May 17, 2013 at 8:28 am
GilaMonster (5/17/2013)
T.Ashish (5/17/2013)
Though I know the drawbacks of NOLOCK, it can't be avoided in our case.
Really? So you absolutely must allow potentially incorrect data in results because ....
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
May 17, 2013 at 7:30 am
kunal.desai 7690 (5/17/2013)
Agreed that ParentId in my results are not in the table, but that is what I want to generate!!
then you must explain the rules for generating ParentID.
Your query...
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
May 17, 2013 at 7:01 am
Sean Pearce (5/17/2013)
I'm more curious about the logical reads rather than the execution time. I tried my test script again, but rebuilding all indexes before the update, but saw...
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
May 17, 2013 at 6:56 am
Your results are incorrect - they show a parentid which doesn't exist in the table.
WITH ParentTable AS (
SELECT * FROM (VALUES
(1,'Parent1'),
(2,'Parent2'),
(3,'Parent3')) d (Id, Name)
), ChildTable AS...
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
May 17, 2013 at 6:42 am
The queries are logically equivalent, they generate the same result set. The plans are identical. What was the question again?
Think of your query as a description of the result...
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
May 17, 2013 at 6:35 am
T.Ashish (5/17/2013)
I have a query which was using CROSS JOIN (with relations) earlier and now we modified it with INNER JOIN.
...
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
May 17, 2013 at 5:52 am
Hi Sean
Just a hunch, I rebuilt all of the indexes then updated stats after loading the tables with data - and the results are quite different. Updating the table with...
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
May 17, 2013 at 5:36 am
lgegerton (5/16/2013)
@pagenum AS BIGINT = 0,
@ROWCNT AS BIGINT = 1;
While @ROWCNT > 0
BEGIN
Update ceb set CEB.new_WCDSCreatedOn = D.CreateDate
from contactextensionbase ceb join
(SELECT IndividualID,CreateDate
from #tmpIndividualCreateDates
order...
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
May 17, 2013 at 2:58 am
patrickmcginnis59 10839 (5/16/2013)
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
May 17, 2013 at 1:05 am
Viewing 15 posts - 4,576 through 4,590 (of 10,143 total)