Sample Answer
I’d start by sketching the schema. Let’s say we have customers, subscriptions, and transactions. First, I’d sanity-check row counts and nulls: SELECT COUNT(*) FROM customers; SELECT COUNT(*) FROM transactions; then for key fields: SELECT COUNT(*) FROM customers WHERE customer_id IS NULL. I’d look for duplicates with GROUP BY customer_id HAVING COUNT(*)>1. To join, I’d typically LEFT JOIN subscriptions to customers (keep all customers) and INNER JOIN transactions to subscriptions: SELECT c.customer_id, s.subscription_id, t.txn_date, t.amount FROM customers c LEFT JOIN subscriptions s ON c.customer_id = s.customer_id INNER JOIN transactions t ON s.subscription_id = t.subscription_id WHERE t.txn_date BETWEEN '2024-01-01' AND '2024-12-31'; For cohorts, I’d bucket by signup month and check 3/6/12‑month activity: WITH first_txn AS ( SELECT customer_id, MIN(txn_date) AS first_date FROM transactions GROUP BY customer_id ), activity AS ( SELECT customer_id, DATE_TRUNC('month', first_date) AS cohort_month, MAX(txn_date) AS last_txn FROM first_txn f JOIN transactions t USING (customer_id) GROUP BY customer_id, cohort_month ) SELECT cohort_month, COUNT(*) AS customers, SUM(CASE WHEN last_txn < CURRENT_DATE - INTERVAL '90 days' THEN 1 ELSE 0 END) AS churned FROM activity GROUP BY cohort_month;
Keywords
Based on your hydrology and irrigation engineering background, explain how you would estimate the irrigation water requirement for a kharif crop in a semi-arid region of Gujarat. Walk me through each step: from reference evapotranspiration estimation, crop coefficient selection, effective rainfall calculation, to arriving at canal discharge for a given command area.
In your civil engineering studies, what specific design coursework or project work did you complete related to irrigation channels or canals (e.g., design of lined/unlined canals, distributaries, minors)? Describe one such design in detail, including how you determined discharge, permissible velocity, section dimensions, and lining choice for Gujarat-type soil and climate conditions.
Walk me through a recent multi-channel digital marketing campaign you managed end-to-end. How did you set objectives, choose channels, allocate budget, and measure success?
In your resume you note improving or optimizing [a process, KPI, or metric]. What specific baseline metrics did you start from, what steps did you personally take, and how did you verify that the improvement was due to your changes rather than external factors?
On your resume you mention working on a cross-functional project (e.g., involving multiple teams or stakeholders). Describe a situation from that project where priorities conflicted—how did you navigate the trade-offs and what was the final outcome?