× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Most all of these ideas make sense, and I really do appreciate the feedback. In thinking this through a little more I realize the real problem may lay with what we expect from the users, and what they are used to seeing and using with their PCs. What would a spiffy Windows application do to define/display/store an item that is 8 1/2" by 11" by 1/16" ? Included in the solution would be the ability to sort items by any of those dimensions.




McKown, John wrote:
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Bob P. Roche
Sent: Friday, December 12, 2008 10:19 AM
To: Midrange Systems Technical Discussion
Subject: RE: storing fractions of inches in a data field

Store it as a decimal. We do the same thing with 1/8 ths of an inch where I work. All possible values from 1/16th to 15/16th will store in a 4 position decimal field.

This is likely totally off in left field. I take it the current
design/programs has two fields. OK. Store the data in a single field
(either my suggestion of an integer which is in units of 1/16 inch, or
as a decimal with 4 positions after the decimal point). However, put
this in a table with a NEW name and a NEW column to store the data. Copy
the data from the current table to the new table, converting the two
fields into one. Delete the old table. Now, create a VIEW which has the
same name as the current table. This VIEW will using the NEW table, but
use two UDFs such that the VIEW uses the two OLD column names. One of
the UDFs would return the inches portion of the new data as the OLD
inches name. The other UDF would return the 1/16 inch portion of the new
data as the OLD column name. This way, you don't need to change the
report programs.

Now, inputting the data may be more difficult. I don't know enough if
you could try to UPDATE a VIEW but have a BEFORE TRIGGER which would
convert the two UDF fields into the NEW "combined" field.

Well, just a crazy thought from a weird "z" person! <grin>

--
John McKown Systems Engineer IV
IT

Administrative Services Group

HealthMarkets(r)
Administrative Services Group
9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone * (817)-961-6183 cell
john.mckown@xxxxxxxxxxxxxxxxx * www.HealthMarkets.com

Confidentiality Notice: This e-mail message, including any attachments,
is for the sole use of the intended recipient(s) and may contain
confidential or proprietary information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all
copies of the original message.

------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.9.16/1842 - Release Date: 12/10/2008 6:53 PM



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.