Believe this should be a simple select query if that's what you're wanting. Of course you'd need to output it as an object/array if you intend to use it in PHP. Query is as follows.
[code:1]
SELECT b.`name` AS 'Name'
, a.`cb_racedate` AS 'Date'
, a.`cb_position` AS 'Pos'
, a.`cb_racename` AS 'Race'
, a.`cb_racetime` AS 'Time'
FROM `#__comprofiler` AS a
LEFT JOIN `#__users` AS b
ON a.`user_id` = b.`id`
[/code:1]
If you need formatting of course that'd need to be done with a more complex query. You can find information on MYSQL queries for formatting results
here
. You can also find some great SQL tutorials
here
.