473,394 Members | 1,694 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Creating table relationships

Hi,

I have problems getting my head around the whole concept of what information to put in which tables with links and so on. My kids would say that my joke about having wooden teeth and grey hair has something to do with it. Prob right.

I have two access DB apps running right now. The first is just one table and the web app searches and displays the info fine and not in question.

DB two is one I'm doing now and more complicated. I have many questions so not sure this is where to put them or via email.

As for what to put in tables and so forth it is working fine now with two tables relating to job listings.

Table one (the only table today that has variables)has the following columns

active (has y or n only for active or inactive)
city
state
zip
jobid

Table two has quite a number of columns that are the same for each of the variants in table one. The web app goes to table one and if the y or n col is y then extracts the info from all other columns and the the required columns in table two for that app. It then generates a RSS or XML file as needed for various services to crawl.

This provides a listing of a large number of cities in the US that I can hire in for one particular type of job and is finally working fine.

Now comes my delima. I now am getting to where I have a variety of other jobs that will have for example different descriptions, pay structures, summaries, etc., while still using cities, state, zip from the first table and other info from the second.

There will be about 6 different job types which I plan to add a col to table one for.
The existing table two has a number of fields that will apply to all jobs and or outputs, such as benefits, summaries, etc.

The issue comes in that I now will have a large number of descriptions. The existing one fits 1700+ jobs. Another will fit maybe 20 and another maybe 12. Then comes the descriptions that are unique to only one job id within one job type (there will be a couple of hundred of these when I'm done).

When I first built the db I had the main table with 5 fields/columns and the second table with about 15. The db size with only on record in each table was a whopping 5+MB. The main table now has 1700+ entries times 5 records each and stil only one record in the second and I'm at 10MB. The number of users is not a factor as the program runs once upon command, extracts the information and puts it in the proper format for the specified XML file. Web users in this app only have an impact on the db when they click a link on a posted notice which then pulls the exact information related to that job and builds a page for the viewer to see.

So in a long version you now have my situation and I need to get all these other jobs entered in the most efficient manner for the web app to work and extract them. Logic tells me that instead of two tables I'll now need three or more. I can use the asp program to go to each individual table base on the basic parameters but I somehow feel there is a better way to do it. With no concept( it is a huge block I have) on the one to one, one to many, related ID's vs foriegn id's I'm stuck as to how to move on.

Any assistance would be greatly appreciated. Pictures would be great LOL.

I am available via email if you wish.

Thanks for putting up with the long post.

Mike
Jul 7 '07 #1
2 1319
MMcCarthy
14,534 Expert Mod 8TB
Mike I am moving this into theAccess Forum as it is a question. However, this tutorial has all the information you need. I can't actually build your structure for you. If there is some part of the tutorial you can't understand I'll be happy to clarify it for you.
Jul 7 '07 #2
Thanks for the quick reply. Right now I'm trying to understand if I need to set up multiple tables that have some common field name (say jobtype) and create a relationship or just multiple tables with the variant information based on jobtype then use the asp to do if thens and extract the data. I know your tutuorial is great I just don't understand enough about the principles of relationships and if I make them what does that do for me on the programming end to make thing better or worse. I know you can't build my db for me but maybe you can give an alternate picture or comic book type source LOL that would get throught this block I have.....

I've managed to break it down to a main or primary table with the fields I listed before and plan to add Jobtype of which there are 5 at this time.

The current second table has most of the fields that will not change for any of the job types. Some will now differ based on the new job types. It does not make sense to me to have all 15 or so fields copied everytime I make a record for a seperate job where only say five of the fields differ. (both for input productivity and db size)

I think I should add a table now for each of the job types to each have the fields that are the same name, that would have different content. So for example if I have a jobtype of Regional in table one, and a jobcode of seregatlanta with if then statements I could get city, state, zip out of table 1, all standard fields from table two, then go to the "Regional" table, then to the jobcode and extract the specifics from the fields that would be different.

Where I am confused on the one to one, and many to many etc is "Will setting relationships, etc as described do me any good from the progamming end?" Will I be able to shorten the code by any amount or ??

Sorry just not getting it enough to know if I need to set it up or not.

Thank you for your patience and response.

Mike
Jul 7 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Jeremy Weiss | last post by:
Thanks to much help from everyone in my previous thread, I've made it a pretty fair ways into my billing/invoicing db. I'm now needing a way to cycle through all the records in a table and create...
2
by: Andrea | last post by:
I'm having some difficulty creating a report in Access and I need some suggestions. My company issues "Return Authorizations" when customers need to return products. A customer calls in and we...
8
by: Brian S. Smith | last post by:
Hi gang, Please help. I've been through the Access help, searched the Web, and I can't seem to get a straight answer. As the Subject line suggests, I want to run a fairly simple VB/Access Sub...
3
by: GGerard | last post by:
Hello Does anyone know if it is possible with Access 2000 to create relationships between tables using code? Thanks G.Gerard
4
by: Ronnie | last post by:
Ok let me just say first that I am a newbie in Access and I don't know much of SQL or VB programming. But I am trying to create this contact database using Access 97. I have created 2 tables,...
5
by: Mike Turco | last post by:
What is the difference between creating relationships in the front-end vs. the back-end database? I was trying to create a relationship in a database front-end and noticed that I could not check...
2
by: Gandalf | last post by:
I'm creating relationships between tables using VBA and ADOX. I can create one-to-one relationships with an inner join, but I can't figure out how to create these relationships with an outer join...
117
by: phil-news-nospam | last post by:
Is there really any advantage to using DIV elements with float style properies, vs. the old method of TABLE and TR and TD? I'm finding that by using DIV, it still involves the same number of...
4
by: jmarr02s | last post by:
I am using Access 2003 and am having difficulty creating a subform that will save records associated with a particular parent record.... The error message I receive pertains to indexes,...
5
by: Kosmos | last post by:
Hey :) hopefully someone can help me with this...I decided to take on the task of programming an access database for my legal co-op/internship...I'm studying law and music production on the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.