Advertisement

07.02.2007 at 12:00AM PDT, ID: 22669984
[x]
Attachment Details

how to eliminate duplicates from a multi-column query

Asked by WmRichard in SQLBase, PL / SQL

Tags: eliminate, duplicates, query, column

How does one eliminate duplicate rows from a query?

 One of the columns has many duplicate values. I require to pull all the table A rows with the exception of Table A's column col2 contains no duplicates. The actual table is around 15 million rows.

For example,
select  col1, col2, col3, col4 from table A (where col2 is distinct) --semi-psuedo codeStart Free Trial
[+][-]07.02.2007 at 12:41AM PDT, ID: 19401803

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.02.2007 at 01:36AM PDT, ID: 19401981

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.02.2007 at 02:38AM PDT, ID: 19402172

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.02.2007 at 06:09AM PDT, ID: 19403048

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.02.2007 at 08:13AM PDT, ID: 19404154

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.02.2007 at 08:30AM PDT, ID: 19404314

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQLBase, PL / SQL
Tags: eliminate, duplicates, query, column
Sign Up Now!
Solution Provided By: jwahl
Participating Experts: 4
Solution Grade: A
 
 
[+][-]07.02.2007 at 08:41AM PDT, ID: 19404444

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.02.2007 at 09:21AM PDT, ID: 19404787

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32