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

Home -> Community -> Usenet -> c.d.o.misc -> Re: GROUP BY....but not on all columns

Re: GROUP BY....but not on all columns

From: Michel Cadot <micadot{at}altern{dot}org>
Date: Sat, 16 Jun 2007 22:41:48 +0200
Message-ID: <46744b0e$0$18144$426a34cc@news.free.fr>

<pankaj_wolfhunter_at_yahoo.co.in> a écrit dans le message de news: 1182022067.132225.271110_at_n15g2000prd.googlegroups.com...
| Greetings,
| I need to apply a group by in my query but not necessarily on all
| columns in select list.
|
| For eg:
|
| select col1, col2, col3, col4, col5
| from table_name
| group by col1, col2, col3, col4
|
| Now the requirement is to include all 5 columns but group by only
| first 4
|
| How can I achieve this? Any help would be appreciated.
|
| TIA
|

Instead of posting a wrong query
post your needs in functional terms.
What do you want?

Regards
Michel Cadot Received on Sat Jun 16 2007 - 15:41:48 CDT

Original text of this message

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