| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files/LibreOffice/help/en-US/text/sdatabase/ |
Upload File : |
<!DOCTYPE html> <html lang="en-US" dir="ltr"> <head> <base href="../../../"> <noscript><meta http-equiv="refresh" content="0; URL=../../../en-US/noscript.html"></noscript> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Queries</title> <link rel="shortcut icon" href="media/navigation/favicon.ico"> <link type="text/css" href="normalize.css" rel="Stylesheet"> <link type="text/css" href="prism.css" rel="Stylesheet"> <link type="text/css" href="default.css" rel="Stylesheet"> <script type="text/javascript" src="polyfills.js"></script><script type="text/javascript" src="languages.js"></script><script type="text/javascript" src="en-US/langnames.js"></script><script type="text/javascript" src="flexsearch.debug.js"></script><script type="text/javascript" src="prism.js"></script><script type="text/javascript" src="help2.js" defer></script><script type="text/javascript" src="a11y-toggle.js" defer></script><script type="text/javascript" src="paginathing.js" defer></script><script type="text/javascript" src="en-US/bookmarks.js" defer></script><script type="text/javascript" src="en-US/contents.js" defer></script><script type="text/javascript" src="help.js" defer></script><meta name="viewport" content="width=device-width,initial-scale=1"> </head> <body> <header id="TopLeftHeader"><a class="symbol" href="en-US/text/shared/05/new_help.html"><div></div></a><a class="logo" href="en-US/text/shared/05/new_help.html"><p dir="auto">LibreOffice 24.2 Help</p></a><div class="dropdowns"><div class="modules"> <button type="button" data-a11y-toggle="modules-nav" id="modules" aria-haspopup="true" aria-expanded="false" aria-controls="modules-nav">Module</button><nav id="modules-nav" hidden=""></nav> </div></div></header><aside class="leftside"><input id="accordion-1" name="accordion-menu" type="checkbox"><label for="accordion-1" dir="auto">Contents</label><div id="Contents" class="contents-treeview"></div></aside><div id="SearchFrame"><div id="Bookmarks"> <input id="search-bar" type="search" class="search" placeholder="Search in bookmarks for chosen module" dir="auto"><div class="nav-container" tabindex="0"><nav class="index" dir="auto"></nav></div> </div></div> <div id="DisplayArea" itemprop="softwareHelp" itemscope="true" itemtype="http://schema.org/SoftwareApplication"> <a name="queries"></a> <a name="bm_id3150445"></a><meta itemprop="keywords" content="queries,overview (Base)"> <meta itemprop="keywords" content="tables in databases, printing queries (Base)"> <meta itemprop="keywords" content="printing, queries (Base)"> <meta itemprop="keywords" content="queries, printing (Base)"> <h1 id="hd_id3150445" dir="auto">Queries</h1> <p id="par_id3150499" class="paragraph" dir="auto">A "query" is a special view of a table. A query can display chosen records or chosen fields within records; it can also sort those records. A query can apply to one table or to multiple tables, if they are linked by common data fields.</p> <a name="howtoget"></a><div class="howtoget"> <div><p class="howtogetheader" dir="auto"><a name="wie"></a>To access this command...</p></div> <div class="howtogetbody"> <div class="embedded"><p class="embedded" dir="auto">In a database file window, click the <span class="emph">Queries</span> icon.</p></div> </div> </div> <br> <p id="par_id3147399" class="paragraph" dir="auto">Use queries to find records from data tables based on certain criteria. All queries created for a database are listed under the <span class="emph">Queries</span> entry. Since this entry contains the database queries, it is also called the "query container".</p> <h2 id="hd_id3153750" dir="auto">Printing Queries</h2> <p id="par_id3149183" class="paragraph" dir="auto">To print a query or table:</p> <ol itemprop="HowTo" itemscope="true" itemtype="http://schema.org/HowToSection" dir="auto"> <li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/HowToStep" dir="auto"> <p id="par_id3156426" class="listitem" dir="auto">Open a text document (or a spreadsheet document if you prefer the specific printing functions of this type of document).</p> </li> <li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/HowToStep" dir="auto"> <p id="par_id3149827" class="listitem" dir="auto">Open the database file and click the Table icon if you want to print a table, or click the Query icon if you want to print a query.</p> </li> <li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/HowToStep" dir="auto"> <p id="par_id3149398" class="listitem" dir="auto">Drag the name of the table or query into the open text document or spreadsheet. The dialog <a target="_top" href="en-US/text/shared/02/12070000.html">Insert Database Columns</a> opens.</p> </li> <li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/HowToStep" dir="auto"> <p id="par_id3150443" class="listitem" dir="auto">Decide which columns = data fields you want to include. You can also click the <span class="emph">AutoFormat</span> button and select a corresponding formatting type. Close the dialog.</p> <p id="par_id3153561" class="listitem" dir="auto">The query or table will be inserted into your document.</p> </li> <li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/HowToStep" dir="auto"> <p id="par_id3150503" class="listitem" dir="auto">Print the document by choosing <span class="emph">File - Print</span>.</p> </li> </ol> <div class="tip"> <div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/tip.svg" alt="tip" style="width:40px;height:40px;"></div> <div class="notetext"><p id="par_id3153146" dir="auto">You can also open the data source view (Ctrl+Shift+F4), select the entire database table in the data source view (click on the top left corner of the table), and then drag the selection to a text document or spreadsheet.</p></div> </div> <br> <h2 id="hd_id3148946" dir="auto"><a target="_top" href="en-US/text/shared/main0212.html">Sorting and Filtering Data</a></h2> <p id="par_id3149655" class="paragraph" dir="auto">Allows you to sort and filter the data in a query table.</p> <h2 id="hd_id3153379" dir="auto"><a target="_top" href="en-US/text/sdatabase/02010100.html">Query Design</a></h2> <p id="par_id3151211" class="paragraph" dir="auto">With the <span class="emph">Query Design</span>, you can create and edit a query or view.</p> <div class="embedded"> <a name="sql"></a> <h2 id="hd_id3159176" dir="auto"><a target="_top" href="en-US/text/shared/main0214.html">Query Design Bar</a></h2> <p id="par_id3150085" class="paragraph" dir="auto"><span class="avis">When creating or editing an SQL query, use the icons in the <span class="emph">Query Design</span> Bar to control the display of data.</span></p> </div> <h2 id="hd_id3153968" dir="auto"><a target="_top" href="en-US/text/sdatabase/02010100.html">Query Through Several Tables</a></h2> <p id="par_id3151043" class="paragraph" dir="auto">The query result can contain data from several tables if these are linked to each other by suitable data fields.</p> <h2 id="hd_id3159149" dir="auto"><a target="_top" href="en-US/text/sdatabase/02010100.html">Formulating Query Criteria</a></h2> <p id="par_id3154910" class="paragraph" dir="auto">You can find out which operators and commands can be used to formulate the filter conditions for a query.</p> <h2 id="hd_id3156212" dir="auto"><a target="_top" href="en-US/text/sdatabase/02010100.html">Executing Functions</a></h2> <p id="par_id3144762" class="paragraph" dir="auto">You can perform calculations with the data of a table and store the results as a query result.</p> </div> <div id="DonationFrame"></div> <footer><div id="DEBUG" class="debug"> <h3 class="bug">Help content debug info:</h3> <p dir="auto">This page is: <a href="https://opengrok.libreoffice.org/xref/help/source/text/sdatabase/02000000.xhp" target="_blank">/text/sdatabase/02000000.xhp</a></p> <p dir="auto">Title is: Queries</p> <p id="bm_module" dir="auto"></p> <p id="bm_system" dir="auto"></p> <p id="bm_HID" dir="auto"></p> </div></footer> </body> </html>