Link to home
Start Free TrialLog in
Avatar of fpoyavo
fpoyavoFlag for United States of America

asked on

Grouping

Hi Experts,

I have table  A with columns COL1, COL2, COL3 AND table B with COL4, COL5
I do join and get nice result. The only problem is that on my display I have duplicates (which seems that way to user but they are not).
I would use Group By to make sure user sees only once that data. Example:

col1       col2       col3            col4     col5
 
00001   nice        01/01/03      t        b
00001   nice        02/02/03      n       z
00001   nice        03/03/03      s       y

So col1 and col2 are not looking great. How do make it look like

col1       col2       col3            col4     col5
 
00001   nice        01/01/03      t        b
                         02/02/03      n       z
                         03/03/03      s       y

I was trying to use group by but it returned only one row (the last one).

Thank you.






Avatar of Brian Crowe
Brian Crowe
Flag of United States of America image

obviously col3 is a date field.  What are you trying to group on? the month? year?  Otherwise i don't see the problem with the data.
ASKER CERTIFIED SOLUTION
Avatar of JesterToo
JesterToo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial