{"title":"DB GroupBy","nodeType":"Manipulator","id":"*YJIwMkiTMpJtVTUT","factoryName":"org.knime.database.node.manipulation.groupby.DBGroupByNodeFactory","factoryId":"org.knime.database.node.manipulation.groupby.DBGroupByNodeFactory","path":["DB","Query"],"owner":"knime","ownerAccountId":"account:team:b5f0848f-496d-4e6a-b869-fa3532248db7","description":"<p>The DB GroupBy node allows rows to be grouped by the selected columns from the input DB Data connection. An <i>SQL GROUP BY</i> clause is interactively created by selecting the columns to group by and the columns to aggregate.</p>\n            \n            <p>The columns to aggregate can be either defined by selecting the columns directly, by name based on a search pattern or based on the data type. Input columns are handled in this order and only considered once e.g. columns that are added directly in the &#34;Manual Aggregation&#34; section are ignored even if their name matches a search pattern in the &#34;Pattern Based Aggregation&#34; section or their type matches a defined type in the &#34;Type Based Aggregation&#34; section. The same holds for columns that are added based on a search pattern. They are ignored even if they match a criterion that has been defined in the &#34;Type Based Aggregation&#34; section.</p>\n            \n            <p>In the &#34;Pattern Based Aggregation&#34; section you can assign aggregation methods to columns based on a search pattern. The pattern can be either a string with wildcards or a <a href=\"https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/regex/Pattern.html#sum\" rel=\"ugc nofollow noopener noreferrer\"> regular expression</a> . Columns where the name matches the pattern but where the data type is not compatible with the selected aggregation method are ignored. Only columns that have not been selected as group column or that have not been selected as aggregation column in the &#34;Manual Aggregation&#34; section are considered.</p>\n            \n            <p>The &#34;Type Based Aggregation&#34; section allows to select an aggregation method for all columns of a certain data type e.g. to compute the mean for all decimal columns (DoubleCell). Only columns that have not been handled by the other sections e.g. group, column based and pattern based are considered. The data type list to choose from contains the types of the input table and all registered data types.</p>\n            \n        \n        ","shortDescription":"The DB GroupBy node allows to group by the selected columns and output aggregated data to the generated groups.","keywords":["database","db"],"deprecated":false,"streamable":false,"tags":["DB","Query"],"icon":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAELSURBVDiNpdO/LkRREAbw33ATIpuIjo1GIYoVUXoLCq/hRbZU8QIqnVCptpNIJAqFQoGGRCJCPYq9y811/NmYZIqZnJnv+2bmRGb6jwUucVX7eWaejNskW36Ymf7qURc17QGLmEG/ADjIzIMSgyccoVfPZb7ALrHXZFBhCxeZedtCesRCI+7h9OsAhmhR097BGWbbWrFeZBARN+hiqu75hpeC9pFtR8TGKKiw1HpwnD8fx4zhfD5V4NnwDvqYK63rWwnoZObbqFtETEfEZD2X1QbQSolOhSoi1rCMTcOtdNHBxQ9SPho8t3IPmfkaERPYL9QM2on2oeyOc8oVrnGHexzj8DfaTYv/fud3dxPNYobHWEwAAAAASUVORK5CYII=","views":[],"inPorts":[{"objectClass":"org.knime.database.port.DBDataPortObject","color":"66002d","dataType":"DB Data","optional":false,"name":"DB Data","description":"DB Data to apply group by."}],"outPorts":[{"objectClass":"org.knime.database.port.DBDataPortObject","color":"66002d","dataType":"DB Data","optional":false,"name":"Grouped DB Data","description":"DB Data with grouped rows."}],"dynInPorts":[],"dynOutPorts":[],"additionalSiteInformation":{"url":"https://update.knime.com/analytics-platform/5.12","trusted":true,"enabledByDefault":true,"name":"KNIME Analytics Platform 5.12 Update Site","version":"5.12.0"},"dialog":[{"sectionName":"Options","fields":[{"name":"Group columns","description":"Select one or more column(s) according to which the group(s) is/are created.","optional":false},{"name":"Add COUNT(*) column","description":"If enabled, an additional column containing the count of rows per group (i.e., <tt>COUNT(*)</tt> ) will be added to the output table.","optional":false},{"name":"Aggregation","description":"Select one or more column(s) for aggregation from the available columns list. Change the aggregation method in the Aggregation column of the table. You can add the same column multiple times.\n<ul><li><b>Column</b> : The column to aggregate</li><li><b>Aggregation</b> : The aggregation method to use</li></ul>","optional":false},{"name":"Pattern Based Aggregation","description":"<p>The search pattern can either be a string with wildcards or a <a href=\"https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/regex/Pattern.html#sum\" rel=\"ugc nofollow noopener noreferrer\"> regular expression</a> .</p>\nSupported wildcards are <code>*</code> (matches any number of characters) and <code>?</code> (matches one character) e.g. <code>KNI*</code> would match all strings that start with &#34;KNI&#34; such as &#34;KNIME&#34; whereas <code>KNI?</code> would match only strings that start with &#34;KNI&#34; followed by a fourth character.\n<ul><li><b>Search pattern</b> : Wildcard or regular expression pattern</li><li><b>Pattern type</b> : Specifies whether the search pattern is a regular expression or a string with wildcards ( <code>*</code> and <code>?</code> ).</li><li><b>Aggregation</b> : The aggregation method to use</li></ul>","optional":false},{"name":"Type Based Aggregation","description":"Aggregations are applied to all columns of the selected type.\n<ul><li><b>Data Type</b> : Select the data type to apply the aggregation on. You can add the same data type multiple times. The list contains all input types of the table and registered data types.</li><li><b>Aggregation</b> : The aggregation method to use</li></ul>","optional":false},{"name":"Type matching","description":"Define how strict the type matching for the aggregations is.\n<ul><li><b>Strict</b> : The type based aggregation method is only applied to columns of the selected type.</li><li><b>Include sub-types</b> : The type based aggregation method is also applied to columns containing sub-types of the selected type. For example <i>Boolean</i> is a sub-type of <i>Number (Integer)</i> , <i>Number (Integer)</i> of <i>Number (Long)</i> , and <i>Number (Long)</i> of <i>Number (Float)</i> .</li></ul>","optional":false},{"name":"Column naming","description":"The name of the resulting aggregation column(s) depends on the selected naming schema.\n<ul><li>Keep original name(s): Keeps the original column names. Note that you can use all aggregation columns only once with this column naming option to prevent duplicate column names.</li><li>Aggregation method (column name): Uses the aggregation method first and appends the column name in brackets</li><li>Column name (aggregation method): Uses the column name first and appends the aggregation method in brackets</li></ul>\nAll aggregation methods get a * appended if the missing value option is not ticked in the aggregation settings in order to distinguish between columns that considered missing values in the aggregation process and columns that do not.","optional":false}]}],"links":[],"kudos":[],"kudosCount":0,"bundleInformation":{"bundleVersion":"5.12.0.v202606171318","bundleName":"KNIME database nodes","bundleSymbolicName":"org.knime.database.nodes","bundleVendor":"KNIME AG, Zurich, Switzerland","featureSymbolicName":"org.knime.features.database","featureName":"KNIME Database","featureVersion":"5.12.0.v202606171318","featureVendor":"KNIME AG, Zurich, Switzerland","extensionId":"*0mIkLShcIfCXS7Y-"},"frequentSuccessors":[{"id":"*d8TQIqNnO3XRVTjQ","factoryName":"org.knime.database.node.io.reader.DBReadNodeFactory","probability":0.42857142857142855},{"id":"*5nnLXgQCDPb0sDP1","factoryName":"org.knime.database.node.manipulation.filter.row.DBFilterRowNodeFactory","probability":0.21428571428571427},{"id":"*LRLx-cdMiV7H2TRq","factoryName":"org.knime.database.node.io.reader.DBReaderNodeFactory","probability":0.21428571428571427},{"id":"*FWHpi7M8fzVHRit0","factoryName":"org.knime.database.node.manipulation.joiner.DBJoinNodeFactory","probability":0.07142857142857142},{"id":"*Ts6MTyaKUWegubym","factoryName":"org.knime.database.node.connector.tablewriter.DBConnectionTableWriterNodeFactory","probability":0.07142857142857142}]}
