Write SQL query to solve given problem: How many positions have a maximum salary of no more than US$1000,000?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT COUNT(*) FROM position WHERE CAST(REPLACE(SUBSTR(maxsalary, 4), ',', '') AS REAL) < 100000