Jump to content

Order By Not Working Properly


Piyush
 Share

Recommended Posts

i have 2 columns. one is name and other is runs.i used this statementSELECT Name,Runs FROM Data ORDER BY Runsthe the first two row were correctly ordered but after that all other results were ordered by name..i don't know what is the error. Is there any alternative for this...

Link to comment
Share on other sites

What is the data type of the runs field, and what data are you storing? Is it a varchar field that you're storing numbers in?
oh! i was using access database so i didn't checked the datatypes..thanks..
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...