Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Eliminating Duplicates in a table using SQL

Eliminating Duplicates in a table using SQL

From: Andersen Consultant <Jim_Fanning_at_WMG.COM>
Date: Thu, 18 Jan 1996 14:20:33 EST
Message-Id: <9601182205.AA28446@alice.jcc.com>


Hi everyone,
I'm creating a view off of an existing table. My table has 3 columns: item, location, and subordinate item. One item at one location can have multiple subordinate items. In creating my view, I want to select only the first instance that I come across i.e. I want to exclude more than one row with the same values for item and location. I really want to keep the value of the first subordinate item intact, so I don't want to select item, location,  min(subordinate) group by item, location. Besides, subordinate item is of type CHAR. Any suggestions? Received on Thu Jan 18 1996 - 17:05:30 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US