Max length of text values in all fields, Unique values for all fields

T

tcb

In analyzing a large flat table that will be built into a new database
that will be relational I'd like to write code that will do the
following, if it is possible.

1. Max length of text values in all fields, drop them in a new table.

lastname 33
firstname 27
etc

2. Unique values for all fields, output each field and values in a new
tables.

I'd like to have that output like this:

tbl_Ethnicity

AfAm
AfrAmerican
Af-Amer
etc

tbl_PhoneType

Home
Alt
Alternate
Current
WFax
WorkFax
etc

Knowing these things will help me create my new table structure and
determine what values I'll need in lookup tables.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top