Click here to Skip to main content
       

Database

 
GeneralRe: SQL Group By Question Pinmemberloyal ginger31-Dec-12 6:48 
QuestionIssues installing ODP.NETx64 Pinmembercpp_prgmer6-Dec-12 5:18 
AnswerRe: Issues installing ODP.NETx64 PinmemberEddy Vluggen6-Dec-12 15:37 
GeneralRe: Issues installing ODP.NETx64 PinmemberPeter_in_27806-Dec-12 16:12 
GeneralRe: Issues installing ODP.NETx64 PinmemberMycroft Holmes6-Dec-12 17:52 
AnswerRe: Issues installing ODP.NETx64 PinmemberMycroft Holmes6-Dec-12 17:53 
QuestionSQL Query - append results PinmemberAndreFratelli5-Dec-12 7:43 
AnswerRe: SQL Query - append results PinmemberChris Meech5-Dec-12 7:55 
GeneralRe: SQL Query - append results PinmemberAndreFratelli5-Dec-12 8:08 
QuestionSQL 2008 Data Base Table Design suggestion PinmemberVishwaKL5-Dec-12 0:36 
AnswerRe: SQL 2008 Data Base Table Design suggestion PinmemberSimon_Whale5-Dec-12 0:43 
GeneralRe: SQL 2008 Data Base Table Design suggestion PinmemberVishwaKL5-Dec-12 0:47 
GeneralRe: SQL 2008 Data Base Table Design suggestion PinmemberSimon_Whale5-Dec-12 0:51 
AnswerRe: SQL 2008 Data Base Table Design suggestion PinmemberPIEBALDconsult5-Dec-12 4:56 
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.
Question[HELP] how to using array in my case? (Query & PHP) [modified] Pinmemberjimmy.suharry4-Dec-12 21:14 
AnswerRe: [HELP] how to using array in my case? (Query & PHP) PinmemberMycroft Holmes4-Dec-12 21:38 
GeneralRe: [HELP] how to using array in my case? (Query & PHP) Pinmemberjimmy.suharry4-Dec-12 21:56 
QuestionSQL query Date Sort Problem PinmemberAnirbanM 23-Dec-12 4:09 
AnswerRe: SQL query Date Sort Problem Pinmemberihoecken3-Dec-12 5:42 
GeneralRe: SQL query Date Sort Problem PinmemberAnirbanM 23-Dec-12 19:46 
AnswerRe: SQL query Date Sort Problem PinmemberEddy Vluggen3-Dec-12 6:20 
GeneralRe: SQL query Date Sort Problem PinmemberAnirbanM 23-Dec-12 19:48 
GeneralRe: SQL query Date Sort Problem PinmemberEddy Vluggen4-Dec-12 0:00 
AnswerRe: SQL query Date Sort Problem Pinmemberdjj553-Dec-12 6:46 
GeneralRe: SQL query Date Sort Problem PinmemberAnirbanM 23-Dec-12 20:12 
AnswerRe: SQL query Date Sort Problem PinmemberPIEBALDconsult3-Dec-12 9:50 
GeneralRe: SQL query Date Sort Problem PinmemberMycroft Holmes3-Dec-12 14:12 
GeneralRe: SQL query Date Sort Problem PinmemberPIEBALDconsult3-Dec-12 14:18 
GeneralRe: SQL query Date Sort Problem PinmemberMycroft Holmes3-Dec-12 17:18 
GeneralRe: SQL query Date Sort Problem PinmemberPIEBALDconsult3-Dec-12 18:29 
GeneralRe: SQL query Date Sort Problem PinmemberAnirbanM 23-Dec-12 19:57 
GeneralRe: SQL query Date Sort Problem PinmemberAnirbanM 23-Dec-12 19:52 
AnswerRe: SQL query Date Sort Problem PinmemberMycroft Holmes3-Dec-12 17:24 
GeneralRe: SQL query Date Sort Problem PinmemberPIEBALDconsult3-Dec-12 18:28 
GeneralRe: SQL query Date Sort Problem PinmemberAnirbanM 23-Dec-12 20:07 
GeneralRe: SQL query Date Sort Problem PinmemberAnirbanM 23-Dec-12 20:10 
GeneralRe: SQL query Date Sort Problem PinmemberMycroft Holmes3-Dec-12 20:48 
GeneralRe: SQL query Date Sort Problem PinmemberAnirbanM 24-Dec-12 3:12 
GeneralRe: SQL query Date Sort Problem PinmemberAnirbanM 24-Dec-12 3:30 
GeneralRe: SQL query Date Sort Problem PinmemberEddy Vluggen4-Dec-12 4:12 
GeneralRe: SQL query Date Sort Problem PinmemberAnirbanM 24-Dec-12 4:27 
GeneralRe: SQL query Date Sort Problem PinmemberEddy Vluggen4-Dec-12 5:44 
AnswerRe: SQL query Date Sort Problem PinmemberMichael Potter4-Dec-12 9:11 
AnswerRe: SQL query Date Sort Problem Pinmemberjschell4-Dec-12 9:23 
Questionoltp vs olap Pinmembera.fatemeh2-Dec-12 11:51 
AnswerRe: oltp vs olap PinmemberMycroft Holmes2-Dec-12 12:49 
GeneralRe: oltp vs olap Pinmembera.fatemeh2-Dec-12 12:57 
GeneralRe: oltp vs olap PinmemberMycroft Holmes2-Dec-12 14:28 
GeneralRe: oltp vs olap Pinmembera.fatemeh2-Dec-12 14:41 
GeneralSQL instance name when using network group PinmemberAamir Saleem2-Dec-12 11:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.141223.1 | Last Updated 21 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid