Click here to Skip to main content
15,887,083 members
Home / Discussions / Database
   

Database

 
AnswerRe: How to Check Existing Record first then Insert otherwise update statement Pin
Tim Carmichael28-Oct-08 2:02
Tim Carmichael28-Oct-08 2:02 
QuestionCopying data in one table to specific fields in another table Pin
Member 365120927-Oct-08 1:22
Member 365120927-Oct-08 1:22 
AnswerRe: Copying data in one table to specific fields in another table Pin
Wendelius27-Oct-08 10:00
mentorWendelius27-Oct-08 10:00 
QuestionError:The cursor does not include the table being modified or the table is not updatable through the cursor Pin
V K 226-Oct-08 19:19
V K 226-Oct-08 19:19 
AnswerCross-post (3/3) Pin
Wendelius27-Oct-08 9:21
mentorWendelius27-Oct-08 9:21 
AnswerCP IGNORE THIS USER Pin
leckey27-Oct-08 10:00
leckey27-Oct-08 10:00 
QuestionProblem : Retrive Data with ref table Pin
Ahmed R El Bohoty26-Oct-08 1:14
Ahmed R El Bohoty26-Oct-08 1:14 
AnswerRe: Problem : Retrive Data with ref table Pin
Wendelius26-Oct-08 1:34
mentorWendelius26-Oct-08 1:34 
I'm not sure if I understood you correctly, but I think you have two choices.

1. when looping through rows, create a new object for category only when the primary key changes. Because you have joined the data when fetching, you will have the same category multiple times.

2. fetch categories and students separately.

The need to optimize rises from a bad design.

My articles[^]

QuestionRe: Problem : Retrive Data with ref table Pin
Ahmed R El Bohoty26-Oct-08 1:53
Ahmed R El Bohoty26-Oct-08 1:53 
AnswerRe: Problem : Retrive Data with ref table Pin
Wendelius26-Oct-08 2:06
mentorWendelius26-Oct-08 2:06 
GeneralRe: Problem : Retrive Data with ref table Pin
Ahmed R El Bohoty26-Oct-08 4:21
Ahmed R El Bohoty26-Oct-08 4:21 
GeneralRe: Problem : Retrive Data with ref table Pin
Wendelius26-Oct-08 5:28
mentorWendelius26-Oct-08 5:28 
GeneralRe: Problem : Retrive Data with ref table Pin
Ahmed R El Bohoty26-Oct-08 8:15
Ahmed R El Bohoty26-Oct-08 8:15 
GeneralRe: Problem : Retrive Data with ref table Pin
Wendelius26-Oct-08 8:23
mentorWendelius26-Oct-08 8:23 
GeneralRe: Problem : Retrive Data with ref table Pin
Ahmed R El Bohoty26-Oct-08 8:25
Ahmed R El Bohoty26-Oct-08 8:25 
GeneralRe: Problem : Retrive Data with ref table Pin
Wendelius26-Oct-08 8:33
mentorWendelius26-Oct-08 8:33 
GeneralRe: Problem : Retrive Data with ref table Pin
Ahmed R El Bohoty26-Oct-08 8:47
Ahmed R El Bohoty26-Oct-08 8:47 
GeneralRe: Problem : Retrive Data with ref table Pin
Wendelius26-Oct-08 10:59
mentorWendelius26-Oct-08 10:59 
GeneralRe: Problem : Retrive Data with ref table Pin
Ahmed R El Bohoty26-Oct-08 13:25
Ahmed R El Bohoty26-Oct-08 13:25 
GeneralRe: Problem : Retrive Data with ref table Pin
Wendelius27-Oct-08 9:10
mentorWendelius27-Oct-08 9:10 
AnswerRe: Problem : Retrive Data with ref table Pin
Rami Said Abd Alhalim27-Oct-08 2:20
Rami Said Abd Alhalim27-Oct-08 2:20 
GeneralRe: Problem : Retrive Data with ref table Pin
Ahmed R El Bohoty27-Oct-08 2:23
Ahmed R El Bohoty27-Oct-08 2:23 
GeneralRe: Problem : Retrive Data with ref table Pin
Rami Said Abd Alhalim27-Oct-08 3:13
Rami Said Abd Alhalim27-Oct-08 3:13 
GeneralRe: Problem : Retrive Data with ref table Pin
Ahmed R El Bohoty27-Oct-08 3:19
Ahmed R El Bohoty27-Oct-08 3:19 
QuestionMoving Data Between Tables Pin
Meysam Mahfouzi26-Oct-08 0:49
Meysam Mahfouzi26-Oct-08 0:49 

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.