An Ad Hoc query enables interaction with a database without having to create an application. SQL Server Management Studio Express, a companion tool of the SQL Server 2005 Express Edition, should be installed for creating Ad Hoc queries. After installation, first step is to save all databases to be used in Microsoft SQL Server/MSSQL.1/MSSQL/Data in the Program Files. Then open the SQL Server Management Express and create or attach a database. In writing Ad Hoc queries, select "New Query" button and select which database you are querying from on the toolbar. The SELECT statement is used to read/retrieve data from the database. Specific commands can be highlighted execute only certain commands. Also, results can be formatted to save into a CSV file or a Text file. To print a friendlier version of the results, column names can be given aliases. Number of results can be limited by including a WHERE clause. To aggregate values in specific columns, use SUM function, while the Count function calculates the number of records in a selected table. Mathematical and Conditional operations can also be executed via Ad Hoc query, as well as determining Minimum, Maximum and Average values. Different Date functions are also available for use.