oracle10g - SQL query , How to select a generated field in GROUP BY -


I'm trying to select two things: customer_id and segment (based on some arguments), both of them Should be in the group

I tried to use without the surname (like giving it to the case ... END) but it failed because it has the MAX GROUP BY field area if I cut the maximum It also fails to compile it.

What should I do to keep this in mind?

I'm not sure that you have already " Why do I strongly believe that by removing the "group by" section from your query, you will get the information you expected.


Comments

Popular posts from this blog

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

c++ - Redefined variable in the other module -