SQL Quest › SQL Interview Questions › Querying Basics

LLC and Realty Owners

EasyFreeQuerying Basics

Find properties whose owner_name contains 'LLC' OR contains 'REALTY' — corporate ownership signal. Return bbl, address, owner_name, assess_total. Order by assess_total descending. Top 20.

Solve it in the browser editor →

Runs on SQLite in your browser, graded against the expected result, no signup. A wrong answer gets a diagnosis, not just "incorrect". Free accounts get 10 free challenge solves, and this can be one of them.

Schema

properties

bblboroughaddresszipbldg_classland_useyear_builtnum_floorsunits_residentialunits_totallot_area_sqftbldg_area_sqftassess_totalowner_namelatitudelongitude
1009720001MN240 1 AVENUE10009D74194513.00000008764881226750008942176790924050.00000BPP ST OWNER LLC40.7317236-73.9778964
1009950005MN1472 BROADWAY10036O45199851.000000002458001642675489648150.00000NYC ECONOMIC DEVELOPMENT CORPORATION40.7560214-73.9857642
1010070029MN1345 AVENUE OF THE AMER10105O95196849.0000000050903751931978429758550.000001345 LEASEHOLD LLC40.7630634-73.9792541

Expected output: LLC and Realty owners by assessed value

Hint

WHERE owner_name LIKE '%LLC%' OR owner_name LIKE '%REALTY%'.

Concepts

SELECT WHERE LIKE OR

Practise the topic: SQL practice questions

Read the concept: Learn SQL for beginners

Related questions

Top 10 Manhattan Properties by Assessed ValueEasy · FreePre-1920 NYC BuildingsEasy · FreeDistinct ACRIS Property TypesEasy · FreeTop 10 by Tool WearEasy · FreeHigh-Quality Products OnlyEasy · FreeDistinct FMEA CategoriesEasy · Free

Where would this cost you points in an interview?

Ten questions, no signup: a Skillmap across nine SQL skills and the one to fix first.

Take the readiness test