Sign Up |  Live StatsLive Stats    Articles 35,345| Comments 159,788| Members 17,820, Newest waheguruhelpme| Online 223
Home Contact
 (Forgotten?): 
    Sikhism

   
                                                                     Your Banner Here!    

Sikh Philosophy Network » Sikh Philosophy Network » Current Affairs » Information Technology » Help normalize data - what's a "good' approach?

Help normalize data - what's a "good' approach?

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 400 USD, Received: 35 USD (9%)
Please Donate...
Related Topics...
Thread Thread Starter Forum Replies Last Post
Are there any good Sikh "missionary" colleges? Hardas Singh Hard Talk 7 25-Dec-2009 22:21 PM
Good Reasons for "Believing" in God - A Presentation by Dan Dennett for intellectuals BhagatSingh Atheism 1 14-Nov-2009 06:26 AM
Where do I find "how to" information for Access data entery people able company Information Technology 4 28-Jul-2006 08:38 AM
pivot tables: "problems obtaining data" message. June Information Technology 0 28-Jul-2006 08:18 AM
I have a data type mismatch if I select "H", but "A" selects. Howard in Hammondsport Information Technology 4 07-Nov-2005 11:26 AM


Tags
approach, data, help, help normalize data what a good, normalize, quotgood
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:08 AM
Larry Kahm's Avatar Larry Kahm
Guest
 
Posts: n/a
   
   
Help normalize data - what's a "good' approach?

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
I am supporting an existing A2000 database that was built by someone who
learned Access "informally" (that's as polite as I'm going to be with that).
I need to clean up some of the errors and this is the first one that will
have any significant impact.

The Staff table contains pertinent information about the firm's employees.
It contains a field, Title, which is defined in the table as combo box /
look-up field (I know, this is considered a "sin"). The value list contains
items such as: Associate, Principle, Administrator, etc.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/9886-help-normalize-data-whats-good-approach.html
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9886

I want to build a new table, tblStaffTitles, with an autonumber key field
and the values from the look-up field.

But, what is the best approach for correcting and updating the Staff table
itself?

Here's what I was thinking of doing:

> add a new column to the table, StaffTitle as a long integer (for the
> foreign key)
> run an update query that would use the current textual value of the Title
> field to populate the StaffTitle field from the tblStaffTitiles
> delete the Title field and rename StaffTitle to Title
> add the two tables to the Relationships window and link the fields (pk to
> fk).


How far off is this approach? Is there something better or more practical?

Thanks, in advance!

Larry





 
Do share your immediate thoughts or reactions on this issue? We value your views! Login Now! or Sign Up Today! to share your views with us.. Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:08 AM
Douglas J Steele's Avatar Douglas J Steele
Guest
 
Posts: n/a
   
   
Re: Help normalize data - what's a "good' approach?

If you're using a lookup field, you should already have the two tables. All
you should have to do is open the table in Design mode, select the lookup
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9886
field then look at the Lookup tab in the bottom left-hand corner. Change it
from Combo Box to Text Box, and you should see what's actually stored in the
lookup field.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"Larry Kahm" wrote in message
news:GD%ag.5595$RY2.1298@trnddc02...
> I am supporting an existing A2000 database that was built by someone who
> learned Access "informally" (that's as polite as I'm going to be with

that).
> I need to clean up some of the errors and this is the first one that will
> have any significant impact.
>
> The Staff table contains pertinent information about the firm's employees.
> It contains a field, Title, which is defined in the table as combo box /
> look-up field (I know, this is considered a "sin"). The value list

contains
> items such as: Associate, Principle, Administrator, etc.
>
> I want to build a new table, tblStaffTitles, with an autonumber key field
> and the values from the look-up field.
>
> But, what is the best approach for correcting and updating the Staff table
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9886
> itself?
>
> Here's what I was thinking of doing:
>
> > add a new column to the table, StaffTitle as a long integer (for the
> > foreign key)
> > run an update query that would use the current textual value of the

Title
> > field to populate the StaffTitle field from the tblStaffTitiles
> > delete the Title field and rename StaffTitle to Title
> > add the two tables to the Relationships window and link the fields (pk

to
> > fk).

>
> How far off is this approach? Is there something better or more

practical?
>
> Thanks, in advance!
>
> Larry
>
>



Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:08 AM
Craig Alexander Morrison's Avatar Craig Alexander Morrison
Guest
 
Posts: n/a
   
   
Re: Help normalize data - what's a "good' approach?

Not too sure what you want the AutoNumber for, unless you are very short of
disk space or you have a large database nearing the 2GB limit.

Why not establish the StaffTitle table with a single field containing values
such as "Associate", "Principle" etc. Make that field the Primary Key (PK)
and then link the two fields establishing RI Cascade Update (but not Delete)
between StaffTitle and Staff.

