Hello,
I have a table called Contacts. The table will have a firstname , lastname, and comments. it also needs to hold 1 or more phone numbers.
how do i do this ?
For example,
Table contact will have an entry for John Doe. He had a mobile phone and home phone and a work phone.
thanks.
I'm thinking this.. but it doesn't make sense though.
PSEUDOCODE:
create table contacts (
id auto-increment int
fname varchar
lname varchar
commetns varchar
)
create table phone {
id auto-increment int
number int
type varchar 'mobile, home, work
best time to call 'after 6
}
contacts_to_phones
(
id
contacts_id
phones_id
)