Re: Standards question on edited fields

From: LX-i (lxi0007_at_netscape.net)
Date: 01/17/04


Date: Fri, 16 Jan 2004 20:05:28 -0600

Judson McClendon wrote:
> "LX-i" <lxi0007@netscape.net> wrote:
>
>>We have a field that is 9 characters - a 2-digit day, a 3-character
>>month, and a 4-digit year. It's defined as follows...
>>
>>01 My-Date.
>> 03 My-Day Pic 9(02).
>> 03 My-Month Pic X(03).
>> 03 My-Year Pic 9(04).
>
>
> Why would you store a date in such a way?

Who said I was storing it?

> Dates in that format would
> not sort correctly, and it seems you would not present such a format to
> a human directly without editing, as your question demonstrates. I can't
> see a reason for storing a date in such a format, because it would need
> to be modified for either internal computer use or external human use,
> making it useless in its current form. Is there a valid reason for this, or
> is it just sloppy design? :-)

I can't think of a military-format date in our database. However, being
in the military, we have many requirements to display dates this way
(today would be "16 Jan 04" most places, "16 Jan 2004" in a few). We
either display the current date, or convert a data out of the database,
which is usually stored in YYYY-MM-DD (relational) or YYYYDDD (DMS).

So, it's not a sloppy design at all - and there is a valid reason.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~   /   \  /         ~        Live from Montgomery, AL!       ~
~  /     \/       o  ~                                        ~
~ /      /\   -   |  ~          LXi0007@Netscape.net          ~
~ _____ /  \      |  ~ http://www.knology.net/~mopsmom/daniel ~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~         I do not read e-mail at the above address           ~
~    Please see website if you wish to contact me privately   ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Relevant Pages

  • Re: Ideas on storing and retriving files in a Windows Application
    ... files etc. 2) Because it is stored in a relational database, ... blobs takes some minor modifications other than just using SELECT blah FROM ... horror stories of people who started storing BLOB data in a db only to have ... > will open the appropiatte application to display the file and 2. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Publish Images
    ... Best done by storing the uploaded file name / location in a Database ... - which info can then be used to display it ...
    (microsoft.public.frontpage.programming)
  • Re: Number + 1
    ... Using the same number in a variety of databases may be a reason for storing ... incremented portion and the extended portion. ... The value for dmrdate is assigned automatically as today's date and time, ... My experience not only with my database but with other customers & ...
    (microsoft.public.access.gettingstarted)
  • Re: Image ctl causes bloat when using text field to store path/fil
    ... Are you storing the image in the database? ... it in your database or embedding it in the report and/or form. ... got the same bloating problem in a report containing the Image control. ... Compact on Close will attempt to do so while the database is use... ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Concatenate and Null Values -- Features
    ... I have to say it's hard for me to see how a sequence number such as I have ... I should probably mention that this database is unlikely to generate more ... I wonder if storing 07-01 (probably without the dash, ... I think I know what you're saying about learning by teaching. ...
    (microsoft.public.access.reports)