Click here to Skip to main content
11,487,406 members (69,993 online)
   

ASP.NET

 
QuestionRe: problem with intelligencia.urlrewriter Pin
ryanb3126-Feb-13 11:35
memberryanb3126-Feb-13 11:35 
AnswerRe: problem with intelligencia.urlrewriter Pin
C#Programmer201226-Feb-13 18:48
memberC#Programmer201226-Feb-13 18:48 
QuestionMaintaining Array Data in an SQL Database. Pin
Bram van Kampen24-Feb-13 16:23
memberBram van Kampen24-Feb-13 16:23 
AnswerRe: Maintaining Array Data in an SQL Database. Pin
David Mujica25-Feb-13 4:02
memberDavid Mujica25-Feb-13 4:02 
Yes, SQL can store the data you describe quite well.

Here are a few terms you may want to research:

1) Primary key
2) Foreign key
3) Transaction

Basically what you describe is a classic Master-detail relationship where the Order is the master and the Items are the details. You would define a primary key on the Order table which uniquely defines the order, then that primary key is used in the Items table as a foreign key (relating all of the Items back to the single Order).

When you do updates to the Order/Items, you will use a transaction which ensures that all of the updates across all of the records are performed consistently or not at all.

Hope this helps.
Cool | :cool:
Questionsaving and retrieving recent activities Pin
Jassim Rahma24-Feb-13 5:40
memberJassim Rahma24-Feb-13 5:40 
AnswerRe: saving and retrieving recent activities Pin
jkirkerx26-Feb-13 12:04
memberjkirkerx26-Feb-13 12:04 
Generalasp.net export to excel Pin
pppppsssss24-Feb-13 1:50
memberpppppsssss24-Feb-13 1:50 
GeneralRe: asp.net export to excel Pin
Sandeep Mewara24-Feb-13 2:18
mvpSandeep Mewara24-Feb-13 2:18 
AnswerRe: asp.net export to excel Pin
ryanb3126-Feb-13 11:37
memberryanb3126-Feb-13 11:37 
Questionhow to linbutton's text on another page button click event Pin
Member 870181323-Feb-13 3:56
memberMember 870181323-Feb-13 3:56 

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
Web01 | 2.8.150520.1 | Last Updated 25 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid