
Database design?
I am creating a database for a kennel. That's what I Petid TABLE pet (key primary), name, sex, race, age, weight, CustID (Foreign Key) Customer Table CustID Customer table (primary key), name, address, phone. Pen & Table Petid CustID (Composite Primary Key) Petid (foreign key to the Customer Table) Pen ID (foreign key to table Pet) Apparently, my relationships are wrong, because the table pen is supposed to allow more than one pet. Any help would appericated.
Are you sure what you mean, on the table that you pen ID as foreign key to table pet? Is not this the animal identifier. Similarly, you have pet id as a foreign key to the customer table, it should be custid. CustomerID As you have it on the table pet as a foreign key, why do you need to be concatenated with petid on the table pen? This is denomalising data. TABLE I animal exactly as you except I would add that penida as a foreign key to table pen (Remember how a foreign key, it must have a value in the parent table or anywhere, so if the animal is not currently in a pen, this column may be null) Customer table just like you. Table Pen, pen ID primary key. Hope this helps. If I have something wrong, you can send me an email.
Tilta Dog Kennel by Design A Shed & Cubbies
|
|
Pet Tube Kennel … |
|
|
West Paw Design Nature Nap Dog Mat Perfect dreams start with the perfect bed. Made from soft and cozy fabric, our Nature Nap mats are where dreams begin. Unlike other mats on the market, our custom designed fabric has a poly-knit backing that interlocks the fibers to add strength and reduce shedding without sacrificing softness. Extra layer of padding is comprised of 50-percent recycled IntelliLoft fiber batting, which is carefully… |
|
|
COMFORT PILLOW TUBE LARGE $76.00 Pet Tube Comfort Pillow-Foam Pillow The Pet Tube Comfort Pillow is a dense foam pillow provides added comfort for your pet while traveling in the Pet Tube. The large comfort pillow comes in 2 pieces so that you can still use the large Pet Tube in its compact version…. |
|
|
Bernese Mountain Dog Sock by American Kennel Club Adult Socks Size 9-11 $10.99 … |
|
|
Kennel Design: The Essential Guide to Creating Your Perfect Kennels $62.98 … |
|
|
Barkitecture $5.99 From miniature chateaux to modernist boxes, from anthropomorphic abodes to classical temples, this humorous book showcases nearly 50 one-of-a-kind doggy domiciles from across America. Color illustrations…. |
|
|
Breed Apart: From the Collections of the American Kennel Club $44.97 This volume is a testament to our love for the dog, in all its guises, in conformation dog shows, field and obedience trials, in the sporting field and as a pet. It is also a testament to the many artists, some of whom were virtually forgotten until recently, who chose to use their insights and artistic skills to portray the dog on canvas, paper and in porcelain and bronze. Chronicled in this mo… |