How to get top N% of data by group in SQL? – Mysql
We have a table where we want to divide the data in train, test and split. It should split like per type top 20% data in validation, next 20% data in test and remaining 60% in train. For example, we…