Forum Replies Created

Viewing 15 posts - 1,081 through 1,095 (of 3,544 total)

  • RE: calculating time from string

    This will give you hours and minutes which you can then format into HH:MM or how you wish.

    WITH cte (HH,MM)

    AS (SELECT

    CAST(LEFT([Data Team],2) as int)+CAST(LEFT([CRM],2) as int)+CAST(LEFT([IM Team],2) as...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Get Max Row Only if no Ties

    Ninja's_RGR'us (5/10/2011)


    I knew I had missed something ovbious...

    Tx for the assist.

    No worries, I had to read the post a few times to spot it myself 🙂

    My only concern is what

    Sorry,...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Get Max Row Only if no Ties

    Ninja's_RGR'us (5/10/2011)


    That gives you the result you want but I'm not sure about the way I'm getting there. Test it on your full dataset to confirm plz.

    But that will...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Correct inner join

    Not quite, you are joining on on one part and filtering with the other

    Try this

    SELECT a.[ID],a.MACId

    FROM dbo.Table_1 a

    WHERE NOT EXISTS (SELECT * FROM dbo.Table_2 b WHERE b.[ID]=a.[ID] AND...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Normalization

    Steven993 (4/28/2011)


    David Burrows (4/28/2011)


    Steven993 (4/27/2011)

    I actually have Date on Database Writings 2000-2006 under my eyes.

    Chapter 8, 30 apges is dedicated to that topic.

    p127

    Definition

    A table is normalized - equivalently, it is...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Normalization

    Steven993 (4/28/2011)


    David Burrows (4/28/2011)


    Steven993 (4/27/2011)


    David Burrows (4/27/2011)


    Your example shows violation of Codd's 1NF and is what I understood to be 1NF.

    My example, you mean AddressLine table ? It's is not...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Normalization

    Steven993 (4/27/2011)

    I actually have Date on Database Writings 2000-2006 under my eyes.

    Chapter 8, 30 apges is dedicated to that topic.

    p127

    Definition

    A table is normalized - equivalently, it is in first normal...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Normalization

    Steven993 (4/27/2011)


    David Burrows (4/27/2011)


    Your example shows violation of Codd's 1NF and is what I understood to be 1NF.

    My example, you mean AddressLine table ? It's is not a 1NF violation..

    No...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Normalization

    Steven993 (4/27/2011)


    David Burrows (4/27/2011)


    If, as you state, the DDL in question does conform to Date's 1NF as in 'There's no top-to-bottom ordering to the rows' can you post example DDL...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Normalization

    David Portas (4/27/2011)


    GSquared (4/27/2011)


    I say the rows in that table are "ordered" because there's a column that specifically determines the order of the rows. Look at the table design,...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Truncated field length in query

    S Hodkinson (4/27/2011)


    The column definition in the table is varchar (128). The query was a simple 'Select * where column name is 'nnnnn''. The results grid show the...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: NEED HELP= Monthly SQL database growth calculation script

    hydbadrose (4/26/2011)


    Ok so for the following script how would you change in whole;

    As I already stated

  • DDL to create the table (including indexes)
  • Sample data to test with (important especially for ExecuteTime,...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: NEED HELP= Monthly SQL database growth calculation script

    hydbadrose (4/26/2011)


    How about this statement? we were deviding by 3 to get the quarterly data.

    and DATEPART(MM, B.[ExecuteTime]) = DATEPART(MM, DATEADD(mm, -3, a.[ExecuteTime]))),0)/3.0 AS Data_Usage_Growth

    That would give you an AVERAGE monthly...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: Are the posted questions getting worse?

    Kiara (4/26/2011)


    Got any to spare?

    It'll rot your gut and make you blind 😛

    Far away is close at hand in the images of elsewhere.
    Anon.

  • RE: NEED HELP= Monthly SQL database growth calculation script

    hydbadrose (4/25/2011)


    I used this script to get the quarterly growth, but I have to modify to get the monthly growth. Can you please help.

    Remove the month selection in the WHERE...

    Far away is close at hand in the images of elsewhere.
    Anon.

  • Viewing 15 posts - 1,081 through 1,095 (of 3,544 total)