Forum Replies Created

Viewing 15 posts - 1,441 through 1,455 (of 1,988 total)

  • RE: subtracting a case statement result from a Convert(char(8) result

    That format is pretty straight forward if you have the diff in seconds.

    SELECT CAST( (DATEDIFF(second, '3/14/2016', getdate()) / 60) / 60 AS varchar) + ':' + CAST( (DATEDIFF(second, '3/14/2016',...

  • RE: Today's Random Word!

    whereisSQL? (3/14/2016)


    Ed Wagner (3/14/2016)


    crookj (3/14/2016)


    Ed Wagner (3/14/2016)


    ThomasRushton (3/14/2016)


    Grumpy DBA (3/14/2016)


    Ed Wagner (3/11/2016)


    djj (3/11/2016)


    Bunny

    Easter Egg

    Hunt

    Saboteur

    Fired

    Terminated

    Arnold

    Sylvester

    Tweety

  • RE: Ms Access Countif equivalent in SQL Server

    Without being super familiar with Access you could probably just change the

    Count(IIf([visit_date] Between #2/1/2016# And #2/29/2016#,[registration_cd]))

    To SUM(CASE WHEN visit_date >= '2/1/2016' AND visit_date <= '2/29/2016' THEN 1 ELSE 0...

  • RE: Database Design Follies: NULL vs. NOT NULL

    The problem with place holders like that is that you are using the same field for multiple purposes. TBD for example is not an addess it's a process control...

  • RE: Database Design Follies: NULL vs. NOT NULL

    Converting from a mainframe is always going to be painful 😛

    I was more responding to how to design a freh DB.

  • RE: Database Design Follies: NULL vs. NOT NULL

    kenambrose (3/10/2016)


    that question implies that you would otherwise have ~10000 "nullable" columns in your design?

    which would be nonsense design under any stretch of the imagination, wouldn't it?

    If a solution doesn't...

  • RE: Database Design Follies: NULL vs. NOT NULL

    kenambrose (3/9/2016)


    Correct, and that is NOT a requirement for a schema that disallows nulls. why would you possibly think it was?

    At the end of the day a null represents...

  • RE: Database Design Follies: NULL vs. NOT NULL

    kenambrose (3/9/2016)


    [[The debate might be over nulls, but the pain might actually be missing or unknown business requirements.]]

    One could argue that allowing nulls facilitates poor definition of requirements. Not...

  • RE: Database Design Follies: NULL vs. NOT NULL

    kenambrose (3/2/2016)


    [represent having no value]

    it was in earlier post. put nullable column into it's own table, enforce 1 to 1 relationship to parent table.

    no data for a row in...

  • RE: How to select top 10 records from 2 distinct groups

    If those are the only two customer id's you care about and you don't care about the order.

    SELECT TOP 10 * FROM DO.CUSTOMER_tbl WHERE CUSTOMER_ID IS = 'XYZ-1234'

    UNION ALL

    SELECT...

  • RE: Today's Random Word!

    Ed Wagner (3/1/2016)


    Ray K (3/1/2016)


    DonlSimpson (3/1/2016)


    ThomasRushton (3/1/2016)


    Ed Wagner (3/1/2016)


    Grumpy DBA (3/1/2016)


    Ed Wagner (3/1/2016)


    Campaign

    Champagne

    Toast

    Marmite

    Marmot

    Merlot

    Shiraz

    Shazzam

  • RE: Database Design Follies: NULL vs. NOT NULL

    roger.plowman (3/1/2016)


    patrickmcginnis59 10839 (2/29/2016)


    roger.plowman (2/29/2016)


    I still don't see why relational tables can't have records for TBD, N/A, and UNK.

    If you need to know why a value is missing, you're going...

  • RE: Database Design Follies: NULL vs. NOT NULL

    roger.plowman (2/29/2016)


    ZZartin (2/29/2016)


    roger.plowman (2/29/2016)


    I still don't see why relational tables can't have records for TBD, N/A, and UNK.

    This A) gets rid of nulls, which are just messy to code for...

  • RE: Database Design Follies: NULL vs. NOT NULL

    roger.plowman (2/29/2016)


    I still don't see why relational tables can't have records for TBD, N/A, and UNK.

    This A) gets rid of nulls, which are just messy to code for and B)...

  • RE: IDEs sweet but beguiling

    I love my IDE's they're just like any other tool used properly they can be very useful. That said they're not meant to turn anyone into a developer automatically...

Viewing 15 posts - 1,441 through 1,455 (of 1,988 total)