Click here to Skip to main content

Database

   

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
GeneralRe: design a database Pinmembermessages17:22 19 Feb '12  
AnswerRe: design a database PinmemberMycroft Holmes12:08 19 Feb '12  
GeneralRe: design a database Pinmembermessages17:21 19 Feb '12  
GeneralRe: design a database PinmemberMycroft Holmes17:27 19 Feb '12  
GeneralRe: design a database Pinmembermessages19:40 19 Feb '12  
GeneralRe: design a database PinmemberMycroft Holmes20:03 19 Feb '12  
GeneralRe: design a database Pinmembermessages0:54 20 Feb '12  
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 PinmemberJörgen Andersson3:02 20 Feb '12  
GeneralRe: design a database Pinmembermessages3:20 20 Feb '12  
GeneralRe: design a database PinmemberJörgen Andersson3:34 20 Feb '12  
AnswerRe: design a database Pinmembersmcnulty200022:03 5 Mar '12  
QuestionFinding the Max value per group. PinmemberClark Kent1235:47 17 Feb '12  
AnswerRe: Finding the Max value per group. Pinmemberscottgp8:19 17 Feb '12  
GeneralRe: Finding the Max value per group. Pinmemberdjj558:36 17 Feb '12  
GeneralRe: Finding the Max value per group. PinmemberClark Kent1232:58 21 Feb '12  
AnswerRe: Finding the Max value per group. PinmemberEddy Vluggen8:47 17 Feb '12  
QuestionRe: Finding the Max value per group. PinmemberClark Kent1232:55 21 Feb '12  
AnswerRe: Finding the Max value per group. PinmemberEddy Vluggen7:35 21 Feb '12  
GeneralRe: Finding the Max value per group. PinmemberClark Kent1232:21 22 Feb '12  
GeneralRe: Finding the Max value per group. PinmemberEddy Vluggen0:05 23 Feb '12  
QuestionSSRS 2005 verses OUTLOOK 2007 PinmemberSQL Ed1:00 17 Feb '12  
AnswerRe: SSRS 2005 verses OUTLOOK 2007 Pinmembercjb1101:24 5 Apr '12  
Questionoracle 11g alias to query [modified] Pinmemberhadad22:28 14 Feb '12  
AnswerRe: oracle 11g alias to query PinmemberJörgen Andersson1:37 15 Feb '12  
AnswerRe: oracle 11g alias to query PinmemberChris Meech3:00 15 Feb '12  

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

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


Advertise | Privacy | Mobile
Beta | 2.5.120517.1 | Last Updated 22 May 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid