Click here to Skip to main content
15,888,257 members
Home / Discussions / C#
   

C#

 
AnswerRe: website performance Pin
J4amieC6-Feb-12 1:51
J4amieC6-Feb-12 1:51 
GeneralRe: website performance Pin
IMQ6-Feb-12 20:38
IMQ6-Feb-12 20:38 
AnswerRe: website performance Pin
Abhinav S6-Feb-12 2:38
Abhinav S6-Feb-12 2:38 
GeneralRe: website performance Pin
J4amieC6-Feb-12 3:27
J4amieC6-Feb-12 3:27 
AnswerRe: website performance Pin
OriginalGriff6-Feb-12 3:15
mveOriginalGriff6-Feb-12 3:15 
GeneralRe: website performance Pin
IMQ6-Feb-12 20:38
IMQ6-Feb-12 20:38 
GeneralRe: website performance Pin
OriginalGriff6-Feb-12 21:47
mveOriginalGriff6-Feb-12 21:47 
GeneralRe: website performance Pin
OriginalGriff6-Feb-12 22:57
mveOriginalGriff6-Feb-12 22:57 
"hi there, thanks a lot for reply to this question again.
i read ur answer so many times then it was cleared. your way of communication is quit difficult to understand for someone who is not English.
well can you please reply me again of below question.

i am really confused how to design the database for the below requirement. please read the requirement summary below and answer these question.

This is a wizard kind of data forms:
- at first page, I have a date range, that i am storing in database as datetime datatype "StartDate" & "EndDate"

- On the 2nd step. I am showing total_number_of_days

- On 3rd Step, I am showing both dates with total_number_of_days. Here I need a Grid filled with all the dates (days) between "StartDate" & "EndDate" with day name and day number.

- On 4th step I again have the dates with total_num_of_days, but here i also have date range selection. this section should be beteen the "StartDate" & "EndDate" stored previously.

- Now after selecting date range from 4th step, i need to show a tabular data with all the dates selected in 4th step.



I need to store some other related information on each step for each day.



Should I store all dates in a separate table? so that all related information can be connected properly by a foreign key relation.
otherwise If i will not store each day separately how can i make a relation between the day and the other related data?

eagerly waiting for your reply...
"


It's difficult to answer with a absolute "do it this way", but in general:
If you are storing the same information for different days, then you need a row for each day (and hence a new table), referencing back to your date range row. I would think from the info you have given that you need a table to hold the start and end date (but not to hold the number of days between - that can be calculated each time) and a table to hold each day's information, with a forieng key back to the start and end row ID.
If the information for a day consists of the same information types repeated, then that should have it's own table, referencing back to the Day table by a foreign key.

Try it on sheets of paper! Laugh | :laugh: You will see what I mean.
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water

GeneralRe: website performance Pin
IMQ6-Feb-12 23:28
IMQ6-Feb-12 23:28 
GeneralRe: website performance Pin
OriginalGriff6-Feb-12 23:45
mveOriginalGriff6-Feb-12 23:45 
GeneralRe: website performance Pin
IMQ6-Feb-12 23:55
IMQ6-Feb-12 23:55 
GeneralC#.Net Pin
Dnyanesh Wahiley5-Feb-12 18:13
Dnyanesh Wahiley5-Feb-12 18:13 
GeneralRe: C#.Net Pin
Abhinav S5-Feb-12 18:57
Abhinav S5-Feb-12 18:57 
GeneralRe: C#.Net Pin
OriginalGriff5-Feb-12 21:26
mveOriginalGriff5-Feb-12 21:26 
GeneralRe: C#.Net Pin
BillWoodruff6-Feb-12 10:01
professionalBillWoodruff6-Feb-12 10:01 
GeneralC#.Net Pin
Dnyanesh Wahiley7-Feb-12 5:21
Dnyanesh Wahiley7-Feb-12 5:21 
Questionrdlc - subreport ? C# 2010 Pin
Paramu19734-Feb-12 23:33
Paramu19734-Feb-12 23:33 
AnswerRe: rdlc - subreport ? C# 2010 Pin
thatraja5-Feb-12 4:56
professionalthatraja5-Feb-12 4:56 
GeneralRe: rdlc - subreport ? C# 2010 Pin
Paramu19736-Feb-12 18:27
Paramu19736-Feb-12 18:27 
Questionusing TPL in Com add in excel Pin
PozzaVecia4-Feb-12 20:32
PozzaVecia4-Feb-12 20:32 
QuestionGetting Windows Login/Logout Time Pin
AmbiguousName4-Feb-12 8:45
AmbiguousName4-Feb-12 8:45 
AnswerRe: Getting Windows Login/Logout Time Pin
Abhinav S4-Feb-12 21:22
Abhinav S4-Feb-12 21:22 
GeneralRe: Getting Windows Login/Logout Time Pin
AmbiguousName5-Feb-12 20:38
AmbiguousName5-Feb-12 20:38 
GeneralRe: Getting Windows Login/Logout Time Pin
Abhinav S5-Feb-12 21:42
Abhinav S5-Feb-12 21:42 
QuestionGetting Max of an attribute value from Entity Collection Pin
indian1433-Feb-12 8:52
indian1433-Feb-12 8:52 

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

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