Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started
Preferred Visualization Tools
00:00
5 left

Preferred Visualization Tools

EasySQL · PostgreSQL

Problem

What specific tools or technologies do you prefer for data visualization, and why?

Translate the preference evidence into a ranked SQL result using the available tool and feedback records. Include tools without feedback so the output distinguishes established preferences from tools with no supporting ratings.

Output

  1. One row per visualization tool with tool_name, tool_category, feedback_count, average_rating, preference_reasons, and preference_rank
  2. Include every tool, preserve NULL averages for tools without ratings, and concatenate non-NULL reasons chronologically
  3. Sort by preference rank, then tool name alphabetically; tied and unrated tools share ranks

Schema

visualization_tools
ColumnTypeDescription
tool_idPKINTUnique visualization tool identifier
tool_nameVARCHAR(100)Name of the visualization tool
tool_categoryVARCHAR(50)General category of the tool
visualization_feedback
ColumnTypeDescription
feedback_idPKINTUnique feedback identifier
tool_idINTReferenced visualization tool
ratingINTPreference rating from 1 to 5
reasonVARCHAR(255)Reason supporting the rating
submitted_atDATEDate feedback was submitted
Tablesvisualization_toolsvisualization_feedback
Interviewer

Your question is Preferred Visualization Tools. Start with the requirements and the two tables in the Question tab.

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.
CodePostgreSQL
You need to log in / sign up to run or submit.Ln 1
Run your query to see results here.