Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)

  • RE: Odd Questions

    Oddest opener - "Let's start at the beginning - where were you born?"

    - how does that affect things?

    - and presumably illegal on racial descrimination grounds

  • RE: Common table expressions and circular references

    gerg-520419 (1/31/2011)


    code ...

    will select just cycles. Needn't to calculate 'correct' max level beforehand.

    eb3e->b->c->d->b

    ab3a->b->c->d->b

    This is another alternative that will show the required hierarchy and highlight where circular references begin -

    WITH GroupMembers...

  • RE: Predict the total count

    DhruvShah (11/7/2010)


    yes Different region will have different answers but when no regions mentioned we normally take US as a default region specially when we talk about dates.

    No WE certainly don't...

  • RE: Row_number() over (partition by ....order by)

    Chris Morris-439714 (11/5/2010)


    I reckon this will set the whole EMAIL_No column to 1

    I agree that with the data you have specified the EMAIL_NO column will always be 1 because there...

  • RE: Row_number() over (partition by ....order by)

    To get you started - the row_number() function will return a sequence of numbers starting at 1 effectively allocating a number to each EMAIL_ID in EMAIL_ID order. The sequence restarts...

  • RE: 100 Years Ago, What Would You Be?

    I haven't seen anyone suggest 'walking the streets hoping for work because of the recession' - there was a good prgram on BBC recently on work in York 100 years...

  • RE: Compute By used with substring

    I used a subquery as a way round the problem (as follows) but is there a better solution?

    Selecttables, count(*) 'count'

    from(selectsubstring (so1.name, 1, 50)'tables'

    fromsysobjectsso1

    Whereso1.name like 'mf%'

    Group By so1.name)tbl

    group...

  • RE: lowercase keywords and usability

    i suspect that research on layout of code for productivity gains is hard to do because of the number of 'variables'.

    e.g. (1) the likely reasons for reading...

  • RE: DATALENGTH

    Slight quibble with Oleg's reply.

    "When omitting the size of either char or varchar, the default size is 30 for both" implies that the default size for varchar or char in...

Viewing 9 posts - 1 through 9 (of 9 total)