If you are going to use an AutoNumber in StaffTitle and use it as PK you
will need to establish yet another unique index in that table for the actual
Staff Title otherwise there is nothing stopping you having duplicate records
(other than the AutoNumber) at the engine level.

If you do insist on using an AutoNumber or other such unnecessary field
then:-

1. run an append query into your new table having also established the
unique index on the actual title this will ensure that exact duplicate
titles will not be created although you will have to watch out for spelling
mistakes.

2. run an update query whilst joining on the text field on the Staff and
StaffTitle tables to update the new Long Integer field.

3. establish the relationship

4. delete StaffTitle text field in Staff table.

If you avoid the AutoNumber just run the first append query (assuming that
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9886
any spelling mistakes have been cleaned up) and establish RI Cascade. You
won't save disk space (but then todays top laptops have over 100GB) but you
will ensure that only valid values that exist in StaffTitle can be selected
for the Staff table.

--
Slainte

Craig Alexander Morrison
Crawbridge Data (Scotland) Limited

"Larry Kahm" wrote in message
news:GD%ag.5595$RY2.1298@trnddc02...
>I am supporting an existing A2000 database that was built by someone who
>learned Access "informally" (that's as polite as I'm going to be with
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9886
>that). I need to clean up some of the errors and this is the first one that
>will have any significant impact.
>
> The Staff table contains pertinent information about the firm's employees.
> It contains a field, Title, which is defined in the table as combo box /
> look-up field (I know, this is considered a "sin"). The value list
> contains items such as: Associate, Principle, Administrator, etc.
>
> I want to build a new table, tblStaffTitles, with an autonumber key field
> and the values from the look-up field.
>
> But, what is the best approach for correcting and updating the Staff table
> itself?
>
> Here's what I was thinking of doing:
>
>> add a new column to the table, StaffTitle as a long integer (for the
>> foreign key)
>> run an update query that would use the current textual value of the Title
>> field to populate the StaffTitle field from the tblStaffTitiles
>> delete the Title field and rename StaffTitle to Title
>> add the two tables to the Relationships window and link the fields (pk to
>> fk).

>
> How far off is this approach? Is there something better or more
> practical?
>
> Thanks, in advance!
>
> Larry
>
>






Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:08 AM
Larry Kahm's Avatar Larry Kahm
Guest
 
Posts: n/a
   
   
Re: Help normalize data - what's a "good' approach?

I'm sorry that I wasn't clear in my original post - and I should have been.

In the Staff table, the Title field's look-up values are supplied by a value
list that is hardcoded in the field.

Larry
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9886

"Douglas J Steele" wrote in message
news:%23WjHL7oeGHA.1260@TK2MSFTNGP05.phx.gbl...
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9886
> If you're using a lookup field, you should already have the two tables.
> All
> you should have to do is open the table in Design mode, select the lookup
> field then look at the Lookup tab in the bottom left-hand corner. Change
> it
> from Combo Box to Text Box, and you should see what's actually stored in
> the
> lookup field.
>
> --
> Doug Steele, Microsoft Access MVP
> http://I.Am/DougSteele
> (no e-mails, please!)
>
>
> "Larry Kahm" wrote in message
> news:GD%ag.5595$RY2.1298@trnddc02...
>> I am supporting an existing A2000 database that was built by someone who
>> learned Access "informally" (that's as polite as I'm going to be with

> that).
>> I need to clean up some of the errors and this is the first one that will
>> have any significant impact.
>>
>> The Staff table contains pertinent information about the firm's
>> employees.
>> It contains a field, Title, which is defined in the table as combo box /
>> look-up field (I know, this is considered a "sin"). The value list

> contains
>> items such as: Associate, Principle, Administrator, etc.
>>
>> I want to build a new table, tblStaffTitles, with an autonumber key field
>> and the values from the look-up field.
>>
>> But, what is the best approach for correcting and updating the Staff
>> table
>> itself?
>>
>> Here's what I was thinking of doing:
>>
>> > add a new column to the table, StaffTitle as a long integer (for the
>> > foreign key)
>> > run an update query that would use the current textual value of the

> Title
>> > field to populate the StaffTitle field from the tblStaffTitiles
>> > delete the Title field and rename StaffTitle to Title
>> > add the two tables to the Relationships window and link the fields (pk

> to
>> > fk).

>>
>> How far off is this approach? Is there something better or more

> practical?
>>
>> Thanks, in advance!
>>
>> Larry
>>
>>

>
>



Reply With Quote
  #5 (permalink)  
Old 28-Jul-2006, 08:08 AM
Larry Kahm's Avatar Larry Kahm
Guest
 
Posts: n/a
   
   
Re: Help normalize data - what's a "good' approach?

I want the Autonumber because it will provide me with a "quick and dirty"
means of identifying the leading 8 titles in the firm. I >know< I'm not
supposed to depend on something like that, but if I enter the data in the
exact manner that I need it, I can use that key to help clean up some other
coding nightmares.

