Forum Replies Created

Viewing 15 posts - 4,471 through 4,485 (of 15,381 total)

  • RE: Splitting a single column into multiple rows

    While I agree that the DelimitedSplit8K function is likely to be of help here I want to point out that the datatype containing the csv data is varchar(max) which does...

  • RE: Grouping Dates in a Table by 4 weeks at a time

    Tallboy (6/13/2014)


    I think it should be something like

    SELECT PersNo, 4WeekEnd, TotalWorkedHours, TotalContractHours

    From

    WITH TblWorkedHours @WeekEnd

    (Select

    PersNo,

    Max(WeekEnding) As 4 WeekEnd,

    Sum(WorkedHours) As...

  • RE: Validation of a Parent - Child relationship

    julian.fletcher (6/13/2014)


    Sorry, I should have said. Yes, each is a header - detail type of arrangement. In my example of "parent = an organisation, child = a contract held with...

  • RE: Grouping Dates in a Table by 4 weeks at a time

    Again...using the sample data from pietlinden what is the expected output? Not a written explanation but the actual values as you want to see them.

  • RE: Are the posted questions getting worse?

    jasona.work (6/13/2014)


    Ed Wagner (6/13/2014)


    Jack Corbett (6/13/2014)


    GilaMonster (6/13/2014)


    Thought process of last 10 minutes.

    - Tune a proc quick, then go home

    - Wait, it's got user defined functions

    -...

  • RE: Are the posted questions getting worse?

    Ed Wagner (6/13/2014)


    Jack Corbett (6/13/2014)


    GilaMonster (6/13/2014)


    Thought process of last 10 minutes.

    - Tune a proc quick, then go home

    - Wait, it's got user defined functions

    - Wait,...

  • RE: Export in txt from sql (in a pivot way)

    To add to Luis' comment about ordering. You would need some sort of column like an identity but when you select the data you need to add an ORDER BY...

  • RE: Grouping Dates in a Table by 4 weeks at a time

    pietlinden (6/13/2014)


    I figured that since he was new, I would be nice and show him how to set up the problem so that people could help...

    And much appreciated by anybody...

  • RE: Today's Random Word!

    Ed Wagner (6/13/2014)


    sing4you (6/13/2014)


    Sean Lange (6/13/2014)


    Ed Wagner (6/13/2014)


    BWFC (6/13/2014)


    crookj (6/13/2014)


    Ed Wagner (6/13/2014)


    Stuart Davies (6/13/2014)


    BWFC (6/13/2014)


    Wild Turkey

    Wild Horses

    Equestrian

    (my little) Pony. Got a young granddaughter visiting........

    Express

    Espresso 😀

    breakfast

    Bagels

    Eggs

    Bacon!!

  • RE: Grouping Dates in a Table by 4 weeks at a time

    Let's use the excellent sample data and ddl that pietlinden posted. That is how you should post stuff in the future.

    What should be the output from the sample data? The...

  • RE: Just curious, what are your SQL pet peeves ?

    Koen Verbeeck (6/13/2014)


    Sean Lange (6/12/2014)


    below86 (6/12/2014)


    Sean Lange (6/12/2014)


    below86 (6/12/2014)


    I'm just looking at our 'new' datawarehouse design, a former DBA helped start. All the table names start with 'tbl'. :w00t:...

  • RE: Today's Random Word!

    Ed Wagner (6/13/2014)


    BWFC (6/13/2014)


    crookj (6/13/2014)


    Ed Wagner (6/13/2014)


    Stuart Davies (6/13/2014)


    BWFC (6/13/2014)


    Wild Turkey

    Wild Horses

    Equestrian

    (my little) Pony. Got a young granddaughter visiting........

    Express

    Espresso 😀

    breakfast

  • RE: Grouping Dates in a Table by 4 weeks at a time

    Tallboy (6/12/2014)


    Hi,

    This is a problem I have been working on for some time, but Im still unsure how to proceed.

    I have a simple table with the following columns

    Tabel Name -...

  • RE: Counting the characters in a string before a space

    cbrammer1219 (6/12/2014)


    Ok, that ran, but it is terribly slow, The function from Jeff returned the data fast, although within characters it put the counts in one row, and would like...

  • RE: Counting the characters in a string before a space

    cbrammer1219 (6/12/2014)


    Ok, that ran, but it is terribly slow, The function from Jeff returned the data fast, although within characters it put the counts in one row, and would like...

Viewing 15 posts - 4,471 through 4,485 (of 15,381 total)