using distinct in a single column to get multiple rows

From: <test_at_m.com>
Date: Mon, 19 Sep 2011 10:38:54 -0500
Message-ID: <98oe77t8r291mb9l2eeg3n0u9r3c2oqmcr_at_4ax.com>



Hi,

I need to get a unique column but I also need to return multiple rows.

Using the following doesn't work to get the unique last name since it gets all unique columns.

select unique userid, title, address
from myTable
where etc.........
order by userid

The userid will be returned multiple times because the other columns cause the row to be unique.

How do I get a unique userid while still returning the other rows.

Thanks!
Dave Received on Mon Sep 19 2011 - 10:38:54 CDT

Original text of this message