Add advancedStyling="true" attribute to "{arisqltable}" tag and specify CSS class name of table with help "className" attribute. Code will look like:
| Code:  | 
  
{arisqltable advancedStyling="true" className="tbl"} 
    {arisqltablequery} 
SELECT id AS ID,name AS NAME  
FROM #__users 
    {/arisqltablequery} 
{/arisqltable} 
  | 
 
If you want to do text in first column right aligned, add the following code to "CSS Template" in "CSS Templates" section on component backend:
| Code:  | 
  
TABLE.tbl TD.actCell_0 
{ 
 text-align: right; 
} 
  | 
 
If it is required for third column, use the following code:
| Code:  | 
  
TABLE.tbl TD.actCell_2 
{ 
 text-align: right; 
} 
  | 
 
Regards,
ARI Soft