Viewing 9 posts - 76 through 84 (of 84 total)
Thank-you for your responses everyone. The last post made me realize that perhaps I am over complicating this. I am still curious to see how my original question could be...
December 8, 2011 at 1:03 am
Basically the LAST looks for the latest YearOfIncident once it has been ranked and keeps that record. In Oracle you need to keep the min. The query may look at...
December 7, 2011 at 7:46 am
I'm sorry to be such a pain, I tried this:
SELECT MIN (ClaCaseID)
FROM (
SELECT cc.ClaCaseID, RID= DENSE_RANK() OVER (ORDER BY rl.YearOfIncident DESC) ...
December 7, 2011 at 5:04 am
The code works but it doesn't return the individual ClaCaseID's, rather a single value. I tried to add a group by clause but that didn't help, neither did adding a...
December 7, 2011 at 3:34 am
I tried your code and still no luck:
Error message I receive is:
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near 'ClaCaseID'.
Msg 156, Level 15, State 1, Line 3
Incorrect syntax...
December 7, 2011 at 3:03 am
I received a date error so I fixed this error, it was the subtracting of two dates.
I then received the following error:
Msg 8120, Level 16, State 1, Line 1
Column...
December 7, 2011 at 2:20 am
Quick question: Can I mark this question as answered and add to the reputation of those that helped?
December 6, 2011 at 7:17 am
Thank-you everybody for your insight. ChrisM@Work your solution is exactly what I needed.
December 6, 2011 at 7:10 am
Sorry I really am a beginner:
So far I have managed to eliminate the milliseconds:
SELECT CAST(CURRENT_TIMESTAMP AS time(0))
Now I need it to round up or down to the closest hour. I...
December 6, 2011 at 6:45 am
Viewing 9 posts - 76 through 84 (of 84 total)