Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 1st, 2003, 12:57 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to life_s Ng Send a message via MSN to life_s Ng
Default select last few record..... pls help

hi, im not sure is there any sql statement that select last few latest record from database table, i think i was read this somewhere b4, but now i just cant found it again... do any1 can help? thanks

Regards
life's Ng

 
Old October 1st, 2003, 01:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

if u r using MS-SQL u can use:
Code:
SELECT TOP [N] *
FROM [Table]
ORDER BY [Field] DESC
Always:),
Hovik Melkomian.
 
Old October 1st, 2003, 01:31 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to life_s Ng Send a message via MSN to life_s Ng
Default

huh..... im using ms Access....

Regards
life's Ng

 
Old October 1st, 2003, 01:34 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to life_s Ng Send a message via MSN to life_s Ng
Default

hohoho thanks Mr. Hovik!!! it works in Ms access too!

Regards
life's Ng

 
Old October 1st, 2003, 01:36 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

I didnt know that! nice to hear that!
ur WELCOME.

Always:),
Hovik Melkomian.





Similar Threads
Thread Thread Starter Forum Replies Last Post
how to select the particular record? azymd777 ASP.NET 2.0 Professional 1 August 8th, 2008 05:55 AM
Select two MAX record per each veeruu SQL Language 2 January 23rd, 2006 12:57 AM
SELECT every fourth record rylemer Access 1 September 1st, 2004 05:06 AM
Select record after inserting it whyulil Classic ASP Databases 13 April 26th, 2004 06:05 AM
How to search for (and select) a record? Haroldd Access 2 June 30th, 2003 06:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.