Hi ,
I have some data of members of a credit society, like address details,nominee details,loan(if taken) details etc,now i m confused whether put all these data in same table with a ID as PK and create views to access different data (eg address) or create different tables like address details , nominee details and so with the member ID as PK , which would be better and why
pleez help me out
7 1518
You have to look at your data and combine in groups of data when one thing can refer to multiple things.
Example:
One person can have only one personal information available like address, phone…
This person could possibly have multiple loans and there is no point to repeat address information for each loan.
In this case you create following tables:
[PHP]Personal_Table
PersonID, FirstName, LastName, Age, Address, Phone and so on
Loan_Table
LoanID, PersonID, loand data.[/PHP]
This way you will not have to repeat all personal information for each loan but easily can join to Person_Table using PersonID column and retrieve it if necessary.
Hope it helps.
hi dear friend
thank u so much for ur response it was really helpful
In my case a person can take a loan only f he has refunded his previous loan so no question of multiple loans arises , and in each type of details there is only a single record for each Member_ID eg nominee details there are 2 nominees for each member so i have taken t as nominee1 , nominee2 for each Member_ID and at the end of each month a transaction report is prepared and in that too there is a record for each Member_ID.
So shall i club all details like nominee,personal, transaction etc in 1 table and make Member_ID as its PK?
I have used the PK FK ,Unique constraints , if u can tell me of any other constraints i should take care of it would be really helpful
hi
If i dont club the data n 1 table and create different tables for each like address details, nominee details , transaction details etc with Member_ID as PK will t giv rise to redundant data with the same Member_ID repeating?
Kindly reply as soon as possible, it would be a great help
It sounds like you really want one table! :-) And if you're not interested in learning a few database concepts, then you might be better off with one table. Certainly you can hack things together and it can seem more concrete and logical. Everything is in one place.
To break it into separate tables, you'd need different queries to join your information back together into reports. It's not usually hard but it's one more thing to learn.
One question: do you want to record history of member name changes, address changes, loan details, and so on? Maybe you're accomplishing this by storing the old report files.
Oh, and you asked about redundant data. No you don't end up with member data duplicated if you go with a multiple table design. The opposite is more likely to be true: In any larger database project you can definitely end up with duplicated data if you go with a single table!
Hi ,
Thank u friend for ur response
Yes I m recording history of member name changes, address changes, loan details by storing the old report files.
And can u pleez tell me how can I end up with duplicated data if I go with a single table
It sounds like you really want one table! :-) And if you're not interested in learning a few database concepts, then you might be better off with one table. Certainly you can hack things together and it can seem more concrete and logical. Everything is in one place.
To break it into separate tables, you'd need different queries to join your information back together into reports. It's not usually hard but it's one more thing to learn.
One question: do you want to record history of member name changes, address changes, loan details, and so on? Maybe you're accomplishing this by storing the old report files.
Oh, and you asked about redundant data. No you don't end up with member data duplicated if you go with a multiple table design. The opposite is more likely to be true: In any larger database project you can definitely end up with duplicated data if you go with a single table!
Hi,
If learning joins is the thing to make it into seperate tables , I have used joins in my tables like a table transcPerMember joining transaction details and Member details.
But i am worried about the redundancy.
Can u pleez tell me , If i go with multiple tables i will have same Mem_ID repeating in all of them then how wont i end up with redundancy.
It sounds like you really want one table! :-) And if you're not interested in learning a few database concepts, then you might be better off with one table. Certainly you can hack things together and it can seem more concrete and logical. Everything is in one place.
To break it into separate tables, you'd need different queries to join your information back together into reports. It's not usually hard but it's one more thing to learn.
One question: do you want to record history of member name changes, address changes, loan details, and so on? Maybe you're accomplishing this by storing the old report files.
Oh, and you asked about redundant data. No you don't end up with member data duplicated if you go with a multiple table design. The opposite is more likely to be true: In any larger database project you can definitely end up with duplicated data if you go with a single table!
Well you can have a number of tables using a Mem_ID field as a foreign key, but they'd all refer to a single Members table. The Mem_ID field itself is an integer and you wouldn't worry about the size of your foreign key fields. Having a logical, clean design and consistent data should be more of a focus.
Is that what you're asking about duplication of data? Maybe you can explain your concern more, as I don't think I'm quite understanding your question.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Andrew Crowe |
last post by:
Hi guys,
I have a table currently set up like this:
<- ->
video
------
video_id
|
by: Good Man |
last post by:
Hi there
I'm in the planning stages of creating a database, and I have two options
here. Which makes more sense, and/or provides better performance for
queries - a single table with hundreds of...
|
by: narayana |
last post by:
how to know about how many tables i created in that database.if the
database is connected to many users.
i want the query in this way that i want creater,number of
tables,time,updates .
the...
|
by: Dirk Olbertz |
last post by:
Hi there,
I'm currently about to redesign a database which you could compare with a
database for managing a library. Now this solution will not only manage one
library, but 100 to 500 of them....
|
by: Daniel Wetzler |
last post by:
Hi Sqlserver experts,
I use the SQL Server enterprise manager of MSSQL 2000 regularly.
I'm often annoyed by the automatic blanking of the table views.
If this happens then mostly with the hint...
|
by: Emin |
last post by:
Dear experts,
If I have a number of related groups of data (e.g., stock prices for
different stocks) is it better to put them into many tables (e.g., one
table per stock) or into one big table...
|
by: Troels Arvin |
last post by:
Hello,
Every so often, I'm asked to help people recover data from tables that
were either dropped or where to much data was DELETEed.
The complications related to restoring data are a problem....
|
by: zoro25 |
last post by:
Hi,
Maybe my question is dumb, but I'm not sure what is the best approach. I need to build a report and the data is stored in many tables and queries (8 or 9) and I'm wondering if I should build...
|
by: davec4 |
last post by:
I am a new Access use and need to concatenate (UNION) many tables. I am currently doing it "by hand":
SELECT *
FROM
UNION SELECT * FROM ;
UNION SELECT * FROM ;
.....
UNION SELECT * FROM...
|
by: TheServant |
last post by:
Hi everybody,
I posted a similar question about 6~12 months ago with no definate answer, so I will give it another go, as the choice has popped up again in my programming life:
If the number of...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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...
|
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,...
|
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...
|
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: 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,...
| |