Dataford
Interview QuestionsInterview GuidesExperiencesCoaching
New
Pricing
Get started
Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
Experiences
Practice
Mock InterviewsTimed interview simulations with feedbackCoaching1:1 coaching with people at your target companiesSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Build my plan
Pharma Data Sources
00:00
5 left

Pharma Data Sources

MediumSQL · PostgreSQL

Problem

What are the different data sources for pharmaceutical and biotech data?

Use the provided PharmaACE source catalog and source inventory to identify which source types are available, how many active sources exist in each type, and how many of those are global versus regional. Return only source types with at least one active source.

Output

  1. One row per source type
  2. Columns: source_type, active_sources, global_sources, regional_sources
  3. Include only active sources
  4. Sort by active_sources descending, then source_type ascending

Schema

source_catalog
ColumnTypeDescription
source_idPKINTUnique identifier for a data source
source_nameVARCHAR(255)Name of the data source
source_typeVARCHAR(100)Type of source, such as clinical, commercial, regulatory, or literature
regionVARCHAR(100)Primary region associated with the source, if applicable
source_inventory
ColumnTypeDescription
inventory_idPKINTUnique inventory record identifier
source_idINTReferences the source catalog
coverageVARCHAR(50)Coverage scope of the source, such as Global or Regional
is_activeBOOLEANWhether the source is currently active
last_reviewed_dateDATEMost recent review date for the source
Tablessource_catalogsource_inventory
Interviewer

Your question is Pharma Data Sources. 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
Sign up free to run your codeLog inLn 1
Run your query to see results here.