Solved

SQL question (How to get the latest)

Posted on 2003-10-30
2
129 Views
Last Modified: 2010-05-03
Hi
   I have the following SQL and it returns many file names.
How do i get the one which has the latest creation_date which is a field
in the premade_zip_files table.

thanx

select file_id
from   premade_zip_files
where  file_name = 'blabla'
0
Comment
Question by:b3cf
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 48

Expert Comment

by:Mikal613
ID: 9652693
select TOP 1 file_id
from   premade_zip_files
where  file_name = 'blabla'  
ORDER BY  creation_date  
0
 
LVL 48

Accepted Solution

by:
Mikal613 earned 50 total points
ID: 9652708
select TOP 1 file_id
from   premade_zip_files
where  file_name = 'blabla'  
ORDER BY  creation_date  DESC
0

Featured Post

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month6 days, 21 hours left to enroll

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question