ElcoyotldeAztlan
Registered User.
- Local time
- Today, 14:17
- Joined
- Jul 15, 2017
- Messages
- 43
Ok Guys I think I got a real hard query to create lets see if we can solve this
So I have been requested to created this database base off of one excel sheet, i'm in the process of adding this data to make sure the data fits in with the database ER diagram.
I have had to restructured/add other tables along the way because the original design had its errors.
To cut to the chase,
This database focuses on over 3000 entries and some have the same exact related fields while others don't. It is split into 4 sections with their own related tables. what I'm trying to do is connect a primary ID that represent related IDs to a main connections table that connects the other 3 sections IDs
(I know this may be bad in design I'm not the one created it but lets see what we can do)
I have manged to split the data into it's sections and match the IDs up simply copying and pasting the results of SQL into each ID field. So 4 sections can be done easily , however it gets tricky when I want to connect all 4 sections into one table.
Because this db focuses on the 3000 entries the connecting table needs to be base on all 3000 entries now it needs to connect with all the other sections IDs which one can do manually but to insert 3000 entries is too long.
The probably is matching the other sections because their own IDs are base off of their related tables so im having table finding a way to match the section id with the connections table, I hope i'm making sense,
Let focus on one section.
Basically One table which has 5 related tables is connected to this sections table by pure ID fields that make up the primary ID, this Primary needs to be connected to the main table and match up with the 3000 entries.
I have inserted the Excel data sheet as a table match all the column names with the field names I able to match each column with the IDs using SQL and 3000 entries matching the IDs from a table comes out great, now the issue is how can one section table that represents 5 tables that are all connect by IDs
using a Primary key ID, How can this Primary key match another ID
I'm hoping this is making sense.
Thanks for your time reading this
So I have been requested to created this database base off of one excel sheet, i'm in the process of adding this data to make sure the data fits in with the database ER diagram.
I have had to restructured/add other tables along the way because the original design had its errors.
To cut to the chase,
This database focuses on over 3000 entries and some have the same exact related fields while others don't. It is split into 4 sections with their own related tables. what I'm trying to do is connect a primary ID that represent related IDs to a main connections table that connects the other 3 sections IDs
(I know this may be bad in design I'm not the one created it but lets see what we can do)
I have manged to split the data into it's sections and match the IDs up simply copying and pasting the results of SQL into each ID field. So 4 sections can be done easily , however it gets tricky when I want to connect all 4 sections into one table.
Because this db focuses on the 3000 entries the connecting table needs to be base on all 3000 entries now it needs to connect with all the other sections IDs which one can do manually but to insert 3000 entries is too long.
The probably is matching the other sections because their own IDs are base off of their related tables so im having table finding a way to match the section id with the connections table, I hope i'm making sense,
Let focus on one section.
Basically One table which has 5 related tables is connected to this sections table by pure ID fields that make up the primary ID, this Primary needs to be connected to the main table and match up with the 3000 entries.
I have inserted the Excel data sheet as a table match all the column names with the field names I able to match each column with the IDs using SQL and 3000 entries matching the IDs from a table comes out great, now the issue is how can one section table that represents 5 tables that are all connect by IDs
using a Primary key ID, How can this Primary key match another ID
I'm hoping this is making sense.
Thanks for your time reading this