dbTalk Databases Forums  

how to design db

comp.databases.theory comp.databases.theory


Discuss how to design db in the comp.databases.theory forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ilochab
 
Posts: n/a

Default how to design db - 12-08-2008 , 11:42 AM






I'm using sqlite.

I need a DB that contains:
- a set of general tables
- a variable number of sets of users tables.

The first set is accessed by every-one.
Each of the users' set 'is identical in structure to the others,
but it is specific in content respect to the owner.

I can manage authentication through my application.
What I don't know how to do in a suitable way is the design of a group
of identical tables repeated for each user.

Could anyone help?
Thanks

Ciao, Licia.

Reply With Quote
  #2  
Old   
Bob Badour
 
Posts: n/a

Default Re: how to design db - 12-08-2008 , 01:02 PM






ilochab wrote:

Quote:
I'm using sqlite.

I need a DB that contains:
- a set of general tables
- a variable number of sets of users tables.

The first set is accessed by every-one.
Each of the users' set 'is identical in structure to the others,
but it is specific in content respect to the owner.

I can manage authentication through my application.
What I don't know how to do in a suitable way is the design of a group
of identical tables repeated for each user.
You don't. Any design that encodes data in table names that is readily
encoded in the values of the tables is a poor design.

For each set of identical tables, use a single table and use restrict to
limit what data individual users can manipulate.


Quote:
Could anyone help?
Thanks

Ciao, Licia.

Reply With Quote
  #3  
Old   
Bob Badour
 
Posts: n/a

Default Re: how to design db - 12-08-2008 , 01:02 PM



ilochab wrote:

Quote:
I'm using sqlite.

I need a DB that contains:
- a set of general tables
- a variable number of sets of users tables.

The first set is accessed by every-one.
Each of the users' set 'is identical in structure to the others,
but it is specific in content respect to the owner.

I can manage authentication through my application.
What I don't know how to do in a suitable way is the design of a group
of identical tables repeated for each user.
You don't. Any design that encodes data in table names that is readily
encoded in the values of the tables is a poor design.

For each set of identical tables, use a single table and use restrict to
limit what data individual users can manipulate.


Quote:
Could anyone help?
Thanks

Ciao, Licia.

Reply With Quote
  #4  
Old   
Bob Badour
 
Posts: n/a

Default Re: how to design db - 12-08-2008 , 01:02 PM



ilochab wrote:

Quote:
I'm using sqlite.

I need a DB that contains:
- a set of general tables
- a variable number of sets of users tables.

The first set is accessed by every-one.
Each of the users' set 'is identical in structure to the others,
but it is specific in content respect to the owner.

I can manage authentication through my application.
What I don't know how to do in a suitable way is the design of a group
of identical tables repeated for each user.
You don't. Any design that encodes data in table names that is readily
encoded in the values of the tables is a poor design.

For each set of identical tables, use a single table and use restrict to
limit what data individual users can manipulate.


Quote:
Could anyone help?
Thanks

Ciao, Licia.

Reply With Quote
  #5  
Old   
Bob Badour
 
Posts: n/a

Default Re: how to design db - 12-08-2008 , 01:02 PM



ilochab wrote:

Quote:
I'm using sqlite.

I need a DB that contains:
- a set of general tables
- a variable number of sets of users tables.

The first set is accessed by every-one.
Each of the users' set 'is identical in structure to the others,
but it is specific in content respect to the owner.

I can manage authentication through my application.
What I don't know how to do in a suitable way is the design of a group
of identical tables repeated for each user.
You don't. Any design that encodes data in table names that is readily
encoded in the values of the tables is a poor design.

For each set of identical tables, use a single table and use restrict to
limit what data individual users can manipulate.


Quote:
Could anyone help?
Thanks

Ciao, Licia.

Reply With Quote
  #6  
Old   
Bob Badour
 
Posts: n/a

Default Re: how to design db - 12-08-2008 , 01:02 PM



ilochab wrote:

Quote:
I'm using sqlite.

I need a DB that contains:
- a set of general tables
- a variable number of sets of users tables.

The first set is accessed by every-one.
Each of the users' set 'is identical in structure to the others,
but it is specific in content respect to the owner.

I can manage authentication through my application.
What I don't know how to do in a suitable way is the design of a group
of identical tables repeated for each user.
You don't. Any design that encodes data in table names that is readily
encoded in the values of the tables is a poor design.

For each set of identical tables, use a single table and use restrict to
limit what data individual users can manipulate.


Quote:
Could anyone help?
Thanks

Ciao, Licia.

Reply With Quote
  #7  
Old   
Bob Badour
 
Posts: n/a

Default Re: how to design db - 12-08-2008 , 01:02 PM



ilochab wrote:

Quote:
I'm using sqlite.

I need a DB that contains:
- a set of general tables
- a variable number of sets of users tables.

The first set is accessed by every-one.
Each of the users' set 'is identical in structure to the others,
but it is specific in content respect to the owner.

I can manage authentication through my application.
What I don't know how to do in a suitable way is the design of a group
of identical tables repeated for each user.
You don't. Any design that encodes data in table names that is readily
encoded in the values of the tables is a poor design.

For each set of identical tables, use a single table and use restrict to
limit what data individual users can manipulate.


Quote:
Could anyone help?
Thanks

Ciao, Licia.

Reply With Quote
  #8  
Old   
Bob Badour
 
Posts: n/a

Default Re: how to design db - 12-08-2008 , 01:02 PM



ilochab wrote:

Quote:
I'm using sqlite.

I need a DB that contains:
- a set of general tables
- a variable number of sets of users tables.

The first set is accessed by every-one.
Each of the users' set 'is identical in structure to the others,
but it is specific in content respect to the owner.

I can manage authentication through my application.
What I don't know how to do in a suitable way is the design of a group
of identical tables repeated for each user.
You don't. Any design that encodes data in table names that is readily
encoded in the values of the tables is a poor design.

For each set of identical tables, use a single table and use restrict to
limit what data individual users can manipulate.


Quote:
Could anyone help?
Thanks

Ciao, Licia.

Reply With Quote
  #9  
Old   
Bob Badour
 
Posts: n/a

Default Re: how to design db - 12-08-2008 , 01:02 PM



ilochab wrote:

Quote:
I'm using sqlite.

I need a DB that contains:
- a set of general tables
- a variable number of sets of users tables.

The first set is accessed by every-one.
Each of the users' set 'is identical in structure to the others,
but it is specific in content respect to the owner.

I can manage authentication through my application.
What I don't know how to do in a suitable way is the design of a group
of identical tables repeated for each user.
You don't. Any design that encodes data in table names that is readily
encoded in the values of the tables is a poor design.

For each set of identical tables, use a single table and use restrict to
limit what data individual users can manipulate.


Quote:
Could anyone help?
Thanks

Ciao, Licia.

Reply With Quote
  #10  
Old   
Bob Badour
 
Posts: n/a

Default Re: how to design db - 12-08-2008 , 01:02 PM



ilochab wrote:

Quote:
I'm using sqlite.

I need a DB that contains:
- a set of general tables
- a variable number of sets of users tables.

The first set is accessed by every-one.
Each of the users' set 'is identical in structure to the others,
but it is specific in content respect to the owner.

I can manage authentication through my application.
What I don't know how to do in a suitable way is the design of a group
of identical tables repeated for each user.
You don't. Any design that encodes data in table names that is readily
encoded in the values of the tables is a poor design.

For each set of identical tables, use a single table and use restrict to
limit what data individual users can manipulate.


Quote:
Could anyone help?
Thanks

Ciao, Licia.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.