An office admin is giong to be maintaining/updating this table in the
future. With less than 20 titles, there is no likelihood that an existing
one will be duplicated.

Thanks for the clarification of the procedure. I really do appreciate it!
And of course, I'm only going to do this after I back-up the current
database and have a second copy of the table on hand, just in case.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9886

Larry

"Craig Alexander Morrison" wrote in
message news:u9tDB$oeGHA.3692@TK2MSFTNGP03.phx.gbl...
> Not too sure what you want the AutoNumber for, unless you are very short
> of disk space or you have a large database nearing the 2GB limit.
>
> Why not establish the StaffTitle table with a single field containing
> values
> such as "Associate", "Principle" etc. Make that field the Primary Key (PK)
> and then link the two fields establishing RI Cascade Update (but not
> Delete)
> between StaffTitle and Staff.
>
> If you are going to use an AutoNumber in StaffTitle and use it as PK you
> will need to establish yet another unique index in that table for the
> actual
> Staff Title otherwise there is nothing stopping you having duplicate
> records
> (other than the AutoNumber) at the engine level.
>
> If you do insist on using an AutoNumber or other such unnecessary field
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9886
> then:-
>
> 1. run an append query into your new table having also established the
> unique index on the actual title this will ensure that exact duplicate
> titles will not be created although you will have to watch out for
> spelling
> mistakes.
>
> 2. run an update query whilst joining on the text field on the Staff and
> StaffTitle tables to update the new Long Integer field.
>
> 3. establish the relationship
>
> 4. delete StaffTitle text field in Staff table.
>
> If you avoid the AutoNumber just run the first append query (assuming that
> any spelling mistakes have been cleaned up) and establish RI Cascade. You
> won't save disk space (but then todays top laptops have over 100GB) but
> you
> will ensure that only valid values that exist in StaffTitle can be
> selected
> for the Staff table.
>
> --
> Slainte
>
> Craig Alexander Morrison
> Crawbridge Data (Scotland) Limited
>
> "Larry Kahm" wrote in message
> news:GD%ag.5595$RY2.1298@trnddc02...
>>I am supporting an existing A2000 database that was built by someone who
>>learned Access "informally" (that's as polite as I'm going to be with
>>that). I need to clean up some of the errors and this is the first one
>>that
>>will have any significant impact.
>>
>> The Staff table contains pertinent information about the firm's
>> employees.
>> It contains a field, Title, which is defined in the table as combo box /
>> look-up field (I know, this is considered a "sin"). The value list
>> contains items such as: Associate, Principle, Administrator, etc.
>>
>> I want to build a new table, tblStaffTitles, with an autonumber key field
>> and the values from the look-up field.
>>
>> But, what is the best approach for correcting and updating the Staff
>> table
>> itself?
>>
>> Here's what I was thinking of doing:
>>
>>> add a new column to the table, StaffTitle as a long integer (for the
>>> foreign key)
>>> run an update query that would use the current textual value of the
>>> Title
>>> field to populate the StaffTitle field from the tblStaffTitiles
>>> delete the Title field and rename StaffTitle to Title
>>> add the two tables to the Relationships window and link the fields (pk
>>> to
>>> fk).

>>
>> How far off is this approach? Is there something better or more
>> practical?
>>
>> Thanks, in advance!
>>
>> Larry
>>
>>

>
>
>
>
>



Reply With Quote
  #6 (permalink)  
Old 28-Jul-2006, 08:08 AM
Craig Alexander Morrison's Avatar Craig Alexander Morrison
Guest
 
Posts: n/a
   
   
Re: Help normalize data - what's a "good' approach?

  Donate Today!  
I would suggest that rather than an AutoNumber you use a Byte data type
field and record a ranking order to the titles.

The byte field allows values in the range 0 to 255.


--
Slainte

