I want an output like this table using db2...
NR TAG1 TAG2 someData1 someData2
=========================================
1 Class1 2015 11665456 862187687
1 Class1 2014 33254665 86221187687
1 Class1 2013 55557321 8687687787
2 Class2 2015 21654765 86822117687
2 Class2 2014 57658776 8632187687
2 Class2 2013 54878575 8682127687
now I trying but failing to write an SQL Code to have a Distinct on the first 3 rows.
When I try to get all data with (*) I get 865 records.
When I only take the first 3 rows and ignore the rest with distinct I get 808 records.
But I dont know how to show the rest of the data.