Viewing 15 posts - 286 through 300 (of 516 total)
Nice question. Luckily have not fallen into "Quoted Null" trap ๐
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
October 16, 2012 at 11:08 pm
Thanks Steve. I was not aware of this. Got to learn something new today ๐
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
October 15, 2012 at 11:20 pm
L' Eomot Inversรฉ (10/14/2012)
I wonder how many people will fail to notice that although you've got everything ready to create the index you haven't actually done so, so the...
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
October 14, 2012 at 11:02 pm
Ah..Good question to begin with our Monday morning ๐
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
October 14, 2012 at 10:59 pm
demonfox (10/12/2012)
Lokesh Vij (10/11/2012)
All in all...
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
October 12, 2012 at 5:42 am
Thanks Sreenivas for the question. Indeed we discussed the situation of "Divide by zero error" in your earlier QOTD discussion forum "While Loop - 1".
All in all ending this week...
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
October 11, 2012 at 10:10 pm
mark 4643 (10/10/2012)
I'm trying to optimize a monstrous query in a report that a vendor supplied. Part of the query has SELECT TOP(100 PERCENT) which makes no sense to...
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
October 10, 2012 at 10:47 pm
This query would give the best performance from all the queries posted above ๐
SELECT dtStartDate,
(SELECT Max(dtRunDate)
...
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
October 10, 2012 at 10:18 pm
bitbucket-25253 (10/10/2012)
Nice simple question on the basics. Every one should get this right (I hope)
I was hoping this too....Not every one got it correct!
Correct answers: 75% (9)
Incorrect answers: 25%...
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
October 10, 2012 at 10:05 pm
Very simple and easy question ๐
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
October 10, 2012 at 10:04 pm
demonfox (10/9/2012)
well, instead of 10/0.00001 try using 10/0 , guess what the answer could be ๐
Initially I thought this division is the key to answer this question; as "0.00001" is...
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
October 9, 2012 at 11:03 pm
Here is the query:
;WITH tempavg
AS (SELECT id,
weight,
...
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
October 9, 2012 at 10:17 pm
Ah....an easy one. Thanks Sreenivas ๐
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
October 9, 2012 at 9:56 pm
Gazareth (10/9/2012)
Nils Gustav Strรฅbรธ (10/9/2012)
Lokesh Vij (10/9/2012)Here you go:
Won't work. Only one table at the time can have IDENTITY_INSERT OFF
Only one table at the time can have IDENTITY_INSERT ON.
I don't...
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
October 9, 2012 at 3:16 am
Nils Gustav Strรฅbรธ (10/9/2012)
I take my words back. You are correct... Identity_insert will work only for one table at a time ๐
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
October 9, 2012 at 3:14 am
Viewing 15 posts - 286 through 300 (of 516 total)