Queries/text/shared/explorer/database/02000000.xhpSun Microsystems, Inc.converted from old format - fpequeries;overviewtables in databases; printing queriesprinting; queriesqueries; printingQueriesA "query" is special view of a table. Queries can display certain records or only a few fields per record and, if required, also sort those records. A query can apply to one table to multiple tables, if they are linked by common data fields.Use queries to find records from data tables based on certain criteria. All queries created for a database are listed under the Queries entry. Since this entry contains the database queries, it is also called the "query container".Printing QueriesTo print a query or table:Open a text document (or a spreadsheet document if you prefer the specific printing functions of this type of document).Open the database so that you can see the name of the query or table as an entry.Drag the name into the open document. You now see the dialog Insert Database ColumnsDecide which columns = data fields you want to include. You can also click the AutoFormat button and select a corresponding formatting type. Close the dialog.The query or table will be inserted into your document.Print the document by choosing File - Print.You can also select the entire database table in the data source view (button in the top left corner of the table) and then drag this to a text document or spreadsheet.The $[officename] Help provides you with further information about the following subjects:UFI: deleted some old parasSorting and Filtering DataAllows you to sort and filter the data in a query table.Query DesignWith the Query Design, you can create and edit a query or view.Query Through Several TablesThe query result can contain data from several tables if these are linked to each other by suitable data fields.Formulating Query CriteriaYou can find out which operators and commands can be used to formulate the filter conditions for a query.Executing FunctionsYou can perform calculations with the data of a table and store the results as a query result.