Viewing 15 posts - 2,266 through 2,280 (of 6,036 total)
And here we come to the order of SELECT statements execution.
1. FROM
2. INNER JOIN
3. WHERE
...
SELECT comes somewhere 7th or 8th in line.
After that comes GROUP BY.
And that's where the aggregation...
January 12, 2012 at 6:08 pm
Hugo Kornelis (1/12/2012)
"Is executed" can have two meanings.
1. Present tense, passive form - the code is invoked. Can be compared to running "EXEC MyStoredProc" in...
January 12, 2012 at 4:52 pm
Explanation:
Nothing is stopping an INDEX SEEK from being used and answer "A" is the correct answer.
Actually something does.
It's named "bookmark lookup".
January 12, 2012 at 4:02 pm
Hugo Kornelis (1/12/2012)
So the first operator to execute is the Stream Aggregate (step 1), but the first operator to actually touch any real data is the Table Scan (step 4).
As...
January 12, 2012 at 3:48 pm
Hugo Kornelis (1/12/2012)
Sergiy (1/12/2012)
Simple question:what's being aggregated if the data in the table have not been scanned yet?
Most operators don't process all data at once; they are called repeatedly...
January 12, 2012 at 3:31 pm
Simple question:
what's being aggregated if the data in the table have not been scanned yet?
January 12, 2012 at 2:03 pm
Check the topic "DATETIME Query problem" on the 1st page of this forum.
Might be exactly the same issue.
January 10, 2012 at 12:21 pm
cookie SQL (1/9/2012)
Thanks, I agree with your comments.I Still would like to understand whats going on with the cast though.
CAST uses server's default DATEFORMAT settings, which are not probably the...
January 9, 2012 at 3:19 pm
Rob Reid-246754 (12/22/2011)
Therefore I need a way of distinguishing between the right and "wrong" fraction prices for a given decimal value.
Just leave only "right" fraction in the lookup table, and...
December 22, 2011 at 2:37 pm
suzanne.miller (12/14/2011)
I will stay away from the FLOAT characater type in future whenever possible.
FLOAT is not a character type, it's a numeric data type.
That's why this your statement...
December 21, 2011 at 5:41 pm
Rob Reid-246754 (12/21/2011)
I need a UDF that will take a decimal price e.g 2.50 and convert it to a fraction price 6/4
There 2 main problems here.
1) 2.50 may represent odds...
December 21, 2011 at 4:50 pm
This query will work out all odds at once:
DECLARE @Odds TABLE (
Odds varchar(20)
)
INSERT INTO @Odds (Odds)
SELECT '1/1'
UNION
SELECT '6/4'
UNION
SELECT '5,6/4'
UNION
SELECT '8/3'
UNION
SELECT '1/1'
UNION
SELECT '1,1'
UNION
SELECT '11/10'
UNION
SELECT '1000/1'
UNION
SELECT '5/7'
SELECT Odds,
CONVERT(DECIMAL(10,2), (CONVERT (decimal(18,6),...
December 20, 2011 at 7:36 pm
Or read this article:
http://www.sqlservercentral.com/articles/Test+Data/61572/
It's from the same author, so should be as useful.
🙂
Check the outcome generated in The "Hog" Test.
Just export 2 columns generated by the query to comma delimited...
December 20, 2011 at 7:13 pm
You nay use a "concatenate" function to put all the answers into a single varchar value, including all quotes and commas.
After that you just export that 2 columns table to...
December 12, 2011 at 6:49 pm
Viewing 15 posts - 2,266 through 2,280 (of 6,036 total)