# database design help

**URL:** <https://forums.percona.com/t/database-design-help/943>\
**Category:** Other MySQL® Questions\
**Created:** [September 25, 2008, 5:51am UTC](https://forums.percona.com/t/database-design-help/943 "2008-09-25T05:51:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hifirock](https://avatars.discourse-cdn.com/v4/letter/h/ac91a4/32.png) [@hifirock](https://forums.percona.com/u/hifirock)\
**Post date:** [September 25, 2008, 5:51am UTC](https://forums.percona.com/t/database-design-help/943/1 "2008-09-25T05:51:15Z")

</div>

Hi,

I am planning to design a database with 8 tables with some columns to store the register information(Current Version is A). Also in future i am going to modify the register information (modified version of the register is version B) and store the data related to version B. Currently i am planning to query data related to version A but in future i am planning to query data related to version A as well as B from the database. Can anyone please help me to design the database with the revision control.? How can i get the information from database related to Revision A or revision B?

---

<div class="post-metadata">

**Author:** ![nluv4hs](https://avatars.discourse-cdn.com/v4/letter/n/0ea827/32.png) [@nluv4hs](https://forums.percona.com/u/nluv4hs)\
**Post date:** [September 25, 2008, 12:38pm UTC](https://forums.percona.com/t/database-design-help/943/2 "2008-09-25T12:38:56Z")

</div>

Use columns with type set. e.g.

mysql\> create table example (`version` set (‘a’,‘b’) not null default ‘a’, index (`version`)) engine=innodb;mysql\> describe example;±--------±-------------±-----±----±--------±------+| Field | Type | Null | Key | Default | Extra |±--------±-------------±-----±----±--------±------+| version | set(‘a’,‘b’) | NO | MUL | a | |±--------±-------------±-----±----±--------±------+1 row in set (0.00 sec)

That way a particular “feature” can belong to version A, version B or both.
