Viewing 15 posts - 46 through 60 (of 210 total)
Excellent question / information. Really glad to know this
Thank you all for the nice explanations
March 25, 2015 at 1:12 am
I have checked the rows in sys.syscacheobjects before/after running the selects, found 5 new rows with all the selects mentioned in QOD.
select * from sys.syscacheobjects where objtype ='adhoc' and sql...
February 11, 2015 at 12:06 am
Try the below solution
-- HRS VAST
INSERT INTO @T (JAAR, WEEK, HrsVast)
(
SELECTDBO.ISOyear(Begindatum) Jaar, datepart(ISO_WEEK,Begindatum) [Week], sum(DUUR/60.0) HrsVast
FROM DRPDATA D
JOIN HuisAfdeling H
OND.LocatieCode = H.IDHuis
AND D.AfdelingZPT = H.IDAfd
WHERE LocatieCode...
February 5, 2015 at 6:20 am
Thomas Abraham (2/2/2015)
Nice question to highlight the differences in ways that NULLs are handled by different operations. Thanks!
+1
February 5, 2015 at 6:03 am
Though I use the row_number() to remove the duplicates, I got it wrong.. 🙁
Thanks for the question
February 5, 2015 at 5:49 am
Hugo Kornelis (2/1/2015)
Every expression with SOME (and...
February 5, 2015 at 4:26 am
Hugo Kornelis (1/23/2015)
pmadhavapeddi22 (1/23/2015)
The statement could have given the result like (count...
January 23, 2015 at 8:01 am
Bob Cullen-434885 (1/23/2015)
January 23, 2015 at 5:23 am
I have recently used the count of distinct values. So I was confident to answer.
Thanks for the question steve
January 22, 2015 at 6:27 am
I have tried creating tables with all the mentioned datatypes and got the correct answer.
eg.,
create table tab1
(
col_1 numeric(12,2) identity
)
and got the below error for numeric or decimal datatypes with scale...
January 19, 2015 at 3:01 am
Carlo Romagnano (1/19/2015)
edwardwill (1/19/2015)
I would have found this easier if there had actually been a question.That's true!
The question is "select six TRUE answer". It's "implicit".
🙂
Good one.. 🙂
Thank you carlo,for all...
January 19, 2015 at 2:40 am
Hugo Kornelis (1/7/2015)
COUNT, as any other aggregate, ignores NULL values.
COUNT(*) is special. The...
January 8, 2015 at 3:30 am
Raghavendra Mudugal (1/1/2015)
(luckily, this article from the home page http://www.sqlservercentral.com/articles/Power+View/119430/ helped me to understand the PV. New year as began...
January 2, 2015 at 12:23 am
Viewing 15 posts - 46 through 60 (of 210 total)