The Database Design Resource Center

relationships - that doesn't hurt

by john
(skip)

A huge company, a huge and terribly expensive system. About 300 tables in db wihout any relationships. They were substituted by triggers. Nice?

Comments for
relationships - that doesn't hurt

Average Rating starstarstarstarstar

Click here to add your own comments

Oct 03, 2009
Rating
starstarstar
To be fair
by: Will

To be fair not many DBMSs supported declarative foreign key constraints before the 90s - but some did support triggers before then.

So it might be expected that older systems may not have foreign key constraints in place.

If this is the case then I would say implementing the constraints in triggers (rather than in application code) was the right thing to do at the time.

However it would make sense today to replace the trigger implementation of the foreign key constraints with declarative constraints.

That being said, the support for declarative constraints in SQL is still far from adequate and you still have to do far more in triggers than would be ideal.


Sep 27, 2009
Rating
starstarstarstarstar
They may be don't really crazy that you think
by: Anonymous

Some kind of people usually don't like relation ship. Relation ship is not good as you think.
example. if you querry db with a db have many many relation ship table. it will be slow down. but when insert or update, it really faster and easy mantain. So, according your goal. design your db correct.
this is my idea

Dec 19, 2007
Rating
starstarstarstarstar
Misunderstood
by: Anonymous

Yes, that's how unexperienced designers misunderstand the built in powers of the DB. Crazy story though; I wonder what made them do that...

Click here to add your own comments

Join in and write your own page! It's easy to do. How?
Simply click here to return to Worst Database Design Experience



Interview with
Donald Burleson

Interview with
Steven Feuerstein


What visitors say...

"I just stumbled accross your site looking for some normalization theory and I have to say it is fantastic.

I have been in the database field for 10+ years and I have never before come across such a useful site. Thank you for taking the time to put this site together."

Mike, USA

Read more Testimonials

Free eBook

Subscribe to my newsletter and get my ebook on Entity Relationship Modeling Principles as a free gift:


Workshop

On rare occasions, I may perform a Database Design Workshop . Unfortunately, I am currently unable to, but maybe later...

Influence me

Influence the content on this site: I want to know what database information you need the most: Participate in my Database Design Content investigation. I would appreciate it if you took the time...

Database Normalization eBook:


Database Normalization eBook


XML RSS
Add to My Yahoo!
Add to My MSN
Add to Google


Site Build It!

ADD TO YOUR SOCIAL BOOKMARKS: add to BlinkBlink add to Del.icio.usDel.icio.us add to DiggDigg
add to FurlFurl add to GoogleGoogle add to SimpySimpy add to SpurlSpurl Bookmark at TechnoratiTechnorati add to YahooY! MyWeb

Copyright © 2004-2010 www.databasedesign-resource.com / Alf A. Pedersen
All rights reserved.
All information contained on this website is for informational purposes only.
*Disclaimer: www.databasedesign-resource.com does not warrant any company, product, service or any content contained herein.

Return to top

Copyright acknowledgement note:

The name Oracle is a trademark of Oracle Corporation.
The names MS Access/MS SQL Server are trademarks of Microsoft Corporation.
Any other names used on this website may be trademarks of their respective owners, which I fully respect.