Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extract one of each kind

Status
Not open for further replies.

curvv

IS-IT--Management
Jan 11, 2001
103
ZA
Hi,

Say I've got in a db:

a
a
b
c
c
c
d

How do I display only:
a
b
c
d

thanx ######## CtN ########
 
hi
try this
$query = "select DISTINCT columname from tablename";

that will pick up no duplicate rows from the table.

 
Thanx alot. ######## CtN ########
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top