Click here to Skip to main content
15,884,628 members
Home / Discussions / Database
   

Database

 
AnswerRe: design a database Pin
Luc Pattyn19-Feb-12 6:55
sitebuilderLuc Pattyn19-Feb-12 6:55 
GeneralRe: design a database Pin
messages19-Feb-12 17:22
messages19-Feb-12 17:22 
AnswerRe: design a database Pin
Mycroft Holmes19-Feb-12 12:08
professionalMycroft Holmes19-Feb-12 12:08 
GeneralRe: design a database Pin
messages19-Feb-12 17:21
messages19-Feb-12 17:21 
GeneralRe: design a database Pin
Mycroft Holmes19-Feb-12 17:27
professionalMycroft Holmes19-Feb-12 17:27 
GeneralRe: design a database Pin
messages19-Feb-12 19:40
messages19-Feb-12 19:40 
GeneralRe: design a database Pin
Mycroft Holmes19-Feb-12 20:03
professionalMycroft Holmes19-Feb-12 20:03 
GeneralRe: design a database Pin
messages20-Feb-12 0:54
messages20-Feb-12 0:54 
Hi again
I have made this schema,is this correct(its my first question)

LogIn table
user_name(primary key) password AuthorID(Foreign key) PublisherID(foreign key)


Publishers table
publisherID(primark key) publisher name phone address (and other fields)



Authors table
AuthorID(primary key) Author name phone address publisherID(Foreign key) (and other fields)


Books Table
BookID(primary key) Book name Year Title (and other fields)



and its my second question I thought to make this table for AuthorBook

AuthorBook table
AuthorBookID(primary key) AuthorID(Foreign key) BookID(Foreign key)

Do I need to Foreign key in Authors table or Book tables?
Thanks
GeneralRe: design a database Pin
Jörgen Andersson20-Feb-12 3:02
professionalJörgen Andersson20-Feb-12 3:02 
GeneralRe: design a database Pin
messages20-Feb-12 3:20
messages20-Feb-12 3:20 
GeneralRe: design a database Pin
Jörgen Andersson20-Feb-12 3:34
professionalJörgen Andersson20-Feb-12 3:34 
AnswerRe: design a database Pin
smcnulty20005-Mar-12 22:03
smcnulty20005-Mar-12 22:03 
QuestionFinding the Max value per group. Pin
Clark Kent12317-Feb-12 5:47
professionalClark Kent12317-Feb-12 5:47 
AnswerRe: Finding the Max value per group. Pin
scottgp17-Feb-12 8:19
professionalscottgp17-Feb-12 8:19 
GeneralRe: Finding the Max value per group. Pin
Corporal Agarn17-Feb-12 8:36
professionalCorporal Agarn17-Feb-12 8:36 
GeneralRe: Finding the Max value per group. Pin
Clark Kent12321-Feb-12 2:58
professionalClark Kent12321-Feb-12 2:58 
AnswerRe: Finding the Max value per group. Pin
Eddy Vluggen17-Feb-12 8:47
professionalEddy Vluggen17-Feb-12 8:47 
QuestionRe: Finding the Max value per group. Pin
Clark Kent12321-Feb-12 2:55
professionalClark Kent12321-Feb-12 2:55 
AnswerRe: Finding the Max value per group. Pin
Eddy Vluggen21-Feb-12 7:35
professionalEddy Vluggen21-Feb-12 7:35 
GeneralRe: Finding the Max value per group. Pin
Clark Kent12322-Feb-12 2:21
professionalClark Kent12322-Feb-12 2:21 
GeneralRe: Finding the Max value per group. Pin
Eddy Vluggen23-Feb-12 0:05
professionalEddy Vluggen23-Feb-12 0:05 
QuestionSSRS 2005 verses OUTLOOK 2007 Pin
SQL Ed17-Feb-12 1:00
SQL Ed17-Feb-12 1:00 
AnswerRe: SSRS 2005 verses OUTLOOK 2007 Pin
cjb1105-Apr-12 1:24
cjb1105-Apr-12 1:24 
Questionoracle 11g alias to query Pin
hadad14-Feb-12 22:28
hadad14-Feb-12 22:28 
AnswerRe: oracle 11g alias to query Pin
Jörgen Andersson15-Feb-12 1:37
professionalJörgen Andersson15-Feb-12 1:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.