Click here to Skip to main content
15,927,699 members
Home / Discussions / Database
   

Database

 
GeneralPlease help me: need sp4 Pin
Chak4-May-05 15:29
Chak4-May-05 15:29 
GeneralRe: Please help me: need sp4 Pin
Colin Angus Mackay4-May-05 19:37
Colin Angus Mackay4-May-05 19:37 
GeneralProb using Oracle 9i Pin
vishalmishra4-May-05 11:46
vishalmishra4-May-05 11:46 
GeneralRe: Prob using Oracle 9i Pin
Colin Angus Mackay4-May-05 12:00
Colin Angus Mackay4-May-05 12:00 
GeneralRe: Prob using Oracle 9i Pin
vishalmishra4-May-05 12:14
vishalmishra4-May-05 12:14 
GeneralNewbie GROUP BY question Pin
moredip4-May-05 11:01
moredip4-May-05 11:01 
GeneralRe: Newbie GROUP BY question Pin
Colin Angus Mackay4-May-05 11:36
Colin Angus Mackay4-May-05 11:36 
GeneralRe: Newbie GROUP BY question Pin
moredip4-May-05 11:50
moredip4-May-05 11:50 
Hi Colin,

Wow! Thanks for such a rapid and comprehensive reply, I really appreciate it.

I also appreciate your warning re: injection attacks. However, this project is for internal use with hardcoded input values, and will not be accessible in any way outside the machine it's run on. Famous last words? Well, if our security is so screwed that someone can access the script and modify the SQL statement then I can think of many easier ways for them to accomplish their evil ends. But I appreciate your concern!

I think I understand the SQL you gave. I was hoping that there was a way to do this without subqueries (they make my head hurt a little at times), but suspected that they would be necessary.

I think that the StudentID /is/ necessary in the main query. It's theoretically possible that two rows in the result set don't differ in ActivityID or WhenCompleted, but only by StudentID. Not likely, as it would involve two students completing the same activity within a second of each other (or whatever the resolution of DateTime is in SQL Server), but possible none the less.

Again, thanks a lot Colin, you've really helped me out here, and hopefully helped me learn a little so I don't ask the same question in a different form in 2 months time!

Cheers,

Pete
GeneralRe: Newbie GROUP BY question Pin
Colin Angus Mackay4-May-05 11:57
Colin Angus Mackay4-May-05 11:57 
GeneralRe: Newbie GROUP BY question Pin
moredip4-May-05 12:11
moredip4-May-05 12:11 
GeneralRe: Newbie GROUP BY question Pin
Colin Angus Mackay4-May-05 12:13
Colin Angus Mackay4-May-05 12:13 
GeneralAverage formula with SQL table Pin
Joey Picerno4-May-05 10:20
Joey Picerno4-May-05 10:20 
GeneralRe: Average formula with SQL table Pin
Colin Angus Mackay4-May-05 11:42
Colin Angus Mackay4-May-05 11:42 
GeneralRe: Average formula with SQL table Pin
Joey Picerno4-May-05 15:33
Joey Picerno4-May-05 15:33 
GeneralRe: Average formula with SQL table Pin
Joey Picerno4-May-05 15:45
Joey Picerno4-May-05 15:45 
GeneralRe: Average formula with SQL table Pin
Colin Angus Mackay4-May-05 19:33
Colin Angus Mackay4-May-05 19:33 
GeneralRe: Average formula with SQL table Pin
Joey Picerno5-May-05 3:51
Joey Picerno5-May-05 3:51 
GeneraltactDatagrid with VB.net and SQL Pin
gingesh4-May-05 8:35
gingesh4-May-05 8:35 
GeneralRe: tactDatagrid with VB.net and SQL Pin
keith maddox4-May-05 10:31
keith maddox4-May-05 10:31 
GeneralBulk Copy Tables from .net to sql Pin
Mtognetti4-May-05 4:51
Mtognetti4-May-05 4:51 
GeneralRe: Bulk Copy Tables from .net to sql Pin
MBGeorge4-May-05 20:45
MBGeorge4-May-05 20:45 
GeneralOracleHelper for testing Pin
Nizar Abdeljaoued4-May-05 4:17
Nizar Abdeljaoued4-May-05 4:17 
GeneralDumb Q: C++, a DB and regional settings Pin
CherezZaboro4-May-05 3:50
CherezZaboro4-May-05 3:50 
GeneralRe: Dumb Q: C++, a DB and regional settings Pin
Colin Angus Mackay4-May-05 4:14
Colin Angus Mackay4-May-05 4:14 
GeneralCreate table Pin
vuthaianh3-May-05 18:11
vuthaianh3-May-05 18: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.