SQL Query

  • Thread starter Thread starter Vass
  • Start date Start date
V

Vass

can the group help please.

I have a database query, bringing in 2 databases linked by a single primary
key (in both db's)
however, when they are brought into excel, they appear linked fine accross
the columns however
every record is duplicated
So I have 2 rows for each item, with the same data
How do I remove the duplication, within the query rather that use
conditional formatting or some other method after
refreshing the worksheet?
Many thanks in advance.
 
Vass said:
can the group help please.

I have a database query, bringing in 2 databases linked by a single
primary key (in both db's)
however, when they are brought into excel, they appear linked fine accross
the columns however
every record is duplicated
So I have 2 rows for each item, with the same data
How do I remove the duplication, within the query rather that use
conditional formatting or some other method after
refreshing the worksheet?
Many thanks in advance.
S'ok, fixed it thanks
"select distinct * from <tablename>"
 

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

Back
Top