Forum Replies Created

Viewing 15 posts - 301 through 315 (of 2,452 total)

  • RE: Online T-SQL Scripts and Copyright

    Eric M Russell (11/30/2016)


    Steve Jones - SSC Editor (11/30/2016)


    Eric M Russell (11/30/2016)


    I totally don't understand why someone would publish sample programming code on the public web and then expect other...

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

  • RE: possible combinations for all rows in table

    urbanromio2 (11/30/2016)


    its about metal melting ,

    there will be metal scraps with different purtiy,

    for example , metal1 weight of 5kg will be 70% purity,

    metal2 weight of 3kg will be...

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

  • RE: Calculation interest by installment ??

    can you please describe (and explain) your expected results for this sample data

    edit...what version of SQL are you using?

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

  • RE: SQL2008R2 FIFO Allocation Recursive CTE

    nghiahc89 (11/29/2016)


    Dear Christ,

    i have found your solution, it's so helpful but in my case i would like to calculate how many days that customer late for installment payment.

    ex :

    ...

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

  • RE: Looking for a smarter script to do this query

    halifaxdal (11/24/2016)


    Y.B. (11/24/2016)


    You can do this using Dynamic SQL with a Crosstab. If you'd be willing to provide consumable data I could give you an example on how to...

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

  • RE: Retrieving looked up values when writing data from ms access to sql server

    doesnt sound too complicated, but with out seeing your code difficult to say.

    are you using an inner join between the tables based on the reference ID?

    if you want a tried...

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

  • RE: Query

    please do as you have been asked on this thread and other you posted.....provide some scripts.

    take a look here and follow the good advice, I am sure it will help...

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

  • RE: RETRIEVE NEXT TIME VALUE FROM NEXT RECORD

    sharonmtowler (11/21/2016)


    I provided sample data located under

    the data looks like this

    row number----- session----- time

    1 ----- 1----- 11/16/16 5:01 AM

    2 ----- 1----- 11/16/16 5:19 AM

    3 ----- 1----- 11/16/16 12:10 PM

    1 -----...

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

  • RE: How to find a time difference between time in different rows?

    DesNorton (11/19/2016)


    You need to join the table back to itself to get the previous record, and then do the math

    SELECT cur.*

    , ISNULL(DATEDIFF(MINUTE, prev.TimeOutRoom, cur.TimeInRoom), 0) AS TurnaroundMinutes

    FROM...

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

  • RE: How to find a time difference between time in different rows?

    ok...thanks for the set up script....great help

    so can you explain what result you wish

    returned for just these rows please....it will clarify your requirement

    create table #Test

    (

    UnvUserID varchar(30),

    OperDate datetime,

    TimeInRoom varchar(10),

    TimeOutRoom varchar(10),

    SeqNum...

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

  • RE: D3.js & MS SQL datasource

    pietlinden (11/18/2016)


    I think I understand what's up with this... D3 apparently consumes JSON data. check out Mike Bostock's site... If you look at the bottom of the...

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

  • RE: Query

    sqlfriends (11/14/2016)


    Yes , that was posted by me.

    But I donot like to use recursive CTE, it is slow.

    And I wonder if there are any other suggestions.

    Thanks

    Here is the...

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

  • RE: find record in 1 table not in another one without any primary key

    maybe...

    SELECT *

    FROM Table_A

    EXCEPT

    SELECT *

    FROM Table_B

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

  • RE: SQL ServerCentral.com Calendar ... Question ... Still Valid?

    would be good if the "who's on" button could filter out all the web bots as well....as it is at the moment, it is useless.

    hopefully new forum software will deliver

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

  • RE: Remove decimal from varchar field

    ScottPletcher (11/3/2016)


    J Livingston SQL (11/3/2016)


    ScottPletcher (11/3/2016)


    I missed that part of your post. Although you did use only 6 zeros, which would leave a digit short if the initial column...

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

Viewing 15 posts - 301 through 315 (of 2,452 total)