SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Dec 2009
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    table design issue

    I have an web application. User wants to do the following task every year in the web interface.

    (i) save / submit data any number of times for multiple records in a given year in the UI.
    (ii) approve all records once in a year in the UI..... once approved records user can not modify.



    my issue:
    ---------


    Should I make two tables ? one for save/submit for multiple records entered by user and other for approve user ?

    OR

    Should I make one table ? save/submit/approve for multiple records all in one table ?

    OR

    how do I design my table to do this ?

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,250
    Mentioned
    59 Post(s)
    Tagged
    3 Thread(s)
    i would use two tables, where the "approved" table has one row, one column
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  3. #3
    SitePoint Enthusiast rajeev13's Avatar
    Join Date
    Nov 2012
    Location
    New Delhi,India
    Posts
    35
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by r937 View Post
    i would use two tables, where the "approved" table has one row, one column
    i like to use a column in "approved" with 0 or 1 in the first table.it be easier to query about.


Bookmarks

Posting Permissions

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