0
SQL Select problem
Enthusiast
,
/t5/dreamweaver-discussions/sql-select-problem/td-p/553102
May 07, 2007
May 07, 2007
Copy link to clipboard
Copied
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
Thanks.
Mat
TOPICS
Server side applications
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
LATEST
/t5/dreamweaver-discussions/sql-select-problem/m-p/553103#M142503
May 07, 2007
May 07, 2007
Copy link to clipboard
Copied
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
>
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
>
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

