Forum Replies Created

Viewing 15 posts - 556 through 570 (of 2,452 total)

  • RE: is there any other fast way splist commaseprate values

    http://www.sqlservercentral.com/articles/Tally+Table/72993/

    try the DelimittedSplit8K function (code is at end of article)

    edit typo

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Finding a substring and extracting a number associated with it

    The Dixie Flatline (7/1/2016)


    WARNING WARNING WARNING: You MUST get your inputs standardized. You are at risk until then.

    That said. This was a fun...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Decreasing a value across multiple rows until 0

    The Dixie Flatline (7/1/2016)


    Hey JL: You have two groups of IDs. What result are you expecting?

    I dont know <grin>...just posted some sample data based on OP...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Decreasing a value across multiple rows until 0

    The Dixie Flatline (7/1/2016)


    This is a variation on the running totals problem.

    The logic is that 100 is subtracted from the first value, 50 is subtracted from the second value, and...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Decreasing a value across multiple rows until 0

    greg.senne (7/1/2016)


    If I have several records in a table such as this:

    100

    50

    50

    20

    And I want to subtract 175, I want a result like this:

    0

    0

    25

    20

    How would I go about doing this?

    Thanks

    Greg

    care to...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Finding a substring and extracting a number associated with it

    can you ALWAYS guarantee the number will come immediately before either "admissions" or "discharges"

    what happens if someone types this "Since reporting 22/04/2016, the admissions are 5 and the discharges are...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Finding a substring and extracting a number associated with it

    How can i always pull out the correct number for Admissions and the correct number for Discharges please?

    can you please give example of how you want the end result to...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Finding a substring and extracting a number associated with it

    quentin.harris (7/1/2016)


    Hi,

    I have a text string that appears in files as below:

    'There were 6 discharges and 3 admission since reporting 21/04/2016'

    However sometimes, admissions are swapped around with discharges in the...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Are the posted questions getting worse?

    As it happens I work on Salford Quays and it's frankly, shit. Although how much of that is down to our leaky draughty office I don't know.

    Well I just I...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Are the posted questions getting worse?

    oops...wrong post !

    apologies

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Need algorithm for Complex looping logic

    if i know how to code it in while loop i can easily add extra business rules in it.

    what business rules do you foresee that will necessitate a while...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: UNION with CASE statement

    The following image is the result page I need to produce.

    https://This image host is not supported, please use another/image/k6idu0jwn/

    sorry...cant see your expected results

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: add minutes in datetime column

    abhas (6/30/2016)


    Hi Friends. Need help for adding minutes in datetime colum.

    Example, I am having column StarTime with datatype Datetime. For example below.

    StartTime ...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: UNION with CASE statement

    Newbi (6/30/2016)


    Thank you.

    I am aware that I should be providing the data in correct way, if I want to be helped.

    I am trying using the links inside the page....

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Are the posted questions getting worse?

    Beatrix Kiddo (6/30/2016)


    The UK government directs funding disproportionately to the south east, and the rest of the union can go hang as far as the bureaucrats in Whitehall are concerned.

    The...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

Viewing 15 posts - 556 through 570 (of 2,452 total)