Solved

SQL question (How to get the latest)

Posted on 2003-10-30
2
127 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

751 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