Viewing 15 posts - 4,576 through 4,590 (of 10,144 total)
This is What'sUp Gold data. What version of SQL Server is hosting it?
The left joins in the query will be converted into inner joins by the child table joins:
INNER...
May 21, 2013 at 9:07 am
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...
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?
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,...
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...
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
May 20, 2013 at 8:44 am
Linda_web (5/16/2013)
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...
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...
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...
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...
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...
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.
...
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...
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...
May 17, 2013 at 2:58 am
Viewing 15 posts - 4,576 through 4,590 (of 10,144 total)