Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Top Error Sources in Coforge Logs

EasySQL · PostgreSQL00:00
Practice interviewer
In session
5 left
00:00

Your question is Top Error Sources in Coforge Logs. Start with the requirements and the one table on the right.

Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.

You need to log in / sign up to run or submit.

Problem

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.

Schema

coforge_pipeline_logs
ColumnTypeDescription
log_idPKINTUnique log row identifier
source_systemVARCHAR(50)Upstream source system name
pipeline_nameVARCHAR(80)Coforge pipeline name
statusVARCHAR(20)Pipeline event status
records_processedINTNumber of records processed in the event
event_dateDATEDate of the pipeline event
Tablescoforge_pipeline_logs
Your solutionPostgreSQL
You need to log in / sign up to run or submit.
Run a query to see results