Bank soalan
Soalan SQL
99 soalan bertema syarikat yang anda akan betul-betul interview di rantau ini. Selesaikan terus di sini: Postgres sebenar, dalam browser anda.
Soalan dan solution kekal dalam Bahasa Inggeris — bahasa temu duga sebenar, supaya anda practice membaca bahasa sebenar yang digunakan dalam interview sebenar.
Window functionsSQL basicsStatistics and A/B testingAggregationDates and timesJoinsText and pattern matchingMath and numbersSubqueries and CTEsIndexingSchema designGrabShopeeAirAsiaGXBankLazadaMaybankTraveloka
99 of 99
easyAdd a primary key to an unkeyed orders tableLazada · schema-designFree→easyApplicants with no referral code on fileGXBank · basicsFree→easyAverage balance by account typeGXBank · aggregationBasic→easyCheapest flights to a destinationAirAsia · basicsFree→easyClassify e-wallet balances into tiersBoost · basicsFree→easyClassify insurance policies into tiersAIA · basicsFree→easyClean up messy product names99 Speedmart · textFree→easyClean up messy size codesPadini · textFree→easyClose the loophole on a column that's never actually nullGXBank · schema-designFree→easyCompleted rides by cityGrab · aggregationFree→easyConversion rate per variantShopee · experimentationFree→easyDays remaining until subscription expiryTelekom Malaysia · date-timeFree→easyFind products from a specific brandLazada · textFree→easyFind Toyota listings, regardless of caseCarsome · textFree→easyLabel moderation queue items by urgencyTikTok · basicsFree→easyLine totals after a percentage discountTraveloka · mathFree→easyMerchants on personal email domainsFoodpanda · textFree→easyOrders by statusShopee · aggregationFree→easyProfit margin per productPanasonic · mathFree→easyPull the branch code out of a reference numberCIMB · textFree→easyRank grocery items by price within each categoryFoodpanda · windowFree→easySelected routes, mid-range priceAirAsia · basicsFree→easyShipped or delivered orders worth over RM 100AEON · basicsFree→easyShow 'Unassigned' for branches without a managerRHB Bank · basicsBasic→easyShow each customer's previous purchase amountLotus's · windowFree→easyShow each transaction with its merchant nameBigPay · joinsFree→easyShow every top-up next to the overall averageTouch 'n Go · windowFree→easyUsers assigned to both variantsNinja Van · experimentationBasic→easyWallets with a healthy balanceTouch 'n Go · basicsFree→mediumAbsolute difference and relative liftMaybank · experimentationFree→mediumAccounts above their own branch's averageHSBC · subqueryBasic→mediumAd click-through conversion rate, per campaignGrab · aggregationBasic→mediumAttach the policy rate in force on each dateBank Negara Malaysia · date-timeBasic→mediumAverage ride duration, by monthGrab · date-timeBasic→mediumBranches beating the network's average growthStandard Chartered · subqueryBasic→mediumBucket clients into risk-score bandsEY · mathBasic→mediumBuyers active in both January and FebruaryCarousell · basicsBasic→mediumCompute the median fare across all bookingsTraveloka · mathBasic→mediumCumulative conversion rate by dayTraveloka · experimentationBasic→mediumCustomers who never orderedShopee · joinsBasic→mediumCustomers with no way to reach themPublic Bank · basicsBasic→mediumDefect rate per production lineIntel · aggregationBasic→mediumDrivers rated above averageGrab · subqueryBasic→mediumEmployees who out-earn their managerCIMB · joinsBasic→mediumEnforce uniqueness the way a UNIQUE constraint actually worksMaybank · indexingFree→mediumEvery customer who has banked online or in a branchDBS Bank · basicsBasic→mediumEvery part, with its supplier (if assigned)Toyota · joinsBasic→mediumExtract the failure reason from a DuitNow error messagePayNet · textFree→mediumFind accounts with zero transactionsHong Leong Bank · subqueryFree→mediumFive-year premium projectionAIA · mathBasic→mediumFlag shipments that breached their SLADHL · date-timeFree→mediumGuardrail metric regressionsAirAsia · experimentationBasic→mediumInactive subscribersCelcomDigi · subqueryBasic→mediumIndex a foreign key column Postgres never indexed for youGrab · indexingFree→mediumLabel TNB bills as on-time, late, or unpaidTenaga Nasional · basicsFree→mediumLink orders to customers with an enforced, cascading foreign keyShopee · schema-designFree→mediumMonthly fuel salesPetronas · date-timeBasic→mediumNovelty effect over four weeksShopee · experimentationFree→mediumNumber each subscriber's reloads in orderU Mobile · windowFree→mediumOutage duration in minutesHuawei · date-timeFree→mediumPick the largest transactions for audit samplingPwC · subqueryFree→mediumPivot quarterly sales into columnsGoTo · aggregationBasic→mediumPlayers who churned after JanuaryTencent · basicsBasic→mediumRevenue per routeAirAsia · joinsBasic→mediumRound prices up, round loyalty points downMr DIY · mathFree→mediumRunning balance for each e-walletBoost · windowFree→mediumSample ratio mismatchGrab · experimentationBasic→mediumSplit mudarabah profit across depositors by weighted balanceBank Islam · aggregationFree→mediumTop 3 restaurants by ordersFoodpanda · aggregationBasic→mediumTotal fuel spend per monthSetel · date-timeBasic→mediumTotal spend per customerMaybank · joinsBasic→mediumUtilisation rate per consultantDeloitte · aggregationFree→hardBusiest data center in each regionAlibaba · windowBasic→hardCharge each payout its tier's feePayNet · mathBasic→hardCount overdue installments by ageing bucketAEON · date-timeBasic→hardDay-over-day change in order volumeGrabFood · windowBasic→hardDrivers delayed 3+ days in a rowNinja Van · windowBasic→hardFind duplicate fraud alerts on the same cardAmBank · subqueryBasic→hardFind weekdays with no timesheet entryKPMG · date-timeBasic→hardGet the column order right on a composite indexAirAsia · indexingFree→hardMonth-over-month change in units soldSony · windowBasic→hardPair every employee with their managerSime Darby · joinsBasic→hardParse quantity and price out of receipt linesLotus's · textBasic→hardPivot payment channels into columns, per merchantGCash · aggregationBasic→hardPooled standard error and z-scoreGrab · experimentationBasic→hardPrevious month's revenueGrab · windowFree→hardRank customers by spendMaybank · windowBasic→hardRank customers by transaction amount, per branchHSBC · windowBasic→hardRank projects by margin within each practiceAccenture · windowBasic→hardRequired sample sizeTokopedia · experimentationBasic→hardRevenue per user, before and after trimmingZalora · experimentationBasic→hardRunning total of daily salesShopee · windowFree→hardSecond most expensive product per categoryLazada · windowFree→hardShow each customer's previous tier alongside their new oneGXBank · windowBasic→hardSignificance at 5%GoTo · experimentationBasic→hardSimpson's paradox in an A/B testLazada · experimentationBasic→hardSplit customers into spending quartilesShopee · windowBasic→hardTotal paid, joined across three tablesMaxis · joinsBasic→hardTotal shipped, joined across three tablesWestern Digital · joinsBasic→