Prior to running any queries in a SQL Window, there should be a toolbar on your right with the up and down arrows that navigate through SQL History. If your version includes an additional database-icon button below these, that's your solution. Otherwise, you'll have to upgrade.
Regards,
Gustavo