tags:

views:

28

answers:

3

i have the following mysql table....

-----------------------
id customer_name date 
-----------------------

now let me know the query with which i will able to show data Order by alphabeticaly...

where values of customer_fields are like testkhan, rafae, ibrahm and i want to show them as

ibrahm
rafae
testkhan

+5  A: 
… ORDER BY some_column 
David Dorward
+1  A: 

I think you're looking for something like this, assuming the table name is 'Customers' and you want to order by customer_name descending:

SELECT *
FROM Customers
ORDER BY customer_name
Robert Hui
A: 
SELECT customer_name 
FROM Customers
ORDER BY customer_name ASC
Taz