Forum Moderators: coopster

Message Too Old, No Replies

remove repetitive queries

         

ayushchd

6:35 pm on Sep 7, 2007 (gmt 0)

10+ Year Member



I have in my databse suppose :

1. a
2. a
3. b
4. b
5. c
6. c

Can I execute a query that will return only a, b and c and not a, a, b , b, c, c

jatar_k

6:42 pm on Sep 7, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



SELECT DISTINCT columnname FROM tablename

ayushchd

6:53 pm on Sep 7, 2007 (gmt 0)

10+ Year Member



Thanks, it worked.