473,406 Members | 2,220 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,406 software developers and data experts.

how to make fully related database? having trouble

Hey guys, i am quite new to this database thing, instructions on the net i find confusing, i was wondering if someone could point me in the right direction

heres what im trying to do:

Create a fully related database that sorts data into seperate tables as records are created in the Primary Table and further info added to the secondary Table via the relationship

what i have:
Primary Table: Items
Objects in table:
ItemName(primary Key):Text
ItemType:Text

Secondary (one of many in plan): Weapons
Objects:
ItemName(Primary Key):Text
Volume:Text
PackedVolume:Text
WepType:Text
ChargeSize:Text
ItemTyppe (as you can see, a few are related to the primary table, relationship between the primary and secondary isnt the problem)

Thrimary Table (related to secondary but not related to primary):HybridWeps
Objects:
ItemName(NO primary key):Text
ChargeSize:Text
WepType:Text (relationship between this table and the secondary was fine until the relationship somehow broke causing the whole database to bug up now i cant get secondary table to see the third like it was before it bugged on me (bug as in big white square when accessing the relationship + button instead of the related records) now not even a + button)

checked, double checked and triple checked for mispellings and records that dont match

what the hell :S

The relationships:
Primary: ItemName > Secondary: ItemName (enforced ref integ

Secondary: ItemName > Third:ItemName (basic relationship)

PS i have BASIC knowledge of Access but havent used it in ages (*since school*) so i forgot most of it, maybe im just trying to do this the completely wrong way so if someone could give me a step by step on how to fix this, i would greatly appreciate it :D

editz: the problem is its reversed: the +s appear in the third table but not the second table, however, the related records are blank...

strange.....ive just closed it and opened it 4 times now its working, what the hell, ok how do i avoid this?

although it is now workign, the fields in the third table arent updating from the second (second is updating from third)

cant make a Enforced Ref integ relationship for obvious reasons....not all of the data from the Second table needs to be in the third, what do i do :S

also when attemping to make a multi link relationship i keep getting "no unique key found for the primary table referenced" so i cant do that either.....but there IS a Unique Key in the Table that im trying to link from...i dont get it what am i doing wrong?
Apr 19 '11 #1

✓ answered by mshmyob

See attachment.

I looked online about your game and the info you are trying to save.

I think you are going to run into a problem if you want to save all sub categories.

What you are trying to work with is hierarchial data. The relational model does not handle hierarchial data very well. Remember the tables are just really flat lists that are interconnected with relations.

Since your subcategories are not consistent between parent and child you have no idea where to stop.

The two methods for handling hierarchial data in a RDMS is to use either the Adjacency List Model or the Nested List Model.

This is much more advanced than simple normalization but if you wish to go that route to really expand your database and make it like the databases online I would gladly help. The databases online are probably using an XML base data structure which works well for hiearchial data structures.

But like I said if you are willing to put some effort into it then I will help you with an Access version that supports hierarchial data.

cheers,

6 1994
mshmyob
904 Expert 512MB
Nothing works as you want because your design is not normalized. Read up here on normalization.

In the mean time please explain what each table represents and each field and then give some sample data to look over.

cheers,
Apr 19 '11 #2
heres the database:

[attached]

done all i can now i am getting "this phrase is too complex....."

see what u can do :D

none of the relationships are working now maybe u can see what imdoing wrong, the data should speak for itself what it all stands for

thanks again

btw this is based on a game, FYI: the game is called: EVE Online - Incursion

later on i hope to use vb2007 to make an app which will let people modify the data without the need to have access 2007 installed
Attached Files
File Type: zip Test.zip (26.7 KB, 100 views)
Apr 19 '11 #3
mshmyob
904 Expert 512MB
Thanks Christopher,

I will look at it tonight.

cheers,
Apr 19 '11 #4
mshmyob
904 Expert 512MB
See attachment.

I looked online about your game and the info you are trying to save.

I think you are going to run into a problem if you want to save all sub categories.

What you are trying to work with is hierarchial data. The relational model does not handle hierarchial data very well. Remember the tables are just really flat lists that are interconnected with relations.

Since your subcategories are not consistent between parent and child you have no idea where to stop.

The two methods for handling hierarchial data in a RDMS is to use either the Adjacency List Model or the Nested List Model.

This is much more advanced than simple normalization but if you wish to go that route to really expand your database and make it like the databases online I would gladly help. The databases online are probably using an XML base data structure which works well for hiearchial data structures.

But like I said if you are willing to put some effort into it then I will help you with an Access version that supports hierarchial data.

cheers,
Attached Files
File Type: zip Test.zip (72.4 KB, 72 views)
Apr 20 '11 #5
thanks for your reply, ive had a look at the database attached

i'll have a proper look at it later to see how exactly it works

your answer was a big help tx again :D
Apr 20 '11 #6
mshmyob
904 Expert 512MB
Just want to say that I did nothing concerning the hierarchial structure of the database. I really just fixed up your PK's and FK's.

I actually may expand on this database and create a fully functioning database that shows how to handle an unbalanced hierarchy like you will end up with and make an Insight article. I think it would be an interesting topic for the community.

cheers,
Apr 21 '11 #7

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

Similar topics

1
by: Anand | last post by:
Hi i am having trouble adding a recordset into the access database, the code seems to be working fine it passs and parses through all variables just fine without showing any errors and also when i...
2
by: Jozef | last post by:
Hello, I am trying to put together a module and open a workspace on a database that has a simple password (using Access XP). This is the lin that I'm having trouble with; Set wrk =...
0
by: Jozef | last post by:
Hello, I'm having trouble with the download links on my web server. The error I'm getting is; CGI Timeout The specified CGI application exceeded the allowed time for processing. The server...
1
by: MLH | last post by:
Am having trouble with the filter property setting below. Would like to filter the listing to car makes beginning with "D". I'm blowing it on the filter spec somehow??? Sub OpenRecordsetX() ...
0
by: harry12 | last post by:
Hello- I'm fairly new at using Microsoft Access and I'm having trouble getting a couple of things to work in my database. The first is that I have yet to find a way to get an append query to...
3
by: Michael | last post by:
Hi all, I'm having trouble PInvoking a TCHAR within a struct. I'll paste the specific struct's API definition below. I've tried so many numerous variations. The main Win32 error I get is...
2
by: Stu | last post by:
Hi guys, I've been having trouble getting the clock function to work portably, please could I get some thoughts? <Possibly OT comments> It works fine on my laptop (under WinXP) and on my...
2
by: rustyc | last post by:
Well, here's my first post in this forum (other than saying 'HI' over in the hi forum ;-) As I said over there: ... for a little side project at home, I'm writing a ham radio web site in...
1
by: ced69 | last post by:
having trouble getting marquee to work get object required errors tring t <title>This Month at the Chamberlain Civic Center</title> <link href="styles.css" rel="stylesheet"...
1
by: Alexnb | last post by:
Okay, what I want to do with this code is to got to thesaurus.reference.com and then search for a word and get the syns for it. Now, I can get the syns, but they are still in html form and some are...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.