multiple results in query

G

Gurtz

Hello,

Is there a way to adjust a sql query so that it does not
return multiples? Or do I have to do this in code?

Thanks,
Gurtz
 
S

sam

In the sql try "distinct" after select so it would be:

SELECT DISTINCT mytable.[myfield] FROM mytable;
instead of
SELECT mytable.[myfield] FROM mytable;

or

right click in the query to show the query properties box
and make Unique values = yes

Hope this helps
 
S

sam

In the sql try "distinct" after select so it would be:

SELECT DISTINCT mytable.[myfield] FROM mytable;
instead of
SELECT mytable.[myfield] FROM mytable;

or

right click in the query to show the query properties box
and make Unique values = yes

Hope this helps
 
G

Gurtz

Thanks, that's perfect!
Gurtz
[email = no $]
-----Original Message-----
In the sql try "distinct" after select so it would be:

SELECT DISTINCT mytable.[myfield] FROM mytable;
instead of
SELECT mytable.[myfield] FROM mytable;

or

right click in the query to show the query properties box
and make Unique values = yes

Hope this helps
-----Original Message-----
Hello,

Is there a way to adjust a sql query so that it does not
return multiples? Or do I have to do this in code?

Thanks,
Gurtz
.
.
 
G

Gurtz

Thanks, that's perfect!
Gurtz
[email = no $]
-----Original Message-----
In the sql try "distinct" after select so it would be:

SELECT DISTINCT mytable.[myfield] FROM mytable;
instead of
SELECT mytable.[myfield] FROM mytable;

or

right click in the query to show the query properties box
and make Unique values = yes

Hope this helps
-----Original Message-----
Hello,

Is there a way to adjust a sql query so that it does not
return multiples? Or do I have to do this in code?

Thanks,
Gurtz
.
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top