Write SQL query to solve given problem: Please list the years in which the NHL League had shots recorded while the goalie was on the ice.. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT DISTINCT year FROM Goalies WHERE lgID = 'NHL' AND SA IS NOT NULL