Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 25th, 2004, 04:58 AM
Authorized User
 
Join Date: Jul 2004
Location: Delhi, Delhi, India.
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default find maximum number

i want to find the maximum ID ,so what's the query.

abhinavjain
__________________
abhinavjain
Reply With Quote
  #2 (permalink)  
Old August 25th, 2004, 08:31 AM
Authorized User
 
Join Date: Jul 2004
Location: cleveland, oh, USA.
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default

select max(id) as maxid from table
Reply With Quote
  #3 (permalink)  
Old September 28th, 2004, 07:31 AM
Registered User
 
Join Date: Sep 2004
Location: new dehi, delhi, India.
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

what kind of ID, plz send me detailed question.

Reply With Quote
  #4 (permalink)  
Old September 28th, 2004, 07:40 AM
Friend of Wrox
 
Join Date: Sep 2004
Location: New Delhi, Dekhi, India.
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Anantsharma Send a message via Yahoo to Anantsharma
Default

Dhay1999 is correct if u want the maximum id (biggest Id) from a table. ur requierment may be something different then I ask the same question as Vishwastrivedi.

Good luck

B. Anant
Reply With Quote
  #5 (permalink)  
Old September 28th, 2004, 08:13 AM
Registered User
 
Join Date: Sep 2004
Location: delhi, delhi, India.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

the above answer is going to work but don't think this is ur problem so specify ur problem in detail


Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maximum number of cursors exceeded. zaheerabbas.sk Oracle 1 July 4th, 2008 04:41 AM
Maximum Number of Controls? Aaron Edwards Visual Studio 2005 0 March 3rd, 2007 06:04 PM
maximum number of prefixes? gumgak ASP.NET 1.0 and 1.1 Basics 5 February 13th, 2006 09:56 AM
record number maximum Jorge SQL Server 2000 3 December 3rd, 2004 12:00 PM
How to restrict the maximum number of possible sel lily611 General .NET 2 November 20th, 2004 01:11 AM



All times are GMT -4. The time now is 02:47 AM.


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