Sign Up |  Live StatsLive Stats    Articles 35,345| Comments 159,791| Members 17,821, Newest cdotkhn| Online 218
Home Contact
 (Forgotten?): 
    Sikhism

   
                                                                     Your Banner Here!    

Rational Tables?

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
Rational Theists and Rational Atheists of the World, Unite! Narayanjot Kaur Atheism 0 25-Mar-2010 09:43 AM
Acc2003 converts linked tables to local tables (2k -> 97) JRS Information Technology 1 28-Jul-2006 08:00 AM
Rational Behind 5 Kakars: My understanding Amarpal Sikh Sikhi Sikhism 0 12-Mar-2006 16:46 PM
Where Did These Tables Come From? Smartin Information Technology 6 16-Nov-2005 14:51 PM
Rational Tables? Scooper2241 Information Technology 1 10-Nov-2005 21:09 PM


Tags
rational, tables
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 10-Nov-2005, 21:09 PM
Scooper2241's Avatar Scooper2241
Guest
 
Posts: n/a
   
   
Rational Tables?

  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 starting a data base from scrach for a library of video tapes. The way
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/7036-rational-tables.html
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=7036
my company wants them set up is in categories. I have created tables for each
of the differnt categories and assigned fields (which are all more less the
same for all the tables). What I want to acheve frome this is a way to
search for example a speekers name and get a list of all the videos that
person sopke in by combining all the differnt tables. What is the best way
to do this?

*








 
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 10-Nov-2005, 21:09 PM
Dirk Goldgar's Avatar Dirk Goldgar
Guest
 
Posts: n/a
   
   
Re: Rational Tables?

"Scooper2241" wrote in message
news:116F0A39-E78D-4171-B1DB-C5E5B7047E19@microsoft.com
> I am starting a data base from scrach for a library of video tapes.
> The way my company wants them set up is in categories. I have created
> tables for each of the differnt categories and assigned fields (which
> are all more less the same for all the tables). What I want to
> acheve frome this is a way to search for example a speekers name and
> get a list of all the videos that person sopke in by combining all
> the differnt tables. What is the best way to do this?


A different way from the one you've started on, I'm afraid. You should
*not* have a separate table for each category. Instead, you should have
one table that lists all the categories, one record for each category,
and assigns each category an identifying value to serve as its primary
key. That could be the category name itself, but that's a bit
cumbersome, or a shorter category code that you type in, or an
autonumber ID that will be generated by Access automatically for each
record you add to this table.

Then you would have a single table for all the videotapes. If each tape
can fall into only a single category, you'd have a Category field in
this table, and for each tape you enter, you'd choose the key field from
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=7036
the list of categories stored in the Categories table.

If, on the other hand, a videotape could belong to more than one
category, you wouldn't put a Category field in this table. Instead,
you'd have a third table to represent this many-to-many relationship.
This third table would store both the key field from the VideoTapes
table and the key field from the Categories table, so that the presence
of a record in this table would mean that this videotape falls into this
category.

Since you'll only have one table for all the videotapes, running a query
to find all the tapes with a particular speaker is now simple; that is,
unless there could be multiple speakers per videotape. If that could be
the case, then you'd use a simlar three-table structure for that
many-to-many relationship, too, and the query would have to involve a
join of those tables. Still, there'd be no need to search multiple
table, which is what you really want to avoid.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=7036
Reply With Quote
  #3 (permalink)  
Old 10-Nov-2005, 21:09 PM
Scooper2241's Avatar Scooper2241
Guest
 
Posts: n/a
   
   
RE: Rational Tables?

Thank you Dirk for the help but i still have some questions.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=7036
You wrote:
A different way from the one you've started on, I'm afraid. You should
*not* have a separate table for each category. Instead, you should have
one table that lists all the categories, one RECORD for each category,
and assigns each category an identifying value to serve as its primary
key. That could be the category name itself, but that's a bit
cumbersome, or a shorter category code that you type in, or an
autonumber ID that will be generated by Access automatically for each
record you add to this table.

Then you would have a single table for all the videotapes. If each tape
can fall into only a single category, you'd have a Category field in
this table, and for each tape you enter, you'd choose the key field from
the list of categories stored in the Categories table.

If, on the other hand, a videotape could belong to more than one
category, you wouldn't put a Category field in this table. Instead,
you'd have a third table to represent this many-to-many relationship.
This third table would store both the key field from the VideoTapes
table and the key field from the Categories table, so that the presence
of a record in this table would mean that this videotape falls into this
category.

Since you'll only have one table for all the videotapes, running a query
to find all the tapes with a particular speaker is now simple; that is,
unless there could be multiple speakers per videotape. If that could be
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=7036
the case, then you'd use a simlar three-table structure for that
many-to-many relationship, too, and the query would have to involve a
join of those tables. Still, there'd be no need to search multiple
table, which is what you really want to avoid.

1.When you used the work record at the top in caps did you mean feild?
2. I have 20 or so categories now all using the same fields inside them for
example one table is called CORPORATE and feilds inside it are: Date ,
Program name, Content Type, Footage Type, Run Time, and ten seperate fields
for speekers to be listed in the order of their apperence on the tape. Which
field would make the best primary key and do you think their is a need to
have three tables?


