Question: I have an Excel Table named Table5 which consist of two columns CompanyCode and EmployeeLevel. Now my question is i want to get the unique values of EmployeeLevel columns. Take note that the length of the record is unknown. I am using the Table5[EmployeeLevel] as the range to include all the records in the Table5. Is there a formula that you can provide ? I cannot use ActiveX object to loop through each record. I must do it via Excel formula. The solutions I got are only usable when it is fixed how long the records are. but this record I am working on is a dynamic table. 

Thanks in advance :)

Answer: 
Like @Grim said, you can use `INNER JOIN` instead of `LEFT JOIN`. However, if you truly look for optimization, I would suggest you to have an extra field at table `users` with a precalculate `point`. This solution would beat any query optimization with your current database design.
Swapping the `LEFT JOIN` for an `INNER JOIN` would help a lot. Make sure `points.point` and `points.user_id` are indexed. I assume you can get rid of the `WHERE` clause, as `u.id` will always be more than 0 (although MySQL probably does this for you at the query optimisation stage).