0

I've a mysql table with the following data.

enter image description here

in the above image, some rows contains duplicate.

my question is how to find the repeated data in it?

For example : invoice_id = 19632, container duplicate data like BL No - NYKSMAAT20342300, Containers 3X40HC, 1X20GP and so on. 

Pls help.

1
  • you have all in one column. That is terrible. Can you change the table structure? Commented Dec 11, 2017 at 12:02

1 Answer 1

1

Simple you can use this query to get duplicate entry from table

SELECT narration, COUNT(*) count FROM table GROUP BY narration HAVING count > 1; 
Sign up to request clarification or add additional context in comments.

1 Comment

Actually i've data like Chennai,Mumbai,Kolkata,Chennai,Bombay,Delhi,Mumbai. In the above content, i need to find Chennai and Mumbai Repeated twice. Hope understand my situation. kindly help me.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.