SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 Database Design and Application Architecture
 Design issue
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Liam32
Starting Member

1 Posts

Posted - 09/02/2013 :  10:07:49  Show Profile  Reply with Quote
Hi all,
I have been give a database but I unfortunately cannot modify the existing structure of the tables ( order from above ). we have to capture additional information that relates to an existing table. The system already has structures that look like entity attribute value tables. Reading various posts these are said to be not ideal. Therefore I was wondering if there is an alternative to them

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 09/02/2013 :  11:02:00  Show Profile  Reply with Quote
depends on whether the additional information can be generalized into consistent groups. if yes, you could add a attribute table having various columns. If they cant be generalised you need an extended table with EAV type values.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

LoztInSpace
Aged Yak Warrior

940 Posts

Posted - 09/03/2013 :  23:36:57  Show Profile  Reply with Quote
Can you add new tables? If so then just create a new table with the additional columns and a PK that links it back to the one it relates to. (I think this is what Visakh said).

Another option is to have an XML structure instead of EAV. That allows a certain amount of flexibility and query options. Personally I prefer it to EAV if I really, truly cannot put the correct columns in the correct tables.

Dumb rule though - your business changes but your systems cannot?!? How's that going to end?
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.17 seconds. Powered By: Snitz Forums 2000