{"id":2856,"date":"2014-05-27T21:25:50","date_gmt":"2014-05-27T19:25:50","guid":{"rendered":"https:\/\/www.itlektor.cz\/?p=2856"},"modified":"2020-09-04T09:11:35","modified_gmt":"2020-09-04T07:11:35","slug":"vytvoreni-dotazu","status":"publish","type":"post","link":"https:\/\/www.itlektor.cz\/en\/vytvoreni-dotazu\/","title":{"rendered":"Setting new query"},"content":{"rendered":"<p><\/p>\n<p style=\"text-align: justify;\">To get information from tables are designed <strong>Queries<\/strong>. This object in Access gets the data from tables or other queries like filters in Excel, but at a much more advanced level. Queries can not only filter but also to count, group, and even make multiple changes in\u00a0tables &#8211; eg. increasing\u00a0the price of all products. If this guide has helped you, become a fan on <a href=\"http:\/\/www.facebook.com\/itlektorcz\" target=\"_blank\" rel=\"noopener\">Facebook<\/a> and recommend this site to your friends, it\u00a0can be useful for them too<\/p>\n<h1 style=\"text-align: justify;\">Making of\u00a0query<\/h1>\n<p>We create a new query through <strong>Create<\/strong> tab .<\/p>\n<ul>\n<li>Query Wizard &#8230; step by step, create a simple query<\/li>\n<li>Query design &#8230; creates a new query and will switch to Design view<\/li>\n<\/ul>\n<p style=\"text-align: justify;\">According to personal experience, I prefer the <strong>Query Design<\/strong>. After creating the query is first shown a list of tables or previously saved queries. The user selects, from which data will be query created. Query window consists of:<\/p>\n<ul>\n<li>upper space for\u00a0tables or queries from which we obtain data<\/li>\n<li>lower space or a criteria grid is subdivided into:\n<ul>\n<li>Field &#8230; name od column, with which\u00a0we work<\/li>\n<li>Table &#8230; table name in which column appears<\/li>\n<li>Sort &#8230; you can sort the columns in a query in ascending or descending order<\/li>\n<li>Show &#8230; sometimes it is advisable to hide the column, even though it counts<\/li>\n<li>Criteria\u00a0&#8230; area for creating search\u00a0conditions<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Adding a field to a query is done 2X clicking on the name field in the upper area of the table.<\/p>\n<p>Adding a table to the query is performed by the Show table icon on the Design tab of the Design View.<\/p>\n<figure id=\"attachment_2857\" aria-describedby=\"caption-attachment-2857\" style=\"width: 550px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.itlektor.cz\/wp-content\/uploads\/2014\/05\/qry1.png\"><img decoding=\"async\" class=\"size-large wp-image-2857\" src=\"https:\/\/www.itlektor.cz\/wp-content\/uploads\/2014\/05\/qry1-1024x656.png\" alt=\"Tvorba Dotazu\" width=\"550\" height=\"352\" title=\"\" srcset=\"https:\/\/www.itlektor.cz\/wp-content\/uploads\/2014\/05\/qry1-1024x656.png 1024w, https:\/\/www.itlektor.cz\/wp-content\/uploads\/2014\/05\/qry1-300x192.png 300w, https:\/\/www.itlektor.cz\/wp-content\/uploads\/2014\/05\/qry1.png 1204w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/a><figcaption id=\"caption-attachment-2857\" class=\"wp-caption-text\">Query creation<\/figcaption><\/figure>\n<h1>Save the query<\/h1>\n<p style=\"text-align: justify;\">Object designs\u00a0should always be saved. The quickest way is to use a small floppy disk icon on the Quick Access Toolbar on, or in File&gt; Save Object As. Query\u00a0name may have a maximum of 64 characters and can not contain any special symbols. It&#8217;s good to get used appropriately naming objects and this procedure applied to the entire database. Example of names may be qry_OrdersCount or qryOrdersCount etc.<\/p>\n<p style=\"text-align: justify;\">After saving the query, it\u00a0can be activated by selecting Home&gt; Views &gt; Data Sheet. Saved query in the Navigation pane is activated and 2x click.<\/p>\n<p><\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>To get information from tables are designed Queries. This object in Access gets the data from tables or other queries like filters in Excel, but at a much more advanced level. Queries can not only filter but also to count, group, and even make multiple changes in\u00a0tables &#8211; eg. increasing\u00a0the price of all products. If [&hellip;]<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":2857,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[7],"tags":[51,58,50],"_links":{"self":[{"href":"https:\/\/www.itlektor.cz\/en\/wp-json\/wp\/v2\/posts\/2856"}],"collection":[{"href":"https:\/\/www.itlektor.cz\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itlektor.cz\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itlektor.cz\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itlektor.cz\/en\/wp-json\/wp\/v2\/comments?post=2856"}],"version-history":[{"count":0,"href":"https:\/\/www.itlektor.cz\/en\/wp-json\/wp\/v2\/posts\/2856\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itlektor.cz\/en\/wp-json\/wp\/v2\/media\/2857"}],"wp:attachment":[{"href":"https:\/\/www.itlektor.cz\/en\/wp-json\/wp\/v2\/media?parent=2856"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itlektor.cz\/en\/wp-json\/wp\/v2\/categories?post=2856"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itlektor.cz\/en\/wp-json\/wp\/v2\/tags?post=2856"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}