|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Hello there!
The contents of my table are
Project Names Status Date Changed Project 1 Proposed 03-03-2003 Project 2 Proposed 03-03-2003 Project 3 Proposed 03-03-2003 Project 4 Proposed 03-03-2003 Project 1 Ongoing 03-18-2003 Project 2 Denied 03-18-2003 Project 4 Finished 03-18-2007 I wanted to get the latest projects and their status by comparing the changed date of the project Names: Expected Output: Project Names Status Date Changed Project 3 Proposed 03-03-2003 Project 1 Ongoing 03-18-2003 Project 2 Denied 03-18-2003 Project 4 Finished 03-18-2007 How will i do it? Thanks in advance. |
|
#2
|
||||
|
||||
|
SELECT projectname, status FROM whatever ORDER datechanged DESC
Is that what you meant? |
![]() |
| Viewing: Dev Articles Community Forums > Databases > General SQL Development > Getting all the latest records on a table |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|