|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 2:10 PM
Points: 2,117,
Visits: 2,211
|
|
ezlikesundaymorning (5/14/2008) OK, just plain and simple, I am going to give my 2 cents worth here. This question is pure BS. I mean has anyone here ever seen a query written like this? In my house(place of business) the person who tried to get this through me, would be ridiculed beyond belief. I mean really, did I get the question wrong, yep. Did I also think that the question was misleading, yep. Do I know a developer that would try to get this past me, nope. Lets get some real questions in here. First off I do not even let anyone write in ANSI 89 SQL. Plain and simple it is my way or the highway.
I can sympathize with your frustration, but there have been several good questions in a row, and I agree that this one was not as good. But there has been an effort to post better questions.
webrunner
------------------- "The chemistry must be respected." - Walter White
"A SQL query walks into a bar and sees two tables. He walks up to them and says 'Can I join you?'" Ref.: http://tkyte.blogspot.com/2009/02/sql-joke.html
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Friday, May 16, 2008 1:20 PM
Points: 102,
Visits: 25
|
|
Excellent. I guess that I can just sit here and bitch or start contributing myself when it all boils down to it. Thanks for the reply. I am just not interested in seeing things like this make it into the questions, in the last several weeks, there have been quite a few really good questions and some that stretched me out a little because I had not become familiar with that new functionality yet.
DEX :D The more you help the business, the more they will help you...well sometimes anyway.
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 2:10 PM
Points: 2,117,
Visits: 2,211
|
|
ezlikesundaymorning (5/14/2008) Excellent. I guess that I can just sit here and bitch or start contributing myself when it all boils down to it. Thanks for the reply. I am just not interested in seeing things like this make it into the questions, in the last several weeks, there have been quite a few really good questions and some that stretched me out a little because I had not become familiar with that new functionality yet.
That's probably a good idea - you'd write better questions than I would, that's for sure.
I think the questions of the day tend to have trouble when they try to be too tricky, or rely only on one obscure trick instead of teaching you something about SQL or about how you think about problems. Today's question was a little like that, in my opinion, although some others thought it was fine.
Cheers, webrunner
------------------- "The chemistry must be respected." - Walter White
"A SQL query walks into a bar and sees two tables. He walks up to them and says 'Can I join you?'" Ref.: http://tkyte.blogspot.com/2009/02/sql-joke.html
|
|
|
|
|
SSChampion
        
Group: General Forum Members
Last Login: Friday, May 17, 2013 12:22 PM
Points: 10,571,
Visits: 11,871
|
|
ezlikesundaymorning (5/14/2008) OK, just plain and simple, I am going to give my 2 cents worth here. This question is pure BS. I mean has anyone here ever seen a query written like this? In my house(place of business) the person who tried to get this through me, would be ridiculed beyond belief. I mean really, did I get the question wrong, yep. Did I also think that the question was misleading, yep. Do I know a developer that would try to get this past me, nope. Lets get some real questions in here. First off I do not even let anyone write in ANSI 89 SQL. Plain and simple it is my way or the highway.
Scott,
This is one of the points about the QOD, to show that while something may compile and run, it is not the best way to do it or do what was expected. Glad to know you have standards, but unfortunately not everyone has the same standards so someone may encounter this scenario in real life and may now know how to remedy it.
Jack Corbett
Applications Developer Don't let the good be the enemy of the best. -- Paul Fleming
Check out these links on how to get faster and more accurate answers: Forum Etiquette: How to post data/code on a forum to get the best help Need an Answer? Actually, No ... You Need a Question How to Post Performance Problems Crosstabs and Pivots or How to turn rows into columns Part 1 Crosstabs and Pivots or How to turn rows into columns Part 2
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Monday, May 20, 2013 4:06 PM
Points: 1,409,
Visits: 2,027
|
|
I thought it was a good question, even if I did get it wrong :)
Jason Shadonix MCTS, SQL 2005
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Friday, May 16, 2008 1:20 PM
Points: 102,
Visits: 25
|
|
I agree. Tricks are not something that I value highly, good sound principles are something that I would enjoy more.
DEX :D The more you help the business, the more they will help you...well sometimes anyway.
|
|
|
|
|
SSChampion
        
Group: General Forum Members
Last Login: Friday, May 17, 2013 12:22 PM
Points: 10,571,
Visits: 11,871
|
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Thursday, June 26, 2008 7:27 AM
Points: 239,
Visits: 165
|
|
I think the question is good and the possible answers were fine. To me, the first 2 possible answers showed what the author was trying to get across. I agree that the query is bad and as GSquared said it shows that just because a query runs doesn't make it correct nor does it make it good.
Q
Please take a number. Now serving emergency 1,203,894
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Wednesday, October 31, 2012 3:59 AM
Points: 215,
Visits: 166
|
|
| I agree with Jack's last comment, it's excellent to have structure in place in terms of standards, and as I mentioned in the beginning of this discussion, this is a interesting way of possibly, in some weird requirement, to have a solution.
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Friday, May 16, 2008 1:20 PM
Points: 102,
Visits: 25
|
|
Jack, You are right in stating that it would be something that people could run into, but then again you would have all of the pieces there to deal with it better. Fortunately, I only get to deal with 30 page stored procedures all written in dynamic SQL... Do they suck, oh yeah, but it is our responsibility to teach those that do not know what type of things are acceptable and what are not. This could have been some old legacy code that was left over from the stone age, at which case it is something to deal with and troubleshoot, but then again not all of the pieces were there. I could have guessed....then again we all know what assumptions are like. Thanks for the response. The question should have had more details to keep the user from making assumptions. I guess also that I should not be defending my bitching anymore, the question was poorly put together, certainly a possible real world scenario, those that benefit should enjoy.
Dex
DEX :D The more you help the business, the more they will help you...well sometimes anyway.
|
|
|
|