
August 2nd, 2005, 12:43 PM
|
|
Contributing User
|
|
Join Date: Jul 2005
Posts: 71
  
Time spent in forums: 16 h 6 m 11 sec
Reputation Power: 6
|
|
I figured it out.
Quote: | Originally Posted by firdouseqasim I have a question that I need some help on. I have 2 tables
------------------------
scorm
------------------------
scorm_id user_id
course_content_id
content_id
-----------------------
course_content
-----------------------
course_content_id
content_id
Now I want to identify the most recently created record for each user_id/course_content_id pair in the scorm table, and for that record set the content_id = course_content.content_id Where course_content.course_content_id = scorm.course_content_id. And for all the other records with the same user_id/course_content_id, set the content_id = 0. Please let me know if this is possible in SQL. Thank you. |
|