Forum Replies Created

Viewing 15 posts - 1,276 through 1,290 (of 2,452 total)

  • RE: calculate time in minutes

    glad to hear you have solved the problem,,,care to share so that others may learn?

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

  • RE: calculate time in minutes

    for clarification...based on your sample data provided....can you please post your expected results.

    thanks

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

  • RE: Daily CSV import to SQL - How ?

    G-Force (9/16/2014)


    Hi Jeff

    Still trying to find the dummies guide 🙂 . Is there anywhere you can point me to on how to do it in TSQL ?

    Any help gratefully received.

    Thanks

    G

    hi...these...

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

  • RE: Select second row of a table

    whats the relationship between "Trade" table and "Platoon" table?

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

  • RE: sql formatting tool

    http://www.apexsql.com/sql_tools_refactor.aspx

    see above link...its free, but requires you to set up your preferences....can be a bit awkward for fine tuning

    I prefer Red Gate...but as freelance cant justify the cost

    maybe be helpful....and...

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

  • RE: Get the rows based on the current quarter

    Smash125 (9/3/2014)


    guys I searched in Teradata forums I did not get any concrete answers. Any sql pundits can tell me how it can be done

    as I am sure...

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

  • RE: Get the rows based on the current quarter

    maybe something along these lines will get you started

    SELECT

    ACCT_ID

    , ORD_DT

    FROM yourtable

    WHERE (DATEPART(q , ORD_DT) = DATEPART(q , GETDATE()))

    ...

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

  • RE: populate missing dates and add 1 to column

    phingers (9/2/2014)


    Yes, the data will be used to calculate storage charges for pallets based on the number of days the pallets have been in stock. I have a stored...

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

  • RE: populate missing dates and add 1 to column

    phingers (9/2/2014)


    Thanks for all your help guys, I marked Adi Cohn's as the solution because that's what I used in the end, but the other solution does also achieve the...

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

  • RE: Cumulative Amount

    take a look at the windowing functions in 2012

    something along these line may help you get started

    SELECT

    Month

    , Year

    , TotalRevenue

    , Company

    , Descr

    , SUM(totalrevenue) OVER (PARTITION BY company ORDER BY...

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

  • RE: find out the next top 10 that does not belong to the first top 10

    -- similar solution but with page numbers...may give you some ideas

    -- test data

    SELECT TOP 1000000

    CodeID = 1 + CAST(Rand(Checksum(Newid())) * 100 AS INT)

    INTO ...

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

  • RE: Query Assistance - pulling latest info data from table..

    Hi..how do you propose to determine the latest data for CaseID 542345...you show two rows with same opening date?

    your spreadsheet displays an order that cannot be determined without another level...

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

  • RE: Query Help

    JackTimber (8/28/2014)


    Naa re, its a different asignment. I am working by keeping ChrisM solution as a base from previous example, and lets see.

    If i come up with a solution would...

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

  • RE: Query Help

    JackTimber (8/28/2014)


    Actaully i was not able to come up with a solution for that problem, so the assignment was given to other guy. I had shown him this thread....

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

  • RE: Query Help

    JackTimber (8/28/2014)


    I tried figuring out that , but 🙁

    reading the previous thread...it seems that you have 20 million rows....

    what solution did you finally decide upon...pls post that here ....and...

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

Viewing 15 posts - 1,276 through 1,290 (of 2,452 total)