How do i achieve this result in MysQL with a single Query
i want to count how many times the code is repeated in each query without the last 3 letters. The capital letters in the code column is what i need. IDs Code 58112 DFGH dds 25554 JIIK sdf 58112 ABCD…