Database Design Question !!

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Database Design Question !!

    I currently have an member registration application written in asp which
    currently consists of :

    1) tblMemberOrders
    2) tblMembers.

    I am seriously contemplating merging these two table into one table
    (tblUser); to differentiate in the new
    table which are orders and which are confirmed members a status field would
    be employed.

    Does anyone have any ideas as to the pro's and con's of this approach and
    any personal recommendations.

    AK


    Adam Knight Guest

  2. Similar Questions and Discussions

    1. Reusable database design
      Joachim Zobel wrote: Check out your favourite bookstore for resources. Amazon also lists a few books: * Data Model Patterns: Conventions of...
    2. Database Design
      Hi All, I am a VB developer developing a new client server application using VB and Oracle 8i. Please help me in designing database table for...
    3. Database design confusion
      Hi Rekha, I think Anith's suggestion is good. I collected some more information for you. You can create indexed views only if you install SQL...
    4. Database Design Problem
      I've got a problem I need to solve where I have an item that can have one or more prices, but the item can be bought from one or more distributors...
    5. Database design/optimization question
      Hi, Refer this link for optimization and database design issue and solution. www.sql-server-performance.com Thanks , Amit
  3. #2

    Default Re: Database Design Question !!

    Adam Knight wrote:
    > I currently have an member registration application written in asp
    > which currently consists of :
    >
    > 1) tblMemberOrders
    > 2) tblMembers.
    >
    > I am seriously contemplating merging these two table into one table
    > (tblUser);
    What benefit would you gain?
    > to differentiate in the new
    > table which are orders and which are confirmed members a status field
    > would be employed.
    >
    > Does anyone have any ideas as to the pro's and con's of this approach
    Without seeing the data model - it's an impossible task.
    > and any personal recommendations.
    >
    Ensure you data is normalised.

    --
    William Tasso - [url]http://WilliamTasso.com[/url]


    William Tasso Guest

  4. #3

    Default Re: Database Design Question !!

    Model your entities and relationships in an ER diagram.

    Each Entity should be in its own table.

    From the sound of the tables you already have, it seems that they should be
    separate tables (members, and orders don't sound like the same type of
    "thing").

    That said, without some kind of information on *what* these entities are, I
    don't think we can recommand anything. Keep you data normalised was a good
    suggestion posted by William

    Cheers
    Ken

    "Adam Knight" <aj.knight@optusnet.com.au> wrote in message
    news:ePhK5hjYDHA.2344@TK2MSFTNGP09.phx.gbl...
    : I currently have an member registration application written in asp which
    : currently consists of :
    :
    : 1) tblMemberOrders
    : 2) tblMembers.
    :
    : I am seriously contemplating merging these two table into one table
    : (tblUser); to differentiate in the new
    : table which are orders and which are confirmed members a status field
    would
    : be employed.
    :
    : Does anyone have any ideas as to the pro's and con's of this approach and
    : any personal recommendations.
    :
    : AK
    :
    :


    Ken Schaefer Guest

  5. #4

    Default Re: Database Design Question !!

    This is what i am looking at doing:

    The user entity will consist of :
    cn.execute("CREATE TABLE Users (User_Id COUNTER CONSTRAINT PK_User PRIMARY KEY, User_Name TEXT(30) NULL,User_Password TEXT(30) NULL,

    User_Agreement TEXT(15) NULL,User_Listed TEXT(15) NULL,User_Type TEXT(30) NULL), User_Status TEXT(30) NULL")



    cn.execute("CREATE TABLE User_Contact (User_Contact_Id COUNTER CONSTRAINT PK_Contact PRIMARY KEY, User_Contact_Type TEXT(30) NULL,

    User_Contact_First_Name TEXT(60) NULL, User_Contact_Last_Name TEXT(60) NULL, User_Contact_Phone TEXT(15) NULL, User_Contact_Fax TEXT(15) NULL,

    User_Contact_Mobile TEXT(15) NULL, User_Contact_Email TEXT(60) NULL, User_Contact_Website TEXT(100) NULL, User_Contact_User INTEGER,

    User_Contact_Business INTEGER)")




    cn.execute("CREATE TABLE User_Location (User_Location_Id COUNTER CONSTRAINT PK_Location PRIMARY KEY, User_Location_Type TEXT(30) NULL,

    User_Location_Street TEXT(60) NULL, User_Location_Suburb TEXT(30) NULL, User_Location_State TEXT(8) NULL, User_Location_Post_Code TEXT(6) NULL,

    User_Location_User INTEGER,User_Location_Business INTEGER)")



    The User_Status Field dictates whether the user in pending or confirmed.

    Previously i had two tables practically identical which contained all the information above. Once a users membership was confirmed their
    details were place in the second table.



    AK



    Adam Knight Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139