Craig Alexander Morrison
Crawbridge Data (Scotland) Limited
"Larry Kahm" wrote in message
news:738bg.14934$Nw6.6284@trnddc03...
>I want the Autonumber because it will provide me with a "quick and dirty"
>means of identifying the leading 8 titles in the firm. I >know< I'm not
>supposed to depend on something like that, but if I enter the data in the
>exact manner that I need it, I can use that key to help clean up some other
>coding nightmares.
>
> An office admin is giong to be maintaining/updating this table in the
> future. With less than 20 titles, there is no likelihood that an existing
> one will be duplicated.
>
> Thanks for the clarification of the procedure. I really do appreciate it!
> And of course, I'm only going to do this after I back-up the current
> database and have a second copy of the table on hand, just in case.
>
> Larry
>
> "Craig Alexander Morrison" wrote in
> message news:u9tDB$oeGHA.3692@TK2MSFTNGP03.phx.gbl...
>> Not too sure what you want the AutoNumber for, unless you are very short
>> of disk space or you have a large database nearing the 2GB limit.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9886
>>
>> Why not establish the StaffTitle table with a single field containing
>> values
>> such as "Associate", "Principle" etc. Make that field the Primary Key
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9886
>> (PK)
>> and then link the two fields establishing RI Cascade Update (but not
>> Delete)
>> between StaffTitle and Staff.
>>
>> If you are going to use an AutoNumber in StaffTitle and use it as PK you
>> will need to establish yet another unique index in that table for the
>> actual
>> Staff Title otherwise there is nothing stopping you having duplicate
>> records
>> (other than the AutoNumber) at the engine level.
>>
>> If you do insist on using an AutoNumber or other such unnecessary field
>> then:-
>>
>> 1. run an append query into your new table having also established the
>> unique index on the actual title this will ensure that exact duplicate
>> titles will not be created although you will have to watch out for
>> spelling
>> mistakes.
>>
>> 2. run an update query whilst joining on the text field on the Staff and
>> StaffTitle tables to update the new Long Integer field.
>>
>> 3. establish the relationship
>>
>> 4. delete StaffTitle text field in Staff table.
>>
>> If you avoid the AutoNumber just run the first append query (assuming
>> that
>> any spelling mistakes have been cleaned up) and establish RI Cascade. You
>> won't save disk space (but then todays top laptops have over 100GB) but
>> you
>> will ensure that only valid values that exist in StaffTitle can be
>> selected
>> for the Staff table.
>>
>> --
>> Slainte
>>
>> Craig Alexander Morrison
>> Crawbridge Data (Scotland) Limited
>>
>> "Larry Kahm" wrote in message
>> news:GD%ag.5595$RY2.1298@trnddc02...
>>>I am supporting an existing A2000 database that was built by someone who
>>>learned Access "informally" (that's as polite as I'm going to be with
>>>that). I need to clean up some of the errors and this is the first one
>>>that
>>>will have any significant impact.
>>>
>>> The Staff table contains pertinent information about the firm's
>>> employees.
>>> It contains a field, Title, which is defined in the table as combo box /
>>> look-up field (I know, this is considered a "sin"). The value list
>>> contains items such as: Associate, Principle, Administrator, etc.
>>>
>>> I want to build a new table, tblStaffTitles, with an autonumber key
>>> field
>>> and the values from the look-up field.
>>>
>>> But, what is the best approach for correcting and updating the Staff
>>> table
>>> itself?
>>>
>>> Here's what I was thinking of doing:
>>>
>>>> add a new column to the table, StaffTitle as a long integer (for the
>>>> foreign key)
>>>> run an update query that would use the current textual value of the
>>>> Title
>>>> field to populate the StaffTitle field from the tblStaffTitiles
>>>> delete the Title field and rename StaffTitle to Title
>>>> add the two tables to the Relationships window and link the fields (pk
>>>> to
>>>> fk).
>>>
>>> How far off is this approach? Is there something better or more
>>> practical?
>>>
>>> Thanks, in advance!
>>>
>>> Larry
>>>
>>>

>>
>>
>>
>>
>>

>
>



Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Gurbani Jukebox
Listen to Gurbani while surfing SPN!
» Active Discussions
sikhism Who is "Mohan"?
Today 06:52 AM
21 Replies, 319 Views
sikhism need urgent advice.......
Today 06:46 AM
6 Replies, 72 Views
sikhism ਨਾਮਾ
Today 06:37 AM
2 Replies, 45 Views
sikhism Sikh Diamonds Video...
Today 04:23 AM
6 Replies, 112 Views
sikhism Are Creator and Creation...
Today 01:30 AM
44 Replies, 2,833 Views
sikhism Herman Hesse,...
Today 00:54 AM
13 Replies, 225 Views
sikhism On a Scale of Most...
Yesterday 21:42 PM
30 Replies, 1,277 Views
sikhism I became victim by...
Yesterday 19:50 PM
0 Replies, 39 Views
sikhism How important is Matha...
By Ishna
Yesterday 19:05 PM
58 Replies, 1,026 Views
sikhism Sikh Books downloads
Yesterday 15:39 PM
2 Replies, 62 Views
sikhism Salok Sheikh Farid ji...
Yesterday 09:35 AM
0 Replies, 43 Views
sikhism In Punjab, three farmers...
Yesterday 05:36 AM
0 Replies, 45 Views
sikhism Supernatural Sikhs, what...
Yesterday 03:45 AM
19 Replies, 408 Views
sikhism Sukhmani Sahib Astpadi...
26-May-2012 22:57 PM
0 Replies, 46 Views
Do You Think You Are...
26-May-2012 09:59 AM
94 Replies, 8,258 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.2

All times are GMT +6.5. The time now is 07:46 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.54741 seconds with 30 queries