Forum Replies Created

Viewing 15 posts - 6,301 through 6,315 (of 18,926 total)

  • RE: Fill Factor "best" setting for GUID

    SwayneBell (5/10/2011)


    Hi Ninja;

    By now, I'm sure that you've looked it up in BOL, but it's worth mentioning for others who read this thread; a constraint if you're implementing this function...

  • RE: Divide by Zero

    Awesome, thanks for posting the final answer. Will surely help someone someday.

  • RE: Divide by Zero

    An easy solution could be to do it in 2 steps (easier on the eyes too).

    Get all the sums > derived table

    ROW_NUMBER () OVER(col1 / case when col2 <> then...

  • RE: Difference between count(*) and select *

    Dave Morrison (5/9/2011)


    my head hurts 🙂 I was agreeing with you and was meant to be commenting on Jesse's post.

    There's a session bug on thsoe buttons. Long story short...

  • RE: Difference between count(*) and select *

    MyDoggieJessie (5/9/2011)


    Hey I'm here to learn as well and am by no means an expert 🙂 Just trying to reiterate something that I was taught (apparently mis-taught) without ever...

  • RE: Difference between count(*) and select *

    Dave Morrison (5/9/2011)


    Yeah sorry quoted the wrong post, my bad 🙂

    How could you have quoted the wrong post when you quoted no post?... sounds like a null debate to me...

  • RE: Complicated join...

    mikeincape (5/9/2011)


    Ninja's_RGR'us (5/9/2011)


    No, your whole left join goes into a subquery for the column only.

    You need to correlate the base query with the column's subquery so that you only get...

  • RE: Difference between count(*) and select *

    Dave Morrison (5/9/2011)


    Take a gander at the post, its a count(). What you've said is obviously correct but wasnt the question that was asked 🙂

    Who are you talking to? ...

  • RE: Complicated join...

    Lowell (5/9/2011)


    Ninja's_RGR'us (5/9/2011)


    I'll let you figure this on out... or correct lowell's typos :w00t:. Yes uncalled-ish for ;-).

    😀 only uncalled for when it's not true!

    anyway, fix the syntax issues...

  • RE: Complicated join...

    No, your whole left join goes into a subquery for the column only.

    You need to correlate the base query with the column's subquery so that you only get 1 client,...

  • RE: Difference between count(*) and select *

    stormsentinelcammy (5/9/2011)


    Yes Jessie, selecting one column will always be faster than selecting the entire table.

    select * from Mytable vs select [hello] from Mytable will return back results quicker. 🙂

    I'm...

  • RE: Complicated join...

    mikeincape (5/9/2011)


    Bear with me... I know I'm a newbie... But would I just assemble the needed sql statement to assemble my string then join it in on the bottom with...

  • RE: Difference between count(*) and select *

    GilaMonster (5/9/2011)


    MyDoggieJessie (5/9/2011)


    Shouldn't SELECT COUNT(1) be the preffered method here over (*)? In larger tables I've noticed drastic performance improvements by choosing only 1 column...

    No. The * in count(*)...

  • RE: Complicated join...

    I'll let you figure this on out... or correct lowell's typos :w00t:. Yes uncalled-ish for ;-).

    SELECT

    T.name,

    STUFF((

    ...

  • RE: Complicated join...

    mikeincape (5/9/2011)


    Ahhh Ha!

    Ok.... Runs fine on my server. Must be from using the express version on my local pc...

    Microsoft SQL Server Management Studio9.00.4035.00

    Microsoft Analysis Services Client Tools2005.090.4035.00

    Microsoft Data Access Components...

Viewing 15 posts - 6,301 through 6,315 (of 18,926 total)