SQL that return count of a value in a selected group and count in other groups – Mysql
I have the table below: create table tablex (fileID int, file varchar(10), name varchar(10)); insert into tablex (fileID, file, name) values (1, 'file1' , 'AAA'),(1, 'file1' , 'AAA'),(1, 'file1' , 'AAA'),(2, 'file2' , 'AAA'),(2, 'file2' , 'AAA'),(2, 'file2' , 'AAA'),(1,…