Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

SQL Select problem

Enthusiast ,
May 07, 2007 May 07, 2007
I need to be able to select all records in a table apart from the most last, recent entry; or possibly select it but hide it somehow. I can't think of a way to do this or what the SQL might be, can any body advise me please?

Thanks.

Mat
TOPICS
Server side applications
178
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 07, 2007 May 07, 2007
LATEST
Mat

I would think that the SQL would look something like this

Select * from tablename
Where ID < (Select Max(ID) as TopIP from Tablename as TableName_1)

--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"matthew stuart" <webforumsuser@macromedia.com> wrote in message
news:f1oiju$ra4$1@forums.macromedia.com...
>I need to be able to select all records in a table apart from the most
>last,
> recent entry; or possibly select it but hide it somehow. I can't think of
> a way
> to do this or what the SQL might be, can any body advise me please?
>
> Thanks.
>
> Mat
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines