1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?> 2cdf0e10cSrcweir 3cdf0e10cSrcweir 4*226a8927SAndrew Rist<!--*********************************************************** 5cdf0e10cSrcweir * 6*226a8927SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 7*226a8927SAndrew Rist * or more contributor license agreements. See the NOTICE file 8*226a8927SAndrew Rist * distributed with this work for additional information 9*226a8927SAndrew Rist * regarding copyright ownership. The ASF licenses this file 10*226a8927SAndrew Rist * to you under the Apache License, Version 2.0 (the 11*226a8927SAndrew Rist * "License"); you may not use this file except in compliance 12*226a8927SAndrew Rist * with the License. You may obtain a copy of the License at 13*226a8927SAndrew Rist * 14*226a8927SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 15*226a8927SAndrew Rist * 16*226a8927SAndrew Rist * Unless required by applicable law or agreed to in writing, 17*226a8927SAndrew Rist * software distributed under the License is distributed on an 18*226a8927SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 19*226a8927SAndrew Rist * KIND, either express or implied. See the License for the 20*226a8927SAndrew Rist * specific language governing permissions and limitations 21*226a8927SAndrew Rist * under the License. 22*226a8927SAndrew Rist * 23*226a8927SAndrew Rist ***********************************************************--> 24*226a8927SAndrew Rist 25*226a8927SAndrew Rist 26cdf0e10cSrcweir 27cdf0e10cSrcweir<helpdocument version="1.0"> 28cdf0e10cSrcweir<meta> 29cdf0e10cSrcweir<topic id="textsharedguidedata_queriesxhp" indexer="include" status="PUBLISH"> 30cdf0e10cSrcweir<title id="tit" xml-lang="en-US">Working with Queries</title> 31cdf0e10cSrcweir<filename>/text/shared/guide/data_queries.xhp</filename> 32cdf0e10cSrcweir</topic> 33cdf0e10cSrcweir<history> 34cdf0e10cSrcweir<created date="2004-08-19T12:57:48">Working with Queries</created> 35cdf0e10cSrcweir<lastedited date="2006-11-28T09:15:16">YJ: checked</lastedited> 36cdf0e10cSrcweir</history> 37cdf0e10cSrcweir</meta> 38cdf0e10cSrcweir<body> 39cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="index" id="bm_id840784"><bookmark_value>databases;creating queries</bookmark_value> 40cdf0e10cSrcweir<bookmark_value>filtering;data in databases</bookmark_value> 41cdf0e10cSrcweir<bookmark_value>queries;defining (Base)</bookmark_value> 42cdf0e10cSrcweir<bookmark_value>defining;queries (Base)</bookmark_value> 43cdf0e10cSrcweir<bookmark_value>wizards;database queries</bookmark_value> 44cdf0e10cSrcweir<bookmark_value>Query Wizard (Base)</bookmark_value> 45cdf0e10cSrcweir</bookmark><comment>MW added (Base) to 3 entries</comment> 46cdf0e10cSrcweir<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> 47cdf0e10cSrcweir</variable></paragraph> 48cdf0e10cSrcweir<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> 49cdf0e10cSrcweir<paragraph role="heading" id="par_idN1061A" xml-lang="en-US" level="2" l10n="NEW">Creating a New Query With the Query Wizard</paragraph> 50cdf0e10cSrcweir<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> 51cdf0e10cSrcweir<list type="ordered"> 52cdf0e10cSrcweir<listitem> 53cdf0e10cSrcweir<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> 54cdf0e10cSrcweir</listitem> 55cdf0e10cSrcweir<listitem> 56cdf0e10cSrcweir<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> 57cdf0e10cSrcweir</listitem> 58cdf0e10cSrcweir<listitem> 59cdf0e10cSrcweir<paragraph role="paragraph" id="par_idN1063E" xml-lang="en-US" l10n="NEW">Click <emph>Use Wizard to Create Query</emph>.</paragraph> 60cdf0e10cSrcweir</listitem> 61cdf0e10cSrcweir</list> 62cdf0e10cSrcweir<paragraph role="heading" id="par_idN10645" xml-lang="en-US" level="2" l10n="NEW">Creating a New Query With the Design View</paragraph> 63cdf0e10cSrcweir<list type="ordered"> 64cdf0e10cSrcweir<listitem> 65cdf0e10cSrcweir<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> 66cdf0e10cSrcweir</listitem> 67cdf0e10cSrcweir<listitem> 68cdf0e10cSrcweir<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> 69cdf0e10cSrcweir</listitem> 70cdf0e10cSrcweir<listitem> 71cdf0e10cSrcweir<paragraph role="paragraph" id="par_idN10658" xml-lang="en-US" l10n="NEW">Click <emph>Create Query in Design View</emph>.</paragraph> 72cdf0e10cSrcweir</listitem> 73cdf0e10cSrcweir</list> 74cdf0e10cSrcweir<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> 75cdf0e10cSrcweir<section id="relatedtopics"> 76cdf0e10cSrcweir<paragraph role="paragraph" id="par_idN1067B" xml-lang="en-US" l10n="NEW"> 77cdf0e10cSrcweir<embedvar href="text/shared/explorer/database/main.xhp#base"/> 78cdf0e10cSrcweir</paragraph> 79cdf0e10cSrcweir<paragraph role="paragraph" id="par_idN10683" xml-lang="en-US" l10n="NEW"> 80cdf0e10cSrcweir<embedvar href="text/shared/guide/database_main.xhp#database_main"/> 81cdf0e10cSrcweir</paragraph> 82cdf0e10cSrcweir</section> 83cdf0e10cSrcweir</body> 84cdf0e10cSrcweir</helpdocument> 85