What is the method of deduplicating data in SQL statements? SQL statement to repeat data skills

As shown in the figure, there are two duplicate data on the icon, so what should be done to filter out the duplicate data?

Method 1 : Use distinct to filter out redundant data.

For example: the following statement

select distinct university from user_profile;

Method 2: group by + count + min to remove duplicate data

Guess you like

Origin blog.csdn.net/qq_44361142/article/details/128182752