Pass a raw Apex result to an HTML table and you get revenue printed as 126000000, account names nobody can click, and sort arrows that do nothing. The lightning-datatable base component fixes the formatting with typed columns, but sorting, combined columns and selection still need a few lines of JavaScript from you.
We built the whole thing in a Winter ’27 Developer Edition org (API 67.0): a partner accounts table fed by a cacheable Apex method, with a linked name column, a combined City + State column, sorting and a selection counter. By the end you can build a lightning datatable in LWC on your own object, test the Apex behind it, and avoid the mistakes that leave it blank.