hi all
the problem is:
i am currently designing a system for a bank
just starting
there is a table "Accounts" with two attributes Account_number and Account_type
possible Account types are savings account, Credit account and Current account.
I also have got a table Current_account_details which will capture info about Overdraft_limit. this is applicable only for Current Accounts,
so what i want is only current account numbers to be placed in Current_account_details table
what i am going to do is make Account_number+Account_type as a composite/compound key, so that only accounts which are CURRENT to relate with Current_account_details table.
now what next? should i have the same two attributes in that Current_account_details table or just one attribute (Account_number) as a primary key is enough??? I guess having just Account_number will be ok, but not sure
any help will be appreciated
MySQL: Workbench: composite key/compound keyis it gonna work?
Автор scorpion_girl, 03.03.2010, 00:48
#2
Отправлено 04.03.2010, 00:34:07
plya menya zabanyat za latinicu..
davaite pozhivee.. ))) )
davaite pozhivee.. ))) )
MODERATORIAL [kornel]
Вы получили предупреждение о нарушении п. 2.2.5 Правил: http://vse.kz/index....c...&p=12191711
Вы получили предупреждение о нарушении п. 2.4 Правил: http://vse.kz/index....c...&p=12191711
Вы получили предупреждение о нарушении п. 2.4 Правил: http://vse.kz/index....c...&p=12191711
Количество пользователей, читающих эту тему: 1
пользователей: 0, неизвестных прохожих: 1, скрытых пользователей: 0