Forum Replies Created

Viewing 15 posts - 2,686 through 2,700 (of 4,085 total)

  • RE: Simple SQL challenge - who can solve

    Eric M Russell (5/11/2016)


    TheSQLGuru (5/11/2016)


    Eric M Russell (5/11/2016)


    drew.allen (5/11/2016)


    Eric M Russell (5/11/2016)


    For what it's worth, this one can be paramaterized in terms of the number of dates returned, and it...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: HTC gives you by downloading and deleting apps

    Reported as spam.

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: CALCULO DE PORCENTAGEM COM CONDIÇÕES

    Most of the people here don't speak Portuguese. You might have better luck if you posted your question in English.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: I have many columns with values and then i have 1 giant table that converts those values to text

    It would help if you provided sample data and expected output.

    My first question, is whether you really need to reference a table for your various DoNotX attributes. Do they...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: passing a date value is not updating the table

    anjaliagarwal5 (5/11/2016)


    My update statement is working if I am passing NULL instead of empty strings.

    An empty string is not the same as a NULL string. An empty string is...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Simple SQL challenge - who can solve

    Eric M Russell (5/11/2016)


    For what it's worth, this one can be paramaterized in terms of the number of dates returned, and it doesn't require a pre-existing tally table, which might...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Trigger on Table

    Use the Inserted pseudo table rather than the Payment table. Use the inserted and deleted tables

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: single xml to multiple rows

    squvi.87 (5/9/2016)


    can anybody suggest me some links to learn processing the xml in sql ?

    SQL XML

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Date DImension Query

    o103452 (5/10/2016)


    drew.allen (5/9/2016)


    The 445 and 454 fiscal years only have 364 days. You have only given data for one fiscal year, so it's not clear how you are handling...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Want to generate report

    Andrew P (5/9/2016)


    Have you tried CAST(STUDENT_CRS_HIST.JOB_TIME AS DATE)?

    The below query would give you a list of distinct dates.

    SELECT DISTINCT CAST(STUDENT_CRS_HIST.JOB_TIME AS DATE) AS JOB_DATE

    FROM STUDENT_CRS_HIST

    For an alternative, check out...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Date DImension Query

    The 445 and 454 fiscal years only have 364 days. You have only given data for one fiscal year, so it's not clear how you are handling that extra...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Find Duplicate Records in Table and Update one of them.

    Lowell (5/9/2016)


    prafuljemail (5/9/2016)


    update t

    set t.id1=999

    from t b join

    (

    select id1,max(id) as id from t

    group by id1 ) a on a.id=b.id

    select * from t

    The group by is fine if you...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: XML Data

    This is not valid xml, because there is no single root element. In fact, you have text that is not contained in an element at all.

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: single xml to multiple rows

    You should be able to figure this out from the answers that you received to your post on XML to SQL tables

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • RE: Show Status by Month End

    pietlinden (5/8/2016)


    This is Lynn Pettis' calculation[/url] for first day of the next month...

    select dateadd(mm, datediff(mm, 0, @ThisDate) + 1, 0) -- Beginning of next month

    last day of the month is...

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

Viewing 15 posts - 2,686 through 2,700 (of 4,085 total)