Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. SQL 2008 Data Base Table Design suggestion

SQL 2008 Data Base Table Design suggestion

Scheduled Pinned Locked Moved Database
databasedesignhelpquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VishwaKL
    wrote on last edited by
    #1

    Hi Guys, I have a problem to create data base. My requirement is like there are 4 different sites are there and every site has a common checklist to be checked and sites also have extra check list to checked with common check list, for this how i should create data base table.? Thanks in advance Vishwa

    S P 2 Replies Last reply
    0
    • V VishwaKL

      Hi Guys, I have a problem to create data base. My requirement is like there are 4 different sites are there and every site has a common checklist to be checked and sites also have extra check list to checked with common check list, for this how i should create data base table.? Thanks in advance Vishwa

      S Offline
      S Offline
      Simon_Whale
      wrote on last edited by
      #2

      From you brief description; I am assuming that you are using a central database. I see that you would need to create a site table (used to store the sites that will use the database) Checklist Template (list of things to check off) Checklist Completed table (a join table that links the site with the completed items from the template table)

      Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch

      V 1 Reply Last reply
      0
      • S Simon_Whale

        From you brief description; I am assuming that you are using a central database. I see that you would need to create a site table (used to store the sites that will use the database) Checklist Template (list of things to check off) Checklist Completed table (a join table that links the site with the completed items from the template table)

        Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch

        V Offline
        V Offline
        VishwaKL
        wrote on last edited by
        #3

        Thanks Simon that extra check list are not common to all sites so. how can i relate those points like which is required which is not for particular Site?

        S 1 Reply Last reply
        0
        • V VishwaKL

          Thanks Simon that extra check list are not common to all sites so. how can i relate those points like which is required which is not for particular Site?

          S Offline
          S Offline
          Simon_Whale
          wrote on last edited by
          #4

          well in the check list completed table (more than likely not a good name) you could record the todo item and a datetime completed? and the site that it is linked to.

          Lobster Thermidor aux crevettes with a Mornay sauce, served in a Provençale manner with shallots and aubergines, garnished with truffle pate, brandy and a fried egg on top and Spam - Monty Python Spam Sketch

          1 Reply Last reply
          0
          • V VishwaKL

            Hi Guys, I have a problem to create data base. My requirement is like there are 4 different sites are there and every site has a common checklist to be checked and sites also have extra check list to checked with common check list, for this how i should create data base table.? Thanks in advance Vishwa

            P Offline
            P Offline
            PIEBALDconsult
            wrote on last edited by
            #5

            Your description isn't clear enough, so here's a design that could be used for some interpretations of what you wrote. 0) There are several sites. 1) A check list has several check list items. 2) Each site has a check list with a subset of all available check list items. 3) Each check list item may be on several sites' check lists. This is a classic many-to-many relationship and the typical implementation is to have (at least) three tables: Site: ID, Name, etc. Item: ID, Name, etc. SiteList: SiteID, ItemID (usually no other data here, but maybe in some cases) Another schema would allow for defining lists and assigning them to sites: Site: ID, Name, etc. Item: ID, Name, etc. List: ID, Name, etc. ListItem: ListID, ItemID (usually no other data here, but maybe in some cases) SiteList: SiteID, ListID (usually no other data here, but maybe in some cases) This second way may be approriate for your needs, you can define a common list and custom lists and assign multiple lists to the sites. Getting a complete list of all items for a site is simple as well.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups