order by 2 columns and nulls last - sql 2000

I want the query to returns the values in a specified order.
I want order by modified date first, then created date....easy enough right?
order by modified_date, created_date

The problem is, that in the modified date is not always filled in, so its null, so when I do the above query, the nulls are listed first in the results..but I want records with value in that field to be shown first..then sorted by the second column of created_date....then the null fields for modified_date are shown after that...

is this possible?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

use COALESCE(modified_date,"9999-12-12") in order by

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
solraccheffyAuthor Commented:
Server: Msg 207, Level 16, State 3, Line 1
Invalid column name '9999-12-12'.
solraccheffyAuthor Commented:
ok, nevermind that last post, just a quotes issue...

but how do I incorporate time as well, I want correct order based on the time of day as well...

please advise.
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

solraccheffyAuthor Commented:
was really hoping to hear back on this....the date part is ordering correctly but the time is not....how do I get it so the time portion of the date is included in the order by
order by CAST('modified_date' AS datetime)
Parth MalhanPrincipal EngineerCommented:
you can use order by modified_date, created_date desc
solraccheffyAuthor Commented:
Angell your idea sounds fine - sorry I didnt get back to this question.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.