How can I get duplicate records of a product? I'm developing a site to sell video games online, I have a search bar to show the titles by entering their SKU, but I want to show them the games that have their duplicate. For example:
===================================================================
|| SEQJ || Nombre_Juego || Categoria_Juego || Cant_Disp || SKU ||
||=================================================================
|| 001 || gears_of_war || accion_disparos || 10 || 0123 ||
|| 001 || gears_of_war || accion_disparos || 20 || 0124 ||
|| 001 || gears_of_war || accion_disparos || 20 || 0125 ||
|| 002 || metal_gear_5 || sigilo_accion_a || 20 || 0126 ||
|| 002 || metal_gear_5 || sigilo_accion_a || 20 || 0127 ||
|| 002 || metal_gear_5 || sigilo_accion_a || 20 || 0128 ||
|| 003 || god_of_war_1 || accion_3_persona || 5 || 0129 ||
|| 003 || god_of_war_1 || accion_3_persona || 30 || 0131 ||
|| 003 || god_of_war_1 || accion_3_persona || 30 || 0132 ||
|| 005 || pro_evo_socc || deportes || 2 || 0134 ||
==================================================================
What I need is that when searching for the SKU of the product I bring all the products (for example, all gears of war) and not only the last value (in the example of gears_of_war with SKU 0125, but all gears_of_war )
Note: There are repeated, but I need you to bring me those repeated (when it is the case). Greetings.