I have a order note table that looks like this:
ORDER  NOTE
10000  some notes
10000  another note
20000  a new note
30000  note 1
30000  note 2
I want to aggregate with one line per order followed by all related notes, like this:
ORDER  NOTES
10000  some notes, another note
20000  a new note
30000  note 1, note 2
Is there an SQL statement that can help me?
revision ---
database is IBM db/2, but would prefer SQL ANSI solution if it exists.
 
     
    