Click here to Skip to main content
15,891,713 members
Home / Discussions / Database
   

Database

 
AnswerRe: UDF's in Stored Procedures (not using)... Pin
Mycroft Holmes21-Nov-08 23:20
professionalMycroft Holmes21-Nov-08 23:20 
GeneralRe: UDF's in Stored Procedures (not using)... Pin
Wendelius21-Nov-08 23:58
mentorWendelius21-Nov-08 23:58 
GeneralRe: UDF's in Stored Procedures (not using)... Pin
Ben Fair25-Nov-08 4:16
Ben Fair25-Nov-08 4:16 
QuestionKeeping track of Pin
CodingYoshi21-Nov-08 9:16
CodingYoshi21-Nov-08 9:16 
AnswerRe: Keeping track of Pin
Mycroft Holmes21-Nov-08 13:06
professionalMycroft Holmes21-Nov-08 13:06 
AnswerFunction for Status Pin
David Mujica21-Nov-08 13:39
David Mujica21-Nov-08 13:39 
GeneralRe: Function for Status Pin
Mycroft Holmes21-Nov-08 23:12
professionalMycroft Holmes21-Nov-08 23:12 
AnswerRe: Keeping track of Pin
Wendelius21-Nov-08 23:43
mentorWendelius21-Nov-08 23:43 
I would keep the data in few entities and implement the logic in an UDF. Something like:
- Homework: name, target date etc
- Assignment: student, return date, possibly new target date if it's allowed to get more time etc
- parameter table: category name (always, sometimes etc), min difference between target date, max difference between target date and so on

Then I would add a computed column on assignment which calculates the difference between return and target date. After that I would implement the UDF which defines the logic how you want to categorize the student (based on his/hers assignments and their calculated differences.

This logic could be parameterized with more parameter tables if you want.

The need to optimize rises from a bad design.

My articles[^]

Questionconvert from MSAccess to Oracle Pin
sajid.salim.khan21-Nov-08 5:46
sajid.salim.khan21-Nov-08 5:46 
AnswerRe: convert from MSAccess to Oracle Pin
David Mujica21-Nov-08 6:01
David Mujica21-Nov-08 6:01 
GeneralRe: convert from MSAccess to Oracle Pin
sajid.salim.khan21-Nov-08 6:15
sajid.salim.khan21-Nov-08 6:15 
QuestionImport excel to Sql server Pin
Abhilash121-Nov-08 3:02
Abhilash121-Nov-08 3:02 
AnswerRe: Import excel to Sql server Pin
indian14321-Nov-08 3:20
indian14321-Nov-08 3:20 
AnswerRe: Import excel to Sql server Pin
indian14321-Nov-08 8:23
indian14321-Nov-08 8:23 
AnswerRe: Import excel to Sql server Pin
Jerry Hammond21-Nov-08 14:06
Jerry Hammond21-Nov-08 14:06 
AnswerRe: Import excel to Sql server Pin
Wendelius21-Nov-08 22:19
mentorWendelius21-Nov-08 22:19 
AnswerRe: Import excel to Sql server Pin
indian14324-Nov-08 0:43
indian14324-Nov-08 0:43 
GeneralRe: Import excel to Sql server Pin
Wendelius24-Nov-08 3:38
mentorWendelius24-Nov-08 3:38 
QuestionHow to identify if an SQL query times out [modified] Pin
indian14321-Nov-08 1:31
indian14321-Nov-08 1:31 
AnswerRe: How to identify if an SQL query times out Pin
Wendelius21-Nov-08 6:24
mentorWendelius21-Nov-08 6:24 
GeneralRe: How to identify if an SQL query times out Pin
indian14321-Nov-08 7:54
indian14321-Nov-08 7:54 
GeneralRe: How to identify if an SQL query times out Pin
Wendelius22-Nov-08 22:36
mentorWendelius22-Nov-08 22:36 
GeneralRe: How to identify if an SQL query times out Pin
indian14324-Nov-08 0:24
indian14324-Nov-08 0:24 
GeneralRe: How to identify if an SQL query times out Pin
Wendelius24-Nov-08 1:54
mentorWendelius24-Nov-08 1:54 
AnswerRe: How to identify if an SQL query times out Pin
Mycroft Holmes21-Nov-08 13:11
professionalMycroft Holmes21-Nov-08 13:11 

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.