Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase «««123

Missing Century in Date Expand / Collapse
Author
Message
Posted Friday, August 8, 2014 2:31 PM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 5:06 AM
Points: 2,002, Visits: 5,464
kherald69 (8/8/2014)
Ok, I just have to toss a wrench into the logic here.

Since we are talking about birthdays, what if the person is over 100 years old? This logic will fail.

It will fail in the same manner as any other attempt to measure beyond the scale implied. This has to be adjusted in the way that majority of the set is covered.
Post #1601330
Posted Friday, August 8, 2014 2:34 PM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 5:06 AM
Points: 2,002, Visits: 5,464
Edit: Duplicate
Post #1601331
Posted Friday, August 8, 2014 3:15 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 12:03 AM
Points: 20,703, Visits: 32,344
SQLSeTTeR (8/8/2014)
DOB


It is was obvious that one of the data elements is DOB but that didn't answer the question.



Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Post #1601340
Posted Saturday, August 9, 2014 4:46 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Friday, September 19, 2014 10:38 AM
Points: 219, Visits: 1,157
My apologies.

It's a DOB field being stored as a string. No application is pointing to this data.

Any help is much appreciated.
Post #1601381
Posted Saturday, August 9, 2014 5:33 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 12:03 AM
Points: 20,703, Visits: 32,344
SQLSeTTeR (8/9/2014)
My apologies.

It's a DOB field being stored as a string. No application is pointing to this data.

Any help is much appreciated.


First, do not store dates as strings. Use the appropriate data type, and since you appear to be on SQL Server 2008 that would be DATE.

So you have an entire database with one table storing DOBs, why?



Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Post #1601389
« Prev Topic | Next Topic »

Add to briefcase «««123

Permissions Expand / Collapse