1*cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?> 2*cdf0e10cSrcweir 3*cdf0e10cSrcweir 4*cdf0e10cSrcweir<!-- 5*cdf0e10cSrcweir *********************************************************************** 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 12*cdf0e10cSrcweir * 13*cdf0e10cSrcweir * This file is part of OpenOffice.org. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 16*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 17*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 18*cdf0e10cSrcweir * 19*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 20*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 21*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 23*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 24*cdf0e10cSrcweir * 25*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 26*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 27*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 28*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 29*cdf0e10cSrcweir * 30*cdf0e10cSrcweir ************************************************************************ 31*cdf0e10cSrcweir --> 32*cdf0e10cSrcweir 33*cdf0e10cSrcweir<helpdocument version="1.0"> 34*cdf0e10cSrcweir<meta> 35*cdf0e10cSrcweir<topic id="textsharedguidedata_queriesxhp" indexer="include" status="PUBLISH"> 36*cdf0e10cSrcweir<title id="tit" xml-lang="en-US">Working with Queries</title> 37*cdf0e10cSrcweir<filename>/text/shared/guide/data_queries.xhp</filename> 38*cdf0e10cSrcweir</topic> 39*cdf0e10cSrcweir<history> 40*cdf0e10cSrcweir<created date="2004-08-19T12:57:48">Working with Queries</created> 41*cdf0e10cSrcweir<lastedited date="2006-11-28T09:15:16">YJ: checked</lastedited> 42*cdf0e10cSrcweir</history> 43*cdf0e10cSrcweir</meta> 44*cdf0e10cSrcweir<body> 45*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="index" id="bm_id840784"><bookmark_value>databases;creating queries</bookmark_value> 46*cdf0e10cSrcweir<bookmark_value>filtering;data in databases</bookmark_value> 47*cdf0e10cSrcweir<bookmark_value>queries;defining (Base)</bookmark_value> 48*cdf0e10cSrcweir<bookmark_value>defining;queries (Base)</bookmark_value> 49*cdf0e10cSrcweir<bookmark_value>wizards;database queries</bookmark_value> 50*cdf0e10cSrcweir<bookmark_value>Query Wizard (Base)</bookmark_value> 51*cdf0e10cSrcweir</bookmark><comment>MW added (Base) to 3 entries</comment> 52*cdf0e10cSrcweir<paragraph role="heading" id="par_idN105F9" xml-lang="en-US" level="1" l10n="NEW"><variable id="data_queries"><link href="text/shared/guide/data_queries.xhp">Working with Queries</link> 53*cdf0e10cSrcweir</variable></paragraph> 54*cdf0e10cSrcweir<paragraph role="paragraph" id="par_idN10617" xml-lang="en-US" l10n="NEW">If you often want to access only a subset of your data that can be well defined by a filter condition, you can define a query. This is basically a name for the new view at the filtered data. You open the query and see the current data in the table layout that you defined.</paragraph> 55*cdf0e10cSrcweir<paragraph role="heading" id="par_idN1061A" xml-lang="en-US" level="2" l10n="NEW">Creating a New Query With the Query Wizard</paragraph> 56*cdf0e10cSrcweir<paragraph role="paragraph" id="par_idN1061E" xml-lang="en-US" l10n="NEW">In %PRODUCTNAME you can create a new query using the <link href="text/shared/explorer/database/querywizard00.xhp">Query Wizard</link>:</paragraph> 57*cdf0e10cSrcweir<list type="ordered"> 58*cdf0e10cSrcweir<listitem> 59*cdf0e10cSrcweir<paragraph role="paragraph" id="par_idN10632" xml-lang="en-US" l10n="NEW">Open the database file where you want to create the new query.</paragraph> 60*cdf0e10cSrcweir</listitem> 61*cdf0e10cSrcweir<listitem> 62*cdf0e10cSrcweir<paragraph role="paragraph" id="par_idN10636" xml-lang="en-US" l10n="NEW">In the left pane of the database window, click the <emph>Queries</emph> icon.</paragraph> 63*cdf0e10cSrcweir</listitem> 64*cdf0e10cSrcweir<listitem> 65*cdf0e10cSrcweir<paragraph role="paragraph" id="par_idN1063E" xml-lang="en-US" l10n="NEW">Click <emph>Use Wizard to Create Query</emph>.</paragraph> 66*cdf0e10cSrcweir</listitem> 67*cdf0e10cSrcweir</list> 68*cdf0e10cSrcweir<paragraph role="heading" id="par_idN10645" xml-lang="en-US" level="2" l10n="NEW">Creating a New Query With the Design View</paragraph> 69*cdf0e10cSrcweir<list type="ordered"> 70*cdf0e10cSrcweir<listitem> 71*cdf0e10cSrcweir<paragraph role="paragraph" id="par_idN1064C" xml-lang="en-US" l10n="NEW">Open the database file where you want to create the new query.</paragraph> 72*cdf0e10cSrcweir</listitem> 73*cdf0e10cSrcweir<listitem> 74*cdf0e10cSrcweir<paragraph role="paragraph" id="par_idN10650" xml-lang="en-US" l10n="NEW">In the left pane of the database window, click the <emph>Queries</emph> icon.</paragraph> 75*cdf0e10cSrcweir</listitem> 76*cdf0e10cSrcweir<listitem> 77*cdf0e10cSrcweir<paragraph role="paragraph" id="par_idN10658" xml-lang="en-US" l10n="NEW">Click <emph>Create Query in Design View</emph>.</paragraph> 78*cdf0e10cSrcweir</listitem> 79*cdf0e10cSrcweir</list> 80*cdf0e10cSrcweir<paragraph role="paragraph" id="par_idN1065F" xml-lang="en-US" l10n="NEW">You see the <link href="text/shared/explorer/database/02010100.xhp">Query Design window</link>.</paragraph> 81*cdf0e10cSrcweir<section id="relatedtopics"> 82*cdf0e10cSrcweir<paragraph role="paragraph" id="par_idN1067B" xml-lang="en-US" l10n="NEW"> 83*cdf0e10cSrcweir<embedvar href="text/shared/explorer/database/main.xhp#base"/> 84*cdf0e10cSrcweir</paragraph> 85*cdf0e10cSrcweir<paragraph role="paragraph" id="par_idN10683" xml-lang="en-US" l10n="NEW"> 86*cdf0e10cSrcweir<embedvar href="text/shared/guide/database_main.xhp#database_main"/> 87*cdf0e10cSrcweir</paragraph> 88*cdf0e10cSrcweir</section> 89*cdf0e10cSrcweir</body> 90*cdf0e10cSrcweir</helpdocument> 91