I have this query 

```
Select Distinct field FROM some_table;

```

suppose

```
FIELD
_____
A
B
C
D
E

```

Now I need to obtain from the query above the Rowid.

I dont know how to include the before query.

```
SELECT rowid from (Select Distinct field FROM some_table /*???*/ );

ROWID
_____
1
2
3
4
5

```

The third step is show the content of FIELD, with the ROWID

```
Select value from (???) WHERE rowid= 3

VALUE
_____
C

```

**RESUME** I need to select the Row like results of Distinct Query.
`Input` '5' `Output` 'E'

Is it possible?