Click here to Skip to main content
15,894,460 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello All,

I have Table Cities, I want to Select City-name as "--Select--" on the top and the cities in alphabetic order.

Thanks.
Posted
Updated 10-Mar-13 20:24pm
v2

1 solution

Hi
Try the following way.....
SQL
SELECT '1' 'CityCode', '---Select---' 'CityName'
UNION ALL
SELECT Code, Name
FROM sdfCity
ORDER BY Name 

Regards,
GVPrabu
 
Share this answer
 
Comments
Umashankar Yadav 11-Mar-13 6:08am    
Thanks.

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