Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> Selecting
Hi,
Say I have a table setup like the following:
Category Subcategory
USA AZ USA CA
Is there a way to select the category only once and then get the list of subcategories with it? Right now I'm using select distinct category, subcategory from X, but am getting USA multiple times like
USA CA USA AZ
USA CA AZ