Back to Johnson & Johnson Backend Engineer interview

Interview question

Optimize a slow SQL query on a large fact table

Asked in Johnson & Johnson Backend Engineer interviews

Asked by

31% candidates

Difficulty

Medium

Round

Technical Round

AI synthesized from candidate reports

Back to Questions

Question 3 of 4

Optimize a slow SQL query on a large fact table

Medium58% Candidate ReportsCODINGJohnson & JohnsonBackend Engineer

Question

Optimize a slow SQL query on a large fact table

High-Level Approach

Measure first, index for filter/join columns, consider partitioning and summary tables.

Optimize a slow SQL query on a large fact table — Johnson &… | InterviewForge AI