Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to compare row by row

 
Baktha Elumalai
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have table Xydata i am getting gstime from the table



we want to compare the time hh, mm row by row (if the row is repeated delete the row else row is printed.
if row is repeated delete the one row
ouput


Final Output after compare row by row and delete duplicate row


i need this type of ouput

please help me if any body know the idea
 
Istvan Kovacs
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why don't you filter out duplicates at the SQL level using SELECT DISTINCT?
 
James Sabre
Ranch Hand
Posts: 781
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Istvan Kovacs wrote:Why don't you filter out duplicates at the SQL level using SELECT DISTINCT?


This has been suggested on at least one of his many cross posts (at least 5 to my knowledge) of this topic.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic