Recent PostsRecent Posts Popular TopicsPopular Topics
 Home Search Members Calendar Who's On

 Display two fields of two UNRELATED tables WITHOUT crossjoin Rate Topic Display Mode Topic Options
Author
 Message
 Posted Tuesday, February 05, 2013 8:48 PM
 Hall of Fame Group: General Forum Members Last Login: Yesterday @ 5:42 PM Points: 3,596, Visits: 5,112
 Lynn Pettis (2/5/2013)Biggest unanswered question asked so far is why is this needed? Maybe I missed it but I haven't seen a real viable answer.masoudk1990 (2/5/2013)Im trying to write this query for my personal fun and training. My mantra: No loops! No CURSORs! No RBAR! Hoo-uh!My thought question: Have you ever been told that your query runs too fast?My advice:INDEXing a poor-performing query is like putting sugar on cat food. Yeah, it probably tastes better but are you sure you want to eat it?The path of least resistance can be a slippery slope. Take care that fixing your fixes of fixes doesn't snowball and end up costing you more than fixing the root cause would have in the first place.Need to UNPIVOT? Why not CROSS APPLY VALUES instead?Since random numbers are too important to be left to chance, let's generate some!Learn to understand recursive CTEs by example.Splitting strings based on patterns can be fast!
Post #1416214
 Posted Tuesday, February 05, 2013 8:56 PM
 SSC-Insane Group: General Forum Members Last Login: Yesterday @ 10:44 PM Points: 22,525, Visits: 30,290
 dwain.c (2/5/2013)Lynn Pettis (2/5/2013)Biggest unanswered question asked so far is why is this needed? Maybe I missed it but I haven't seen a real viable answer.masoudk1990 (2/5/2013)Im trying to write this query for my personal fun and training.Like I said...
Post #1416216
 Posted Tuesday, February 05, 2013 9:25 PM
 Valued Member Group: General Forum Members Last Login: Thursday, March 28, 2013 5:32 AM Points: 50, Visits: 75
 Hi Craig, Thank you for the explanation. I understood (The dt* are alias name for the derived queries and the q* and n are the alias name for the columns) how it works now. Thank You!!!
Post #1416225
 Posted Tuesday, February 19, 2013 2:46 PM
 SSCertifiable Group: General Forum Members Last Login: 2 days ago @ 3:41 PM Points: 5,986, Visits: 6,932
 dgowrij (2/5/2013)Hi Craig, Thank you for the explanation. I understood (The dt* are alias name for the derived queries and the q* and n are the alias name for the columns) how it works now. Thank You!!!My pleasure. Been a very busy two weeks here with a massive rollout so I'd lost track of some things and am digging through my post history. I'm glad that was able to help. - Craig FarrellNever stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake. For better assistance in answering your questions | Forum NetiquetteFor index/tuning help, follow these directions. |Tally TablesTwitter: @AnyWayDBA
Post #1421862

 Permissions