Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Real Estate Models Familiarity

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

Your question is Real Estate Models Familiarity. Start with the requirements and the three tables 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

What real estate models are you familiar with?

Using the supplied tables, write a SQL query to identify models with at least one completed project and summarize the analyst's experience with each model.

Output

  1. One row per familiar model with model_name, category_name, completed_projects, avg_deal_value_millions, and familiarity_level.
  2. Exclude models without completed projects. Classify one, two, or three or more completed projects as Basic, Intermediate, or Advanced.
  3. Order by completed projects descending, then model name ascending.

Schema

real_estate_models
ColumnTypeDescription
model_idPKINTUnique identifier for a real estate model
model_nameVARCHAR(100)Name of the real estate model
model_typeVARCHAR(50)Broad type of model
category_idINTOptional reference to a model category
model_categories
ColumnTypeDescription
category_idPKINTUnique category identifier
category_nameVARCHAR(60)Category label
analyst_model_experience
ColumnTypeDescription
experience_idPKINTUnique experience record identifier
model_idINTReferenced real estate model
project_statusVARCHAR(20)Status of the project using the model
project_dateDATEDate associated with the project
deal_value_millionsDECIMAL(10,2)Deal value in millions of dollars
valuation_error_pctDECIMAL(5,2)Optional valuation error percentage
Tablesreal_estate_modelsmodel_categoriesanalyst_model_experience
Your solutionPostgreSQL
You need to log in / sign up to run or submit.
Run a query to see results