{"id":10792,"date":"2020-05-07T15:08:24","date_gmt":"2020-05-07T18:08:24","guid":{"rendered":"http:\/\/kb.elipse.com.br\/en\/?p=10792"},"modified":"2020-05-07T15:09:45","modified_gmt":"2020-05-07T18:09:45","slug":"transfering-data-between-tables-with-elipse-e3","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/transfering-data-between-tables-with-elipse-e3\/","title":{"rendered":"Transfering data between tables with Elipse E3."},"content":{"rendered":"<h3><strong>Question:<\/strong><\/h3>\n<p>How can I transfer data between two different tables from a query with <a href=\"https:\/\/www.elipse.com.br\/en\/produto\/elipse-e3\/\" target=\"_blank\" rel=\"noopener noreferrer\">Elipse E3<\/a>?<\/p>\n<h3><\/h3>\n<h3><strong>Solution:<\/strong><\/h3>\n<div class=\"page\" title=\"Page 125\">\n<div class=\"layoutArea\">\n<div class=\"column\">\n<p>The object E3Query helps setting up queries in the application&#8217;s database. This object displays a friendly interface, in order to allow creating SQL queries with a graphic interface that instantly follow up the generated SQL code. Additionally, E3Query allows showing data from the last <em>n<\/em> days, hours, or months, depending on the filter that was implemented. This information is displayed in tables, and their data can be transferred from one table to another.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>When you transfer data between tables, there are two possibilities:<\/p>\n<ul>\n<li>both tables display the same columns structure; or<\/li>\n<li>the first and second table only share a few columns in common.<\/li>\n<\/ul>\n<p>That is to say, each case will require a different type of solution.<\/p>\n<p>In the first example, when both tables share the same columns structure, you will need to use the following SQL syntax in a query:<\/p>\n<pre>INSERT INTO SecondTable\r\nSELECT * FROM FirstTable<\/pre>\n<p>On the other hand, the second example shows two tables where only a few columns are similar. In that case, you will need to add these columns to the code, as seen below:<\/p>\n<pre>INSERT INTO SecondTable\r\n(ColumnName01, ColumnName02, ColumnName03 ,...)\r\nSELECT ColumnName01, ColumnName02, ColumnName03 ,...\r\nFROM FirstTable<\/pre>\n<p>In the latter case, the name of the columns don&#8217;t have to be the same; you will only need to inform where they come from and where they go to.<\/p>\n<p>If you need to use a condition in order to transfer data, you can use the expression WHERE; for further information, we suggest reading the related articles below.<\/p>\n<p>&nbsp;<\/p>\n<h3>Related articles:<\/h3>\n<hr \/>\n<ul>\n<li><a href=\"https:\/\/kb.elipse.com.br\/en\/structure-query-language-sql-chapter-6-sql-commands\/\" target=\"_blank\" rel=\"noopener noreferrer\">Structure Query Language (SQL): Chapter 6 \u2013 SQL Commands.<\/a><\/li>\n<li><a href=\"https:\/\/kb.elipse.com.br\/en\/kb28190-filter-in-sql-query-using-time-value\/\"><u><span style=\"color: #000120;\">KB-28190: Filter in SQL query using time value.<\/span><\/u><\/a><\/li>\n<li><a href=\"https:\/\/kb.elipse.com.br\/en\/kb33119-query-filter\/\">KB-33119: Query filter.<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Question: How can I transfer data between two different tables from a query with Elipse E3? Solution: The object E3Query helps setting up queries in the application&#8217;s database. This object&hellip;<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"categories":[743,730],"tags":[1034,1036,1035],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to transfer data from queries between tables with Elipse E3.<\/title>\n<meta name=\"description\" content=\"This article illustrates how to transfer data from SQL queries between tables with different column structures at Elipse E3.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kb.elipse.com.br\/en\/transfering-data-between-tables-with-elipse-e3\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to transfer data from queries between tables with Elipse E3.\" \/>\n<meta property=\"og:description\" content=\"This article illustrates how to transfer data from SQL queries between tables with different column structures at Elipse E3.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/en\/transfering-data-between-tables-with-elipse-e3\/\" \/>\n<meta property=\"og:site_name\" content=\"Elipse Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/elipsesoftware\" \/>\n<meta property=\"article:published_time\" content=\"2020-05-07T18:08:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-07T18:09:45+00:00\" \/>\n<meta name=\"author\" content=\"Marco Antonio Gomes Silva\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Marco Antonio Gomes Silva\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/transfering-data-between-tables-with-elipse-e3\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/transfering-data-between-tables-with-elipse-e3\/\"},\"author\":{\"name\":\"Marco Antonio Gomes Silva\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/fa6d0b4f046e3b2c208aaf84a40154e9\"},\"headline\":\"Transfering data between tables with Elipse E3.\",\"datePublished\":\"2020-05-07T18:08:24+00:00\",\"dateModified\":\"2020-05-07T18:09:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/transfering-data-between-tables-with-elipse-e3\/\"},\"wordCount\":283,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"keywords\":[\"copy data\",\"transfer data between tables\",\"transfer data\"],\"articleSection\":[\"E3Query\",\"Elipse E3\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/transfering-data-between-tables-with-elipse-e3\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/transfering-data-between-tables-with-elipse-e3\/\",\"url\":\"https:\/\/kb.elipse.com.br\/en\/transfering-data-between-tables-with-elipse-e3\/\",\"name\":\"How to transfer data from queries between tables with Elipse E3.\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2020-05-07T18:08:24+00:00\",\"dateModified\":\"2020-05-07T18:09:45+00:00\",\"description\":\"This article illustrates how to transfer data from SQL queries between tables with different column structures at Elipse E3.\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/transfering-data-between-tables-with-elipse-e3\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/transfering-data-between-tables-with-elipse-e3\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/transfering-data-between-tables-with-elipse-e3\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Transfering data between tables with Elipse E3.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kb.elipse.com.br\/#website\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"name\":\"Elipse Knowledgebase\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kb.elipse.com.br\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\",\"name\":\"Elipse Software\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"sameAs\":[\"http:\/\/www.facebook.com\/elipsesoftware\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"contentUrl\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"width\":161,\"height\":58,\"caption\":\"Elipse Software\"},\"image\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/fa6d0b4f046e3b2c208aaf84a40154e9\",\"name\":\"Marco Antonio Gomes Silva\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7d19cf85bb457f81816ff5d785e3b9f4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7d19cf85bb457f81816ff5d785e3b9f4?s=96&d=mm&r=g\",\"caption\":\"Marco Antonio Gomes Silva\"},\"url\":\"https:\/\/kb.elipse.com.br\/en\/author\/marco\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to transfer data from queries between tables with Elipse E3.","description":"This article illustrates how to transfer data from SQL queries between tables with different column structures at Elipse E3.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kb.elipse.com.br\/en\/transfering-data-between-tables-with-elipse-e3\/","og_locale":"en_US","og_type":"article","og_title":"How to transfer data from queries between tables with Elipse E3.","og_description":"This article illustrates how to transfer data from SQL queries between tables with different column structures at Elipse E3.","og_url":"https:\/\/kb.elipse.com.br\/en\/transfering-data-between-tables-with-elipse-e3\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2020-05-07T18:08:24+00:00","article_modified_time":"2020-05-07T18:09:45+00:00","author":"Marco Antonio Gomes Silva","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Marco Antonio Gomes Silva","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/en\/transfering-data-between-tables-with-elipse-e3\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/en\/transfering-data-between-tables-with-elipse-e3\/"},"author":{"name":"Marco Antonio Gomes Silva","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/fa6d0b4f046e3b2c208aaf84a40154e9"},"headline":"Transfering data between tables with Elipse E3.","datePublished":"2020-05-07T18:08:24+00:00","dateModified":"2020-05-07T18:09:45+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/en\/transfering-data-between-tables-with-elipse-e3\/"},"wordCount":283,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"keywords":["copy data","transfer data between tables","transfer data"],"articleSection":["E3Query","Elipse E3"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/en\/transfering-data-between-tables-with-elipse-e3\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/en\/transfering-data-between-tables-with-elipse-e3\/","url":"https:\/\/kb.elipse.com.br\/en\/transfering-data-between-tables-with-elipse-e3\/","name":"How to transfer data from queries between tables with Elipse E3.","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2020-05-07T18:08:24+00:00","dateModified":"2020-05-07T18:09:45+00:00","description":"This article illustrates how to transfer data from SQL queries between tables with different column structures at Elipse E3.","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/en\/transfering-data-between-tables-with-elipse-e3\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/en\/transfering-data-between-tables-with-elipse-e3\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/en\/transfering-data-between-tables-with-elipse-e3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"Transfering data between tables with Elipse E3."}]},{"@type":"WebSite","@id":"https:\/\/kb.elipse.com.br\/#website","url":"https:\/\/kb.elipse.com.br\/","name":"Elipse Knowledgebase","description":"","publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kb.elipse.com.br\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/kb.elipse.com.br\/#organization","name":"Elipse Software","url":"https:\/\/kb.elipse.com.br\/","sameAs":["http:\/\/www.facebook.com\/elipsesoftware"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","contentUrl":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","width":161,"height":58,"caption":"Elipse Software"},"image":{"@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/fa6d0b4f046e3b2c208aaf84a40154e9","name":"Marco Antonio Gomes Silva","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7d19cf85bb457f81816ff5d785e3b9f4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7d19cf85bb457f81816ff5d785e3b9f4?s=96&d=mm&r=g","caption":"Marco Antonio Gomes Silva"},"url":"https:\/\/kb.elipse.com.br\/en\/author\/marco\/"}]}},"_links":{"self":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/10792"}],"collection":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/comments?post=10792"}],"version-history":[{"count":3,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/10792\/revisions"}],"predecessor-version":[{"id":10805,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/10792\/revisions\/10805"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=10792"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=10792"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=10792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}