Forum Replies Created

Viewing 15 posts - 1,801 through 1,815 (of 14,953 total)

  • RE: Aggregated Filter

    mayabee (3/27/2012)


    Thank you so much for the reply.

    Not studies but impossible restrictions at my work place.

    I've used HAVING and sub query.

    Excellent. Sometimes you have to break the rules.

    But if...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Are the posted questions getting worse?

    Gianluca Sartori (3/27/2012)


    GSquared (3/27/2012)


    L' Eomot Inversé (3/27/2012)


    Stefan Krzywicki (3/27/2012)


    GSquared (3/27/2012)


    [It's a lot of posts, but I've never understood any fascination with "milestone" posts. Number in Hex, Oct, or Bin,...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Aggregated Filter

    Did your professor say you had to do it in one step? If not, declare a variable, calculate the average and assign that to the variable, then query the...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Are the posted questions getting worse?

    L' Eomot Inversé (3/27/2012)


    Stefan Krzywicki (3/27/2012)


    GSquared (3/27/2012)


    [It's a lot of posts, but I've never understood any fascination with "milestone" posts. Number in Hex, Oct, or Bin, and you get...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: A Developer's scalar UDF is takeing this query from 3 seconds to over 5 minutes to run

    By the way, the reason I call it Numbers instead of Tally is the definitions of the words:

    Tally:

    NOUN

    tal·lies plural

    1. record of items: a record or account of...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: A Developer's scalar UDF is takeing this query from 3 seconds to over 5 minutes to run

    MyDoggieJessie (3/27/2012)


    So just a table with 1 col, values 1 - n?

    Yep.

    I usually start mine at 0 though, because there are uses for that. Easy enough to subtract 1...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: A Developer's scalar UDF is takeing this query from 3 seconds to over 5 minutes to run

    MyDoggieJessie (3/27/2012)


    Thanks for the hints, I never bothered attempting CTE's for this...definitely something to try - In your example though, where is dbo.Numbers coming from?

    A table of Numbers. Like...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: How does ORDER BY work?

    You're welcome.

    It's one of those seriously non-intuitive things that can bite anyone, rookie or no.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: A Developer's scalar UDF is takeing this query from 3 seconds to over 5 minutes to run

    Here's what I was able to come up with as a sample solution. I imported your CSV file into a table called SampleData, and queried it this way:

    ;

    WITH ...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Are the posted questions getting worse?

    GilaMonster (3/27/2012)


    Jeff Moden (3/27/2012)


    GilaMonster (3/27/2012)


    Is it just me, or does a term like 'That can be done, but people usually learn better' rankle when applied to something you've said?

    Feels...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Universal ID Project

    Ah, just assign everyone a GUID and make them memorize it. Nobody could possibly be masochistic enough to try to memorize someone else's GUID.

    More seriously, GUIDs would be a...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Are the posted questions getting worse?

    Stefan Krzywicki (3/27/2012)


    GSquared (3/27/2012)


    WayneS (3/27/2012)


    Is anyone else noticing that The Thread is almost at 35,000 posts? Looks like today could very well be the day. (Expecting Alvin to jump in...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Are the posted questions getting worse?

    Stefan Krzywicki (3/27/2012)


    It is amazing how, no matter how often I state "I am not interested in travel or relocation", when I mention that on my resume and list it...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Are the posted questions getting worse?

    WayneS (3/27/2012)


    Is anyone else noticing that The Thread is almost at 35,000 posts? Looks like today could very well be the day. (Expecting Alvin to jump in and get that...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: How does ORDER BY work?

    Can't give you a BOL reference on it, because Microsoft doesn't actually define the sort orders for the Unicode character set. That's done by a standards body. So,...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

Viewing 15 posts - 1,801 through 1,815 (of 14,953 total)