Interview Guides

You are given a single PostgreSQL table that stores Coforge data pipeline log events. Write a query to return the top 3 source_system values with the highest number of rows where status = 'ERROR'. Show the source system and its error count, ordered by error count descending and then by source system ascending.