Select Save from the File menu to save the query as an .sqy file, replacing any previous version with the current version. If you haven't saved the query before, then the standard Save As dialog is displayed. This option is only available if an SQL statement has first been created.