Click here to Skip to main content
15,884,739 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI,



i want to display the records selected ID first and then remaining records should display


i.e, suppose i selected the id 100 i want to display the records which is having id as 100 in descending and after that i want to bind the remaining records i.e, which is not having id as 100
Posted
Comments
Abdulnazark 1-Mar-15 12:04pm    
is this work for you,

select * from yourtable where acid=100
union select * from yourtable where acid <>100

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900