how to find the top 2 unique records using mysql

Solutions on MaxInterview for how to find the top 2 unique records using mysql by the best coders in the world

showing results for - "how to find the top 2 unique records using mysql"
Alice
26 Sep 2018
1mysql> insert into DemoTable1383 values(200,78);
2Query OK, 1 row affected (0.10 sec)
3mysql> insert into DemoTable1383 values(200,89);
4Query OK, 1 row affected (0.12 sec)
5mysql> insert into DemoTable1383 values(200,89);
6Query OK, 1 row affected (0.10 sec)
7mysql> insert into DemoTable1383 values(200,87);
8Query OK, 1 row affected (0.29 sec)
9mysql> insert into DemoTable1383 values(203,97);
10Query OK, 1 row affected (0.20 sec)
11mysql> insert into DemoTable1383 values(200,57);
12Query OK, 1 row affected (0.17 sec)
13insert into DemoTable1383 values(240,20);
14