× 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.



On 21-Jul-2011 09:37 , Alan Shore wrote:
<<SNIP>>
I have a file that contains (among other things) 21 occurrences of
thesame size field that can contain similar data
<<SNIP>>


Described only as "same size" and "similar data", the scenario is somewhat nebulous. Comparing numeric and character is difficult for example, unless all data can be assured to be validly cast to numeric; the example given shows that all are numeric[-like], but can that be assumed? If the data type is always character but values may match while being "similar", then is the alignment of the data relevant [e.g. does ' 202' equal '202 '?] and for a character string effectively representing a numeric value might '202.0' equal '202'?

FWiW the actual CREATE TABLE and clarification if the sample data might include anything other than digits [plus leading sign, and decimal separator; optionally leading or trailing blanks], if any are non-numeric fields. Without greater clarification, responses easily could be based on false assumptions that will fail when applied to the actual scenario.

Regards, Chuck

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.