Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Update statement
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Yak Posting Veteran

57 Posts

Posted - 10/15/2013 :  15:47:30  Show Profile  Reply with Quote
I have a table called products as follows

id product
10 X
11 Y
12 Z
14 P
17 Q
18 R

What is the update statement to run so that the table looks like

id product
1 P
2 R
3 Z
4 Q
5 Y
6 X

Almighty SQL Goddess

38200 Posts

Posted - 10/15/2013 :  15:56:29  Show Profile  Visit tkizer's Homepage  Reply with Quote
Could you explain in words how the products should be sorted by id?

Tara Kizer
SQL Server MVP since 2007
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000