"Scooper2241" wrote:

> I am starting a data base from scrach for a library of video tapes. The way
> my company wants them set up is in categories. I have created tables for each
> of the differnt categories and assigned fields (which are all more less the
> same for all the tables). What I want to acheve frome this is a way to
> search for example a speekers name and get a list of all the videos that
> person sopke in by combining all the differnt tables. What is the best way
> to do this?

Reply With Quote
  #4 (permalink)  
Old 10-Nov-2005, 21:09 PM
Dirk Goldgar's Avatar Dirk Goldgar
Guest
 
Posts: n/a
   
   
Re: Rational Tables?

  Donate Today!  
"Scooper2241" wrote in message
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=7036
news:C764CC78-46A5-438F-BB3C-7E20B1D5B98D@microsoft.com
> Thank you Dirk for the help but i still have some questions.
> You wrote:
> A different way from the one you've started on, I'm afraid. You should
> *not* have a separate table for each category. Instead, you should
> have
> one table that lists all the categories, one RECORD for each category,
> and assigns each category an identifying value to serve as its primary
> key. That could be the category name itself, but that's a bit
> cumbersome, or a shorter category code that you type in, or an
> autonumber ID that will be generated by Access automatically for each
> record you add to this table.
>
> Then you would have a single table for all the videotapes. If each
> tape
> can fall into only a single category, you'd have a Category field in
> this table, and for each tape you enter, you'd choose the key field
> from
> the list of categories stored in the Categories table.
>
> If, on the other hand, a videotape could belong to more than one
> category, you wouldn't put a Category field in this table. Instead,
> you'd have a third table to represent this many-to-many relationship.
> This third table would store both the key field from the VideoTapes
> table and the key field from the Categories table, so that the
> presence
> of a record in this table would mean that this videotape falls into
> this category.
>
> Since you'll only have one table for all the videotapes, running a
> query
> to find all the tapes with a particular speaker is now simple; that
> is, unless there could be multiple speakers per videotape. If that
> could be
> the case, then you'd use a simlar three-table structure for that
> many-to-many relationship, too, and the query would have to involve a
> join of those tables. Still, there'd be no need to search multiple
> table, which is what you really want to avoid.
>
> 1.When you used the work record at the top in caps did you mean feild?


No. You don't want to have repeating groups of fields. Any time you
have tables set up with lists of repeating fields -- like "Category1",
"Category2", "Category3", ... -- that's a powerful indication that your
table should really be broken up into two.

> 2. I have 20 or so categories now all using the same fields inside
> them for example one table is called CORPORATE and feilds inside it
> are: Date , Program name, Content Type, Footage Type, Run Time, and
> ten seperate fields for speekers to be listed in the order of their
> apperence on the tape.


There's another example: the speakers on the tape shouldn't be stored
in separate fields in each tape record, but rather in separate records
in another table.

> Which field would make the best primary key
> and do you think their is a need to have three tables?


You should have one table, maybe named Videotapes, with fields like
these:

Videotapes
--------------
TapeID (primary key)
ProgramName
TapeDate ("Date" is not a good name for a field)
CategoryID
ContentType (if this is different from Category)
FootageType
RunTime

You should also have these tables with fields as indicated:

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=7036
Categories
--------------
CategoryID (primary key: autonumber or user-assigned code)
CategoryDescription

Speakers
------------
SpeakerID (primary key)
SpeakerName

VideotapesSpeakers
--------------------------
TapeID
SpeakerID
SpeakerSequence (order of appearance on tape)


I don't know whether you may actually need a separate
VideotapesCategories table, because you haven't said whether a tape may
belong to more than one category. The above structure assumes each tape
can be in only one category, but may have multiple speakers.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


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 need urgent advice.......
Today 10:03 AM
7 Replies, 87 Views
sikhism Who is "Mohan"?
Today 08:46 AM
22 Replies, 348 Views
sikhism How important is Matha...
Today 08:12 AM
59 Replies, 1,041 Views
sikhism ਨਾਮਾ
Today 06:37 AM
2 Replies, 53 Views
sikhism Sikh Diamonds Video...
Today 04:23 AM
6 Replies, 120 Views
sikhism Are Creator and Creation...
Today 01:30 AM
44 Replies, 2,837 Views
sikhism Herman Hesse,...
Today 00:54 AM
13 Replies, 230 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, 46 Views
sikhism Sikh Books downloads
Yesterday 15:39 PM
2 Replies, 66 Views
sikhism Salok Sheikh Farid ji...
Yesterday 09:35 AM
0 Replies, 47 Views
sikhism In Punjab, three farmers...
Yesterday 05:36 AM
0 Replies, 49 Views
sikhism Supernatural Sikhs, what...
Yesterday 03:45 AM
19 Replies, 416 Views
sikhism Sukhmani Sahib Astpadi...
26-May-2012 22:57 PM
0 Replies, 51 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 10:37 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.41053 seconds with 30 queries