Forum Replies Created

Viewing 15 posts - 331 through 345 (of 2,452 total)

  • RE: lookup value for each row

    could also use a CTE

    DECLARE @d SMALLDATETIME= '2016-10-04';

    WITH x AS

    (

    SELECT MAX(id) AS id

    FROM exchangerates

    WHERE(ddate < @d)

    ...

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

  • RE: lookup value for each row

    maybe ??

    DECLARE @d SMALLDATETIME= '2016-10-04';

    SELECT c.ISO,

    e.rate

    FROM exchangerates AS e

    INNER JOIN currencies AS c ON e.currency = c.id

    ...

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

  • RE: ETL REWRITE

    karthiknfr_1991 (10/14/2016)


    We have server running access etl. It generally gets the data using LANSA queries and access and SQL queries.

    bit difficult to say much without more specific details...can you...

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

  • RE: t-sql 2012 update primary key value into column of the second table

    wendy elizabeth (10/11/2016)


    This not the third time I asked a question. In this question, I found out what the issue is and I want to find a resolution.

    J Livingston SQL...

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

  • RE: t-sql 2012 update primary key value into column of the second table

    is this the third time of asking the same q?........apologies if I am wrong

    http://www.sqlservercentral.com/Forums/FindPost1824675.aspx

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

  • RE: Recursive loop

    kalyav21 (10/11/2016)


    ProductIDGlobalIDTypeCode

    001 100 Out D

    001 ...

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

  • RE: Solving FIFO Queues Using Windowed Functions

    I did some performance testing on the two pieces of code. They don't produce the same results, and I haven't worked through where the issues are, so these results may...

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

  • RE: "Add" Hyphen Data Modification

    it would help if you could provide details of all the permutations for your column 'value' and 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: Calculate time difference between two related visitors without using cursor

    valeryk2000 (9/30/2016)


    I run both codes on my original dataset. Sergiy's returned 130 records, J's - 79. The reason - Sergiy's counted all cases with counts 2 and more,...

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

  • RE: Calculate time difference between two related visitors without using cursor

    Sergiy (9/29/2016)


    valeryk2000 (9/29/2016)


    Testing update:

    J Livingston's code runs OK - same results as in Sergiy's.

    Thanks a lot!

    Actually, our codes return quite different results.

    Probably not on the set you're looking at, but...

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

  • RE: Calculate time difference between two related visitors without using cursor

    valeryk2000 (9/29/2016)


    Testing update:

    J Livingston's code runs OK - same results as in Sergiy's.

    Thanks a lot!

    on what size table did you run this?

    have you got any time/io results.....?

    ________________________________________________________________
    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?

    drew.allen (9/27/2016)


    Okay, is it just me? I've seen two different people post sample data where the datetime data is given in hex and converted to datetime. It's not...

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

  • RE: Calculate time difference between two related visitors without using cursor

    valeryk2000 (9/27/2016)


    I do not know what would be the better way to present a simple table with 7K+ records (Excel file). The table has 2 columns, ID and Arrival DateTime....

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

  • RE: Select continual date ranges from a list that overlaps

    will you ever have the case where there are "gaps" in your date ranges?

    ie...there are dates where you have no price

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

  • RE: Help with matching contacts to organisations

    'North Middlesex University Hospital' is not an exact match for 'North Middlesex University Hospital NHS Trust'

    does this make sense?

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

Viewing 15 posts - 331 through 345 (of 2,452 total)