<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4184229675229410615</id><updated>2024-12-18T19:29:12.763-08:00</updated><category term="AVG() Function"/><category term="Aggregate Functions"/><category term="Aggregate Functions in Pentaho Spoon"/><category term="Alternate or Secondary Key"/><category term="CONTAINS"/><category term="Calculations in SQL Query"/><category term="Candidate Key"/><category term="Check Table Column Existence in Pentaho"/><category term="Composite and Compound Keys"/><category term="Concatenation in Pentaho Kettle"/><category term="Database Keys"/><category term="Date SQL Query"/><category term="Date to String Conversion in Pentaho Kettle"/><category term="ETL Scripting with Open Source ETL Tools"/><category term="EXISTS"/><category term="FIRST() Function"/><category term="Foreign key"/><category term="Full Text Search"/><category term="Generate Mapping"/><category term="Group By Statement"/><category term="Group by SQL Query"/><category term="Having Clause"/><category term="Hex to ineteger Conversion in Kettle"/><category term="How to Set Environment Variables in Kettle"/><category term="How to Split a String in pentaho Kettle"/><category term="How to Write ETL Script in Pentaho"/><category term="How to get Distinct Count in Pentaho"/><category term="INSERT"/><category term="LIKE"/><category term="Loading xml data using Pentaho ETL tool"/><category term="Monthly Count at Column Level"/><category term="NOT IN and NOT BETWEEN Clauses"/><category term="Normalization"/><category term="Pentaho Installation"/><category term="Performing Calculations in Pentaho Spoon"/><category term="Primary Key"/><category term="ROW Number Function"/><category term="SELECT"/><category term="SELECT AS CLAUSE"/><category term="SQL Between Clause"/><category term="SQL Distinct Unique Records"/><category term="SQL IN"/><category term="SQL Joins"/><category term="SQL Last() Function"/><category term="SQL Multiple Conditional Queries"/><category term="SQL NULL Conditional"/><category term="SQL Not Exists"/><category term="SQL Query For Monthly Calculation"/><category term="SQLComparison Operators"/><category term="Select Statement to Extract a File"/><category term="Sql Max() Function"/><category term="Sql Min() Function"/><category term="Sql SUM() Function"/><category term="Storing Transformations and Jobs in local Files System"/><category term="Super Key"/><category term="Surrogate  Key"/><category term="The COUNT() function"/><category term="UNION /  INTERSECT"/><category term="Unique key"/><category term="WHERE"/><category term="What is Checksum in Pentaho Spoon"/><category term="What is Get Variable in Pentaho Kettle"/><category term="What is Pentaho"/><category term="What is Set Variable in Pentaho Kettle"/><title type='text'>Query Inn</title><subtitle type='html'>Ways towords providing a framework for Query optimization,Business Intelligence,Easy and fast learning of Database Engineering Tools with best practices.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>73</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-7343137728052702628</id><published>2010-07-21T10:09:00.000-07:00</published><updated>2010-07-21T10:10:46.288-07:00</updated><title type='text'>Calculate Grand Total in SQL Query</title><content type='html'>&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=quer-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0201615762&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;To calculate a grand total within an SQL query, the keyword available for this purpose is COMPUTE Keyword which is used with out a BY clause&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:sql&quot;&gt;SELECT itemid, Qty, actualPrice, subtotal
FROM SalesOrderDetail s
WHERE  actualPrice&amp;lt; 1000
COMPUTE SUM(Qty), SUM(subtotal)&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/7343137728052702628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/7343137728052702628' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/7343137728052702628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/7343137728052702628'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/07/calculate-grand-total-in-sql.html' title='Calculate Grand Total in SQL Query'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-6903393933447740073</id><published>2010-06-23T08:54:00.000-07:00</published><updated>2010-07-17T09:21:04.613-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Date SQL Query"/><title type='text'>Date wise SQL Query</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;Column Level SQL Query to extract data with date as condition&lt;/div&gt;&lt;br /&gt;
&lt;pre class=&quot;brush:sql&quot;&gt;Select employee_id, employee_name
(Select count(*) from employee_leave el where e.employee_id=el.employee_id
and el.leave_date between e.hire_Date and &#39;2010-06-20 23:59:59&#39;)
from tbl_employee e
where e.hire_date between &#39;2010-06-01 00:00:00&#39; and &#39;2010-06-01 23:59:59&#39;&lt;/pre&gt;here in the above query for extracting the total leaves the final date has been set from the employee hire date.</content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/6903393933447740073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/6903393933447740073' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/6903393933447740073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/6903393933447740073'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/06/date-wise-sql-query.html' title='Date wise SQL Query'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-6119485625046450755</id><published>2010-05-25T11:20:00.000-07:00</published><updated>2010-05-25T11:23:28.658-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Generate Mapping"/><title type='text'>Generate Mapping against target Step</title><content type='html'>&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;In cases where you have a fixed target table, you will want to map the fields from the stream to their corresponding fields in the target output table. This is normally&amp;nbsp; accomplished using a Select Values step in your transformation. The &#39;Generate mapping against target&#39; option provides you with an easy to use dialog for defining these mappings that will automatically create the resulting Select Values step that can be dropped into your transformation flow prior to the table output step. To access the &#39;Generate mapping against target&#39; option is accessed by right clicking on the table output step.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;After defining your mappings, select OK and the Select Values step containing your mappings will appear on the workspace. Simply, attach the mapping step into your transformation immediately Attach the mapping step into your transformation just before the table output step. &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/6119485625046450755/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/6119485625046450755' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/6119485625046450755'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/6119485625046450755'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/05/generate-mapping-against-target-step.html' title='Generate Mapping against target Step'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-2153676696215018720</id><published>2010-05-25T10:58:00.000-07:00</published><updated>2010-05-25T11:07:09.239-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Pentaho Installation"/><title type='text'>Pentaho Spoon Installation</title><content type='html'>&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;The first step is the installation of Sun Microsystems Java Runtime Environment version 1.4 or higher. You can download a JRE &lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;After this, you can simply unzip the zipfile: Kettle3.0.0. zip in a directory of your choice. In the Kettle directory where you unzipped the file, you will find a number of files. Under Unixlike environments (Solaris, Linux, MacOS, …) you will need to make the shell scripts executable. Execute these commands to make all shell scripts in the Kettle directory executable:&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;b&gt;cd Kettle&lt;br /&gt;
chmod +x *.sh&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;u&gt;&lt;b&gt;Starting Spoon:&lt;/b&gt;&lt;/u&gt;.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;To launch Spoon on the different platforms these are the scripts that are provided:&lt;br /&gt;
Spoon.bat: launch Spoon on the Windows platform.&lt;br /&gt;
sh spoon.sh: launch Spoon on a Unixlike&lt;br /&gt;
platform: Linux, Apple OSX, Solaris, ...&lt;br /&gt;
If you want to make a shortcut under the Windows platform an icon is provided: “spoon.ico” to set the correct icon. Simply point the shortcut to the Spoon.bat file.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;b&gt;Supported platforms&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;The Spoon GUI is supported on the following platforms:&lt;/li&gt;
&lt;li&gt;&amp;nbsp;Microsoft Windows: all platforms since Windows 95, including Vista&lt;/li&gt;
&lt;li&gt;&amp;nbsp;Linux GTK: on i386 and x86_64 processors&lt;/li&gt;
&lt;li&gt;&amp;nbsp;Apple&#39;s OSX: works both on PowerPC and Intel machines&lt;/li&gt;
&lt;li&gt;&amp;nbsp;Solaris: using a Motif interface (GTK optional)&lt;/li&gt;
&lt;li&gt;&amp;nbsp;AIX: using a Motif interface&lt;/li&gt;
&lt;li&gt;&amp;nbsp;HPUX:&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/2153676696215018720/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/2153676696215018720' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/2153676696215018720'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/2153676696215018720'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/05/pentaho-spoon-installation.html' title='Pentaho Spoon Installation'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-4204421878410194055</id><published>2010-05-21T09:36:00.000-07:00</published><updated>2010-05-21T09:43:50.254-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Group by SQL Query"/><title type='text'>Group by SQL Query</title><content type='html'>To extract Country wise sales count for the period&amp;nbsp; MAY-2010 use below code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;brush:sql&quot;&gt;Select c.country_name, count(s.id)
from tbl_sales s inner join tbl_country c on s.country_id=c.country_id
where s.saels_date between &#39;2010-05-01 00:00:00&#39; and &#39;2010-05-31 23:59:59&#39;
group by c.coutnry_name 
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/4204421878410194055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/4204421878410194055' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/4204421878410194055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/4204421878410194055'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/05/how-to-extrct-country-wise-sales-count.html' title='Group by SQL Query'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-5758866862661799841</id><published>2010-05-16T11:47:00.001-07:00</published><updated>2010-05-16T11:47:54.757-07:00</updated><title type='text'>How to Insert Extracted Values in Pentaho Spoon</title><content type='html'>&lt;p align=&quot;justify&quot;&gt;&lt;font face=&quot;Trebuchet MS&quot;&gt;To insert the extracted records&amp;#160; from the transactional source database into the destination or data warehouse&amp;#160; following is simple way to do it.&lt;/font&gt;&lt;/p&gt;  &lt;p align=&quot;justify&quot;&gt;&lt;font face=&quot;Trebuchet MS&quot;&gt;Open the Pentaho Spoon go to file menu and open new Transformation.&lt;/font&gt;&lt;/p&gt;  &lt;p align=&quot;justify&quot;&gt;&lt;font face=&quot;Trebuchet MS&quot;&gt;in the design mode drill down the &lt;strong&gt;Input Folder &lt;/strong&gt;and drag &amp;amp; drop the &lt;strong&gt;Table Input Step, &lt;/strong&gt;double click the &lt;strong&gt;Table Input&amp;#160; &lt;/strong&gt;and set the source database&lt;strong&gt; (How to Set Connection Parameters in Pentaho Spoon)&lt;/strong&gt;connection parameters this will extract all required fields &lt;/font&gt;&lt;/p&gt;  &lt;p align=&quot;justify&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiDi8c05heTwsHGwkQ6PpHrFVSmOd9iweSDgBD0ENF9p71vlrj4i2-K71A6ZZYXpSRecBgf0rcQh456o2v-G5U62cP-ReYhm1CoTvOQag8fHqdcM3B_xAhI9iwRjZVr_R-5W1nyTtBOSjU/s1600-h/image%5B2%5D.png&quot;&gt;&lt;font face=&quot;Trebuchet MS&quot; color=&quot;#333333&quot;&gt;&lt;img title=&quot;image&quot; style=&quot;border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px&quot; height=&quot;90&quot; alt=&quot;image&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPp08Eop4CYytXsBjkL7iJ2lh9Y-TSWo4KIFY5m3jSOfzdPliUOUjDIo5OLCYNn_8WlALahCrKnIV2v8VdG0cc-6crKwf6UTOWXljZcFrM8-wn6BRExahrXgVhaWhuZ0XgZa4ioxNdJhg/?imgmax=800&quot; width=&quot;244&quot; border=&quot;0&quot; /&gt;&lt;/font&gt;&lt;/a&gt;&lt;font face=&quot;Trebuchet MS&quot;&gt; &lt;/font&gt;&lt;/p&gt;  &lt;p align=&quot;justify&quot;&gt;&lt;font face=&quot;Trebuchet MS&quot;&gt;Again go to the design mode and this time drag &amp;amp; drop the &lt;strong&gt;INERT / UPDATE Step &lt;/strong&gt;lying under the &lt;strong&gt;OUT PUT Folder &lt;/strong&gt;now hold the &lt;strong&gt;Shift key &lt;/strong&gt;and place your mouse icon over the &lt;strong&gt;TABLE INPUT &lt;/strong&gt;and drag upto the &lt;strong&gt;INERT / UPDATE Step &lt;/strong&gt;this will generate a Green color Arrow called a &lt;strong&gt;hope&lt;/strong&gt; with its tail at the &lt;strong&gt;TABLE INPUT &lt;/strong&gt;and head towards &lt;strong&gt;INERT / UPDATE Step. &lt;strong&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;  &lt;p align=&quot;justify&quot;&gt;&lt;font face=&quot;Trebuchet MS&quot;&gt;You can enable, disable or even delete the &lt;strong&gt;hope by placing &lt;/strong&gt;your mouse over it and with right click. now double click the&amp;#160; &lt;strong&gt;INERT / UPDATE Step &lt;/strong&gt;&lt;/font&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR4dC-Eazdrbm9_vwp7CB9sy1mMFv12ciVZ_d1PJ0bmLQ5DuxTOGj6P36nnb3oGy6vGg_mjGAZU-J3WaABuX8mxYLThxeFTcpv3QX2GcQWXzCQ7cIF-1AeI6d93wg-h9JK9T5xR9hCnb8/s1600-h/image%5B6%5D.png&quot;&gt;&lt;font face=&quot;Trebuchet MS&quot; color=&quot;#333333&quot;&gt;&lt;img title=&quot;image&quot; style=&quot;border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px&quot; height=&quot;191&quot; alt=&quot;image&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHWaTAcasrVzRgkX7R6rEh5yIHxLBtPspxFpFpGeLwzlxtOYZWmDMr8B34Cu1NO25D12feio4QmhVky9VkaUJ0EeNu78c1JDX_PSGEXEpBxZfiZlmyFsu7dCcbgjVqIjUG2cq2-GM3mRA/?imgmax=800&quot; width=&quot;384&quot; border=&quot;0&quot; /&gt;&lt;/font&gt;&lt;/a&gt;&lt;font face=&quot;Trebuchet MS&quot;&gt; &lt;/font&gt;&lt;/p&gt;  &lt;p align=&quot;justify&quot;&gt;&lt;font face=&quot;Trebuchet MS&quot;&gt;and set target Database Connection by clicking the &lt;strong&gt;New Button &lt;/strong&gt;for the &lt;strong&gt;connection&lt;/strong&gt; and &lt;strong&gt;Edit &lt;/strong&gt;if you have it already.&lt;/font&gt;&lt;/p&gt;  &lt;p align=&quot;justify&quot;&gt;&lt;font face=&quot;Trebuchet MS&quot;&gt;For the first grid Click the &lt;strong&gt;Get Fields Button &lt;/strong&gt;this will fill grid with all values you have queried in the previous &lt;strong&gt;Table Input Step&lt;/strong&gt; here in this grid keep only those fields on the basis of which you will insert record.&lt;/font&gt;&lt;font face=&quot;Trebuchet MS&quot;&gt;&lt;/font&gt;&lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/5758866862661799841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/5758866862661799841' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/5758866862661799841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/5758866862661799841'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/05/how-to-insert-extracted-values-in.html' title='How to Insert Extracted Values in Pentaho Spoon'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPp08Eop4CYytXsBjkL7iJ2lh9Y-TSWo4KIFY5m3jSOfzdPliUOUjDIo5OLCYNn_8WlALahCrKnIV2v8VdG0cc-6crKwf6UTOWXljZcFrM8-wn6BRExahrXgVhaWhuZ0XgZa4ioxNdJhg/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-3487626163249404096</id><published>2010-05-16T06:47:00.001-07:00</published><updated>2010-05-16T07:01:03.737-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Loading xml data using Pentaho ETL tool"/><title type='text'>Loading XML Data Using Pentaho ETL Tool</title><content type='html'>&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;To load the data from a XML file using pentaho kettle do the followings.&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;Go to the design mode, drill down the input folder and drag &amp;amp; drop the &lt;b&gt;XML Input Step.&lt;/b&gt;&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3DYPkrL_EXDFXRQDPeW7rxuBE4yyRfuCEskIYF8tbIUmK1klR29dzpV5vKMn9L_BzxeHZnSqVfOw50eCUF24KJV76Dc2eW9TtpSmS-On4APuX5C4U9heA3gvL3-pPX3ib_kin8DAdNQA/s1600-h/image%5B2%5D.png&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Trebuchet MS;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;70&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiICCfrIJ7BUcIzTC3WRggNDWwUtuCFuWnglQRXNPqEP75oMKkVQXML3SFX9MimJQeS-yXfyhzb8-f_Z6fFxzWzSKJrETo0o_tPwxbVVQxfzH_2q4KcPoFMeFAg7C0lMDeUVTNjVXCgaOY/?imgmax=800&quot; style=&quot;border-width: 0px; display: inline;&quot; title=&quot;image&quot; width=&quot;81&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;Double click the &lt;b&gt;XML Input Step &lt;/b&gt;as shown in the image below &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVGKqMuvka1INWXJRUwE-1-KpXPmV87adW8PNybq2LMWKIWiTxOVidc7nJOyi3xDm0B6c0VwqFljuthYdAhtvMFj0jFW2rvv2ZgNw7j7RIvSAFNYQ9hYpYhXZpA0ludaF8pUcENVXwyrg/s1600-h/image%5B5%5D.png&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Trebuchet MS;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;202&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsgo5yr2NYH5OKS1hIQROMPi03zRgMfDPQRtwSTjZ7z3EJd2e-tWAvY76VaJ49NJZM_xi1XUlCi8zvU7ws1KsjaPCpMVX71tCaRFTCsosD8G2Tcjar1yX2XTq1ZD-op4qO4Qcin5gu854/?imgmax=800&quot; style=&quot;border-width: 0px; display: inline;&quot; title=&quot;image&quot; width=&quot;244&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;in the first tab of &lt;b&gt;file&lt;/b&gt; click the &lt;b&gt;Brows Button &lt;/b&gt;and add your desire &lt;b&gt;XML File&lt;/b&gt; by clicking &lt;b&gt;Add Button &lt;/b&gt;this will add your file(s) inside the &lt;b&gt;selected files Grid&lt;/b&gt; under the &lt;b&gt;File /Directory Grid Label. &lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;Below this Grid there is a &lt;b&gt;Show File(s) options &lt;/b&gt;that allow&lt;b&gt; &lt;/b&gt;you to view your complete files addresses.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;Nnow go to the next tab of &lt;b&gt;Fields &lt;/b&gt;followed by&lt;b&gt; Content tab.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;here in this &lt;b&gt;Fields tab &lt;/b&gt;click the &lt;b&gt;Get Fields Button&lt;/b&gt; lying below the &lt;b&gt;Grid&lt;/b&gt; clicking this will extract all the contents of the &lt;b&gt;XML file&lt;/b&gt; along with their &lt;b&gt;data types &lt;/b&gt;and&lt;b&gt; positions.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;To view all these contents of your &lt;b&gt;XML file you can use the XML OUTPUT Step &lt;/b&gt;available under the Out put folder.&amp;nbsp; &lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;b&gt; &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/3487626163249404096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/3487626163249404096' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/3487626163249404096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/3487626163249404096'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/05/to-load-data-from-xml-file-using.html' title='Loading XML Data Using Pentaho ETL Tool'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiICCfrIJ7BUcIzTC3WRggNDWwUtuCFuWnglQRXNPqEP75oMKkVQXML3SFX9MimJQeS-yXfyhzb8-f_Z6fFxzWzSKJrETo0o_tPwxbVVQxfzH_2q4KcPoFMeFAg7C0lMDeUVTNjVXCgaOY/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-2574673073201149468</id><published>2010-05-16T06:29:00.000-07:00</published><updated>2010-05-16T06:29:50.090-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Query For Monthly Calculation"/><title type='text'>SQL Query For Monthly Calculation</title><content type='html'>&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;To get individual library member&#39;s monthly status report use the following column level query that includes how many books have been issued and returned in the month of may 2010 for those members who have their registration date in the same month here is the query&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: blue; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;select &lt;span style=&quot;color: black;&quot;&gt;m.member_id &lt;span style=&quot;color: blue;&quot;&gt;as &lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&quot;Member ID&quot;&lt;/span&gt;,m.member_name &lt;span style=&quot;color: blue;&quot;&gt;as&lt;/span&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt; &lt;/span&gt;&quot;Member Name&quot;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: blue; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,(select count(&lt;span style=&quot;color: black;&quot;&gt;book_id&lt;/span&gt;)&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;color: blue; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from&lt;span style=&quot;color: black;&quot;&gt; tbl_book_issue b&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: blue; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where &lt;span style=&quot;color: black;&quot;&gt;m.member_id=b.member_id&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: blue; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and &lt;span style=&quot;color: black;&quot;&gt;b.status=1&lt;/span&gt;)as &lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;span style=&quot;color: red;&quot;&gt;Total Issued Books&quot;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: blue; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: blue; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;color: black;&quot;&gt; ,&lt;/span&gt; (select count(&lt;span style=&quot;color: black;&quot;&gt;book_id&lt;/span&gt;)&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;color: blue; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from &lt;span style=&quot;color: black;&quot;&gt;tbl_book_issue b&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: blue; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where &lt;span style=&quot;color: black;&quot;&gt;m.member_id=b.member_id&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: blue; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and &lt;span style=&quot;color: black;&quot;&gt;b.status&lt;/span&gt;=2)as &lt;span style=&quot;color: black;&quot;&gt;&quot;&lt;span style=&quot;color: red;&quot;&gt;Total Returned Books&quot;&amp;nbsp; &lt;/span&gt;#status=1 for issued and status=2 for return&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: blue; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: blue; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;color: blue; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;from tbl&lt;span style=&quot;color: black;&quot;&gt;_member m&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: blue; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;where &lt;span style=&quot;color: black;&quot;&gt;m.registration_date &lt;/span&gt;between &lt;span style=&quot;color: red;&quot;&gt;&#39;2010-05-01 00:00:00&#39;&lt;/span&gt; and &#39;&lt;span style=&quot;color: red;&quot;&gt;2010-05-31 23:59:59&#39;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/2574673073201149468/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/2574673073201149468' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/2574673073201149468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/2574673073201149468'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/05/sql-query-for-monthly-calculation.html' title='SQL Query For Monthly Calculation'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-3106692690526949073</id><published>2010-05-15T23:19:00.001-07:00</published><updated>2010-05-16T05:37:34.028-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Concatenation in Pentaho Kettle"/><title type='text'>Concatenation in Pentaho Kettle</title><content type='html'>&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;To get the&amp;nbsp; concatenated resulted values of the two variables do the followings. &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;in the design mode drill down the Scripting folder drag and drop the&amp;nbsp; &lt;b&gt;Modified Java Script Value step&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZ4DKt5U4Y1ie0MpAqRdYTOWuYaJLL7MXkcvKNSQ7phAAqL4ftUrF48elyCpgG4tvxh7FVF1MIWbKcsC9F9QGdAlX5-YwAQ9tDziRLd16nFXCeUH6Xsy0lFCimLOr_39-nO6GKqt8F-gQ/s1600-h/image%5B2%5D.png&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;71&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU7C4Z67ucUB1rzAXHLEgL9PFRuOrtSg-6zwxXdzZ13GBLrz_mjCxx6qf8GU3g5ce5c8uDm5d1q8PAyrEFixsV5K5QQlpsaVBDxfkLYsH4nFdrOSTb-0QhTHcfdkEHp0ssKoDDjb8SKnM/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;image&quot; width=&quot;95&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;Double click the icon&amp;nbsp; and go the java &lt;b&gt;script value &lt;/b&gt;Text area, copy the below code and past it into the &lt;b&gt;Script Value Text Area &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;var fullName =&amp;nbsp; FirstName+ LastName;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMlMjG322DZ9fZ56Gzarpv_iPIAwmBfCLtWrJJhXpuAPssAd6-khINz0AFpPI7nKzFT4Z63Vfo7K-qS_2xAe5-yUnHq8yFI_Ob9y7TELrU2jbln-rEWgvxuIKyI83c7b9crVsPSaA7gKI/s1600-h/image%5B5%5D.png&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;157&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrCMGWnca_fUWWv_uaFUQwX5mB_3MTVDHqyCV4K9xwBCHPc9sKQF0u-d0z5H2eGfVV3FW8CXIZ0LxC_Nl0ER9KHOxlcOPR1AHuWpp29HUno8FMYknUBFAcPL69BRqjuQB-fTEIgaxkqVs/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;image&quot; width=&quot;244&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;here in this code of java “&lt;b&gt;var&lt;/b&gt;” is the reserved word for declaring String variables while “&lt;b&gt;fullName &lt;/b&gt;is&lt;b&gt;&amp;nbsp;&lt;/b&gt; the name of variable that will hold the resulted or concatenated value, you can view the “&lt;b&gt;fullName”&lt;/b&gt; variable contains the resulted value showing in the grid by clicking get Variable button at bottom of the step.&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/3106692690526949073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/3106692690526949073' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/3106692690526949073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/3106692690526949073'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/05/concatenation-in-pentaho-kettle.html' title='Concatenation in Pentaho Kettle'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgU7C4Z67ucUB1rzAXHLEgL9PFRuOrtSg-6zwxXdzZ13GBLrz_mjCxx6qf8GU3g5ce5c8uDm5d1q8PAyrEFixsV5K5QQlpsaVBDxfkLYsH4nFdrOSTb-0QhTHcfdkEHp0ssKoDDjb8SKnM/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-6391192114001320460</id><published>2010-05-15T22:54:00.001-07:00</published><updated>2010-05-16T05:36:55.504-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="How to Split a String in pentaho Kettle"/><title type='text'>How to Split a String in pentaho Kettle</title><content type='html'>&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;To get values from a comma separated string we can spilt it in following way.&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;In the design mode drill down the Scripting folder drag and drop the&amp;nbsp; &lt;b&gt;Modified Java Script Value step&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguIqH3g3AsWVrmgDUri_lwm9k4TcCWY8J2Odvnj9sgdoPGp33AtOA8QHAJPiSfPUVPbkqt8Ty23zd3f8MHp8vEj4MCVom7Xnvt279xcwTMUrmsIgC62Xf6LV8rBEmD40KbwUeSLTOTFW4/s1600-h/image%5B2%5D.png&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;76&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz7tw_GXVwvSTqTziZyptqvKm0xjhnO0Lp9YUYCJCnwdTO2VizmJnaqkijc-LasnOQcor_05HQo_oUkN2yPoQl2mwg8xw05vQZrT1Qnya0W1TAuIKGpX-IsPT5hny8BedQUk2H76F4rO4/?imgmax=800&quot; style=&quot;border-width: 0px; display: inline;&quot; title=&quot;image&quot; width=&quot;108&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;Double click the the icon&amp;nbsp; and go the java &lt;b&gt;script value &lt;/b&gt;Text area, copy the below code and past it into the &lt;b&gt;Script Value Text Area &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;var employee = EmployeeInfo.getString().split(&quot;\\,&quot;);          &lt;br /&gt;
var ID = employee [0];           &lt;br /&gt;
var&amp;nbsp; Name= employee [1];           &lt;br /&gt;
var Address = employee [2];           &lt;br /&gt;
&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgaiJUkVw6Y1ee9_3j6JtW_Ki7TqQnNLbzk4lArZUmKeybjz9lfNFhUQjtq8P64DrKnhL8DqiuSLS70uHR65oMoqDr8W7Fq54Y5nq109ZzTKxT_zihVgAujX9kmFkUD19WBV55eJwWidUs/s1600-h/image%5B6%5D.png&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;165&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2NrUcwN6ENfDFhQhkgI6EgO2SHXGEF-wskU1tvJDcfk5Thu-TdKAziYw537tqqy9DiLQMSaXnYK3JKWKltd1Uq-VUZaGXnujUI2Y89dtFqPdQ330nDL0Yqt5hKCvRHIl0A2LH9oNdFbk/?imgmax=800&quot; style=&quot;border-width: 0px; display: inline;&quot; title=&quot;image&quot; width=&quot;453&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;here in this code of java “&lt;b&gt;var&lt;/b&gt;” is the reserved word for declaring String variables while &lt;b&gt;“ID”,”name”,”address”&lt;/b&gt; are the names of variables that will hold the values after splitting and the &lt;b&gt;EmployeeInfo&lt;/b&gt; is the String that contains the ID, Name and Address in the form i.e. &lt;b&gt;&lt;i&gt;1234,Ali,pakistan&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/6391192114001320460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/6391192114001320460' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/6391192114001320460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/6391192114001320460'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/05/how-to-split-string-in-pentaho-kettle.html' title='How to Split a String in pentaho Kettle'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjz7tw_GXVwvSTqTziZyptqvKm0xjhnO0Lp9YUYCJCnwdTO2VizmJnaqkijc-LasnOQcor_05HQo_oUkN2yPoQl2mwg8xw05vQZrT1Qnya0W1TAuIKGpX-IsPT5hny8BedQUk2H76F4rO4/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-1538243494966320885</id><published>2010-05-13T09:04:00.001-07:00</published><updated>2010-05-13T09:05:07.067-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Date to String Conversion in Pentaho Kettle"/><title type='text'>Date to String Conversion in Pentaho Kettle</title><content type='html'>&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;Here is the simple conversion from Date to String in the spoon&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;Go the design mode select &lt;strong&gt;Modified Java Script Step &lt;/strong&gt;lying&lt;strong&gt; &lt;/strong&gt;under the Scripting folder drag &amp;amp; drop it.&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGGLHiC9uCA6X4E7S_3F-tIEHjH9Vhm9wrytO8ovep9IEZCZg6gH1nd3FGrFmGeUQcJQ06LeMkL_kmMOiixIgaqDEYQlMCyM4Mp8iDzEj1mAXwdN2A8gJcoRIruzsMA2RW7HrJ7qBpaq4/s1600-h/image[5].png&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;69&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoC9yu3cGF341DMRfMX_LvoFqWdely_RiV-OF2zy9C43TyXRHdBgleaHCCCtP2YYvfxIq-T3-fJG13mSkL316z3-vrog8MECYmlcqM_9Z0TNJT0qdSXLLV1KB2k-KZtAslZgRtPTl_m_M/?imgmax=800&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;&quot; title=&quot;image&quot; width=&quot;111&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;Double click the &lt;strong&gt;Java Modified Script&amp;nbsp; Step &lt;/strong&gt;and write the following code in the &lt;strong&gt;scriptVale &lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;var dateToStringConversion = date2str(datefield_name, &quot;yyyyMMdd&quot;);&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color: black; font-family: Trebuchet MS;&quot;&gt;where &lt;strong&gt;dateToStringConversion&amp;nbsp; &lt;/strong&gt;is the name of the variable and &lt;strong&gt;datefield_name &lt;/strong&gt;is the field name to whom you want to convert which is coming from the previous step&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/1538243494966320885/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/1538243494966320885' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/1538243494966320885'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/1538243494966320885'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/05/date-to-string-conversion-in-pentaho.html' title='Date to String Conversion in Pentaho Kettle'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoC9yu3cGF341DMRfMX_LvoFqWdely_RiV-OF2zy9C43TyXRHdBgleaHCCCtP2YYvfxIq-T3-fJG13mSkL316z3-vrog8MECYmlcqM_9Z0TNJT0qdSXLLV1KB2k-KZtAslZgRtPTl_m_M/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-4252305729278379928</id><published>2010-05-13T08:35:00.001-07:00</published><updated>2010-05-13T08:35:55.298-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="How to get Distinct Count in Pentaho"/><title type='text'>How to get Distinct Count in Pentaho</title><content type='html'>&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;span&gt;&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=quer-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0321321367&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;&lt;/span&gt;In order to get Distinct Count in the Kettel spoon &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;Go to the &lt;strong&gt;design mode&lt;/strong&gt; drill down the &lt;strong&gt;Transformation folder &lt;/strong&gt;and Drag &amp;amp; drop the&amp;nbsp; &lt;strong&gt;Unique Rows Step&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSx5u9YYDZ88Ua-ljBpNI-gxWyZCeSASFD5NGlNrAVmsnYVH0kan_5r3O4MPUveer6A8jkK7GT4qkvsEmui-cpVF6wukgfdGIpBaFKHTEH2vk84YL5DC_SBjFNl77HlPzRyHvaC-kdG4Y/s1600-h/image[5].png&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Trebuchet MS;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;92&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOk0z1_V-36fhY_gSk08TVehD7qFs3OZKv_eF-eA6F3gAAqMZZulVYd9fN1uS4WG5eZZJPlAOvcXhM_K33v-RPZ5j6VkMpKAkk5P-WNnRXrn2Lko_H0UPgqmJfEMxPNrwq3dZIdZvduiU/?imgmax=800&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;&quot; title=&quot;image&quot; width=&quot;102&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;this step remove the double and repeated Rows and give only unique occurrences but this works only on sorted input so you need to set a Sorted Rows Step available under the Transformation Folder jus drag &amp;amp; drop it&amp;nbsp; and make the hope between the two steps&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKf0UZE4Nz2aBAOe4m72Pd_bmjiX1r2hF6gdbSKAOWYjt1Cb4_UVnzzFkZIzDam_dzXYIcowyi3rOiyF3jDl5wOuTD9GkFi28m3sxQKId5mjDgY58Pa940FMRTkth2paeAoYfeT4Y97mY/s1600-h/image[11].png&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Trebuchet MS;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;81&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9RzkDgNElja5kaGPDV8K8FpSMBSBAQ8KHHsiN3gVIdeDQPq3WHKid6JNXuNHgSzRHJdgJmSDbgtlUOxILp-0-YZ42fogt4Mi3ANOLAhCFyJLrZhKQ76lt-XAnFhjY8VgAPR6X3WNg29Q/?imgmax=800&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;&quot; title=&quot;image&quot; width=&quot;244&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;If the input is not sorted, then only double consecutive rows are handled correctly. &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/4252305729278379928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/4252305729278379928' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/4252305729278379928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/4252305729278379928'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/05/how-to-get-distinct-count-in-pentaho.html' title='How to get Distinct Count in Pentaho'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOk0z1_V-36fhY_gSk08TVehD7qFs3OZKv_eF-eA6F3gAAqMZZulVYd9fN1uS4WG5eZZJPlAOvcXhM_K33v-RPZ5j6VkMpKAkk5P-WNnRXrn2Lko_H0UPgqmJfEMxPNrwq3dZIdZvduiU/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-4380602301948744862</id><published>2010-05-13T08:12:00.001-07:00</published><updated>2010-05-13T08:15:31.446-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="How to Write ETL Script in Pentaho"/><title type='text'>How to Write ETL Script in Pentaho</title><content type='html'>&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;span&gt;&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=quer-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0470084855&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;&lt;/span&gt;In this posting i m going to exemplify for the beginners that how to write a simple script in the Pentaho Kettle Spoon let say extracting the data from the source or transactional database or from the one data source to destination or target or&amp;nbsp; another database, here is the example steps. &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;Extract Customer information from Customer_database from &lt;strong&gt;MYSQL&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;Transform and Load The extracted data in &lt;strong&gt;SQL SERVER&lt;/strong&gt; &lt;strong&gt;Customer_database Table&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;Open the Pentaho Spoon &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;Go to the file menu and select &lt;strong&gt;Transformation&lt;/strong&gt; or press Ctr+N&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;Go to the design mode and select &lt;strong&gt;Table Input from &lt;/strong&gt;the Input folder and the &lt;strong&gt;Table Output Steps&lt;/strong&gt; from&amp;nbsp; the Output folder respectively &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;Press Shift button and drag from &lt;strong&gt;Table input&lt;/strong&gt; to &lt;strong&gt;Table Out Put&lt;/strong&gt; called a &lt;strong&gt;hope&lt;/strong&gt; having green color that showing all the values shifting to another step. &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKpbFqgAdgHS365M5krJicEvWEK1sxmkc2P-9BU1e3pVj5wVBVWQaXDYKbnrqH68LhAHh0zN49yLncZRqLCCXz2AsLWUNczXUfMREV7_dZCreI-iU0b_A22SBmlK50NEOFkCLQ7LVgyyw/s1600-h/image[2].png&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Trebuchet MS;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;99&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinSVc8hae7CX1M5-t8PU0WbQjI_CMvG5QKWhlw1MOdWdolL1JtAqiBg27MmNIXdcVOkQO2trF45WUqaG60OlUI1YROdToMFMFUvvIEQnWqSLiB3Org7ZAkpe6mAsryMcy4-b2eXhMUN5w/?imgmax=800&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: inline;&quot; title=&quot;image&quot; width=&quot;244&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;Extracting required fields from the source table representing here in this example as &lt;strong&gt;Table Input from MYSQL&lt;/strong&gt; and loading all the fields in the destination database table representing here as &lt;strong&gt;Table output&lt;/strong&gt; in &lt;strong&gt;SQLSERVER.&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;Double click the each step to set source and destination &lt;strong&gt;connections&lt;/strong&gt; as shown below &lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgG3CW-nU-g1BfnSNgICV7nx3_1DTtnSF_k_UCzs56mh9ez5Rfo9ZghqsG52_m9GG5TqWWq0VVgY-1ZhReEPWpgOf-uzqo2rMkugXKFAfcbMbeJhVa1_SgDiVOZN8bhiKlTWkIXic2j2Ek/s1600-h/image[6].png&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Trebuchet MS;&quot;&gt;&lt;strong&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;136&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguUkNDMoalcQ853JNsGLJscQ0fJyGQNxZlC0kJatr5DUM2L7ir6kYqIfc-kpMJzgWnttBNuoxdfBMdHNIHeDI4W0JijAEYNmpCuxQJdXuIfep3WK1uXqYrQkDXyw8VhmsP6UNUxZXoEMw/?imgmax=800&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: inline;&quot; title=&quot;image&quot; width=&quot;355&quot; /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;name the connection, if working on the local system name &lt;strong&gt;local host else IP&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;select &lt;strong&gt;MYSQL&lt;/strong&gt; from the &lt;strong&gt;connection type set&lt;/strong&gt; ,user id and password followed by the database name and test the connection.&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgo0YmDvjdQoWLxwtYjabHH0xR45eSg6-d24rhHviWsFZdAQWNoAXGCcx95fqmQiRLA8QbB2YgqXbVTIAK26pkQ_mGzmfuM9rcDcDBRJZ5xGIwYRP58XFtK2fAdHoEucO8mkuXV4tuluGI/s1600-h/image[10].png&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Trebuchet MS;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;146&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8g_TDtO221ck6qRIYKc1VoXSjtPg4fc5lSrIhb9fTsamUsGkERUG_CY0PW5WwI901MwK0-o_fi26xX94hU9lTJ8GDTiPR_oGp21EMcvl-eZgaIl67-u0yfvpuNSksuuoRsWv8hd8nL6A/?imgmax=800&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: inline;&quot; title=&quot;image&quot; width=&quot;390&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;after defining the connection write the query in the &lt;strong&gt;SQL text area &lt;/strong&gt;and double click the Table Output set the connection same as defined above here you also have to define the target table that will hold the extracted data as can view in the below image.&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGHELJkRLpqQtz5IFjUc8KqueiYhE4okHfS3I8-bfJA9SSUV39kro2pff3BSRZrmdWCOLs-TySdOAY_A7WnMz8ZkbgQM6ony6fGBDrVzl06emqgIovDpSKXZ34PXiCaZ-QTZXLzBG2nK4/s1600-h/image[14].png&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Trebuchet MS;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;198&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLqKt6Yq6nyeAnF-NpgIir9rRdusWI-79vY0M7Of7eAs4H9U-stkZoQLmc5jiUei1ymUz-9y6JRlNggnUnxI9rA6ew8qDC90wZxbhyh2-VlO6tfK-it9tcR3mDTMEYTxUvR6G1B9SXVNo/?imgmax=800&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: inline;&quot; title=&quot;image&quot; width=&quot;452&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/4380602301948744862/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/4380602301948744862' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/4380602301948744862'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/4380602301948744862'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/05/how-to-write-etl-script-in-pentaho.html' title='How to Write ETL Script in Pentaho'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinSVc8hae7CX1M5-t8PU0WbQjI_CMvG5QKWhlw1MOdWdolL1JtAqiBg27MmNIXdcVOkQO2trF45WUqaG60OlUI1YROdToMFMFUvvIEQnWqSLiB3Org7ZAkpe6mAsryMcy4-b2eXhMUN5w/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-2421113987943716604</id><published>2010-05-12T08:52:00.001-07:00</published><updated>2010-05-12T09:06:36.269-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Check Table Column Existence in Pentaho"/><title type='text'>Check Table Column Existence in Pentaho</title><content type='html'>&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=quer-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0071546383&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;In order to find out the existence of a specific column in a database use the &lt;b&gt;Check if Column Exists &lt;/b&gt;Step available under the &lt;b&gt;Lookup Folder&lt;/b&gt; in the design mode&lt;/span&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRejIWmpV52bHZCSjw0zsdXXJjyL2pPdtSadeXTUjyPzRUos1j0F4P2tMR7e4AtDlw0GbGza5Y9Zl3w-z3MSsF5CpoXr5nvwleDddxcaMxnr_INWtR9iERR2ebjHXwTiJFCSbRoJNf1v4/s1600-h/image%5B2%5D.png&quot;&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;71&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMOAvKYnSqOjQYQAHimuF-o_Cs5UYC5EQpZcMyBu0LcX0tnEOztwDSArWaRoEA0ZvMnqZJYofoGK5ar9d2zfyIuigRmcKkWbsJoIjLsygyWANbNzrUKNaUvXRM4VCc1iWbXbuGReMBUwc/?imgmax=800&quot; style=&quot;border-width: 0px; display: inline;&quot; title=&quot;image&quot; width=&quot;180&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;Drag &amp;amp; Drop the above icon.&lt;/span&gt; &lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYQSKLPVNVmRQfagTxHzvOxBLJ0Ukv1HvDHqHFYoRTAzkwcgN2J9-0iedgz2jKzDbRCH03NxdCw5SuCJDSY5YYiMMMCd5fQgo9pb77049xlWHDZh5kHC3lwoBw9qNzUmjDVKji7OcCHFY/s1600-h/image%5B5%5D.png&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;189&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjojH2jH_COiMNmdS4S0jFUJfXoJ5ouFPU3yX6v4HbdSlswfPe7CBXCWTVbIGBDWftJ4bMH_D0gBulGl5MXmx5da_UM7Vl3KoO0vraoO8qZz2dHeR68LxgNbj5n2RpgNI-mdH0xUyPwzV8/?imgmax=800&quot; style=&quot;border-width: 0px; display: inline;&quot; title=&quot;image&quot; width=&quot;244&quot; /&gt;&lt;/a&gt; &lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;Double click the step and name it , defined the connection for MYSQL or SQL SERVER etc.&lt;/span&gt; &lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;&lt;b&gt;Table Name&lt;/b&gt;: The name of the column to whom the column belongs.&lt;/span&gt; &lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;&lt;b&gt;Table name in&amp;nbsp; Field&lt;/b&gt;: Enabled it if you want to read the name of the table from the input field.&lt;/span&gt; &lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;&lt;b&gt;Tablename Field&lt;/b&gt;:Set fields here that have parameters and its type&amp;nbsp; &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;&lt;b&gt;Columnname Field&lt;/b&gt;:Set the name of the column field reading from the input field.&lt;/span&gt; &lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;&lt;b&gt;Result fieldname&lt;/b&gt;:Resulting Boolean flag&amp;nbsp; that shows weather it exist or not.&lt;/span&gt; &lt;/li&gt;
&lt;/ol&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/2421113987943716604/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/2421113987943716604' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/2421113987943716604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/2421113987943716604'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/05/check-table-column-existence-in-pentaho.html' title='Check Table Column Existence in Pentaho'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMOAvKYnSqOjQYQAHimuF-o_Cs5UYC5EQpZcMyBu0LcX0tnEOztwDSArWaRoEA0ZvMnqZJYofoGK5ar9d2zfyIuigRmcKkWbsJoIjLsygyWANbNzrUKNaUvXRM4VCc1iWbXbuGReMBUwc/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-1629857982370253754</id><published>2010-05-12T08:21:00.001-07:00</published><updated>2010-05-12T09:04:57.271-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Performing Calculations in Pentaho Spoon"/><title type='text'>Performing Calculations in Pentaho Spoon</title><content type='html'>&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=quer-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0619215593&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;To perform simple calculations and get new fields on different output fields extracting from the database table on constant values.&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;Go to &lt;b&gt;Transformation&lt;/b&gt; in the design mode&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;Drill Down the &lt;b&gt;Transformation folder&lt;/b&gt; and drag &amp;amp; drop the Calculator&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmdnuZ55BkG6htx0gBjdeyjpFlgjEIpPJz1ktvP2VwMoDRC-6WQXT4BL_-47vXlg1PGjpKt3kGtXGuoS9jTNJKdPyMNoHuT5GJTw4oPEqISMHqE5WYCmNqQyVFWAWHGIOFraXdVpBYCXQ/s1600-h/image%5B2%5D.png&quot;&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;74&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRSSFYRXy2w2RHCeZMNMXB2XoC6tlXibdjMqf1XDOp3LKz2J0RXa5WhiKbMBV8sDFlNs2ftmaLXmM1KzJQmV7AUD5l5awW9K3Bcq6FlcsbyWNHy6z5iNteviHO6s_IH28__JaOK6Atmwk/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;image&quot; width=&quot;72&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt; &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Double Click the &lt;b&gt;Calculator Step a pop window same as below will appear &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFxtLfT1x3FOr-9OushSHiJBvZPM4S6E6F7zh5OFRWr34umUc-0OMJTdoHcG7AuUpHuinwAHB2dCjsr-emvVSA640pLSiroWS0WmEAqXhP_aQeXYTC5swiTN07LNstFQPCrb88i3yEav4/s1600-h/image%5B6%5D.png&quot;&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;101&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNK91Eq2q8vDYMFRfGJ5CSunBOHUpK4nlOWtUdWi8vYspl63U7crsYIq7nzkBo6D0OTvldX-h62P7ptWRGMu52BA6wM9akAnWKQ6ICxNCF69IDmg6nBn7tLCp2ezMzcU-twT_FI2VgHB0/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;image&quot; width=&quot;375&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt; &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;In &lt;b&gt;the New Field&amp;nbsp; column &lt;/b&gt;name your new Field&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;Select the type of calculation from the list box on the fields you want to perform calculations.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;Field A, Field B and Field C combos are available to select your fields that are need to be performed calculations&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;Select the value type from the combo box and set decimal precision. &lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;</content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/1629857982370253754/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/1629857982370253754' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/1629857982370253754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/1629857982370253754'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/05/performing-calculations-in-pentaho.html' title='Performing Calculations in Pentaho Spoon'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgRSSFYRXy2w2RHCeZMNMXB2XoC6tlXibdjMqf1XDOp3LKz2J0RXa5WhiKbMBV8sDFlNs2ftmaLXmM1KzJQmV7AUD5l5awW9K3Bcq6FlcsbyWNHy6z5iNteviHO6s_IH28__JaOK6Atmwk/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-1981617851945046801</id><published>2010-05-12T07:57:00.001-07:00</published><updated>2010-05-12T09:04:23.483-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Aggregate Functions in Pentaho Spoon"/><title type='text'>Aggregate Functions in Pentaho Spoon</title><content type='html'>&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=quer-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1423900839&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;To Calculate the Aggregate Functions likewise Sum(), Average(), Count(), MIn(), Max(), First() and Last() usually on the data coming and reading from text files do the followings&lt;/span&gt;&lt;/div&gt;&lt;ol&gt;&lt;li&gt;     &lt;br /&gt;
&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Drill Down the Input in the design mode and select &lt;b&gt;Text Input File &lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;     &lt;br /&gt;
&lt;div align=&quot;justify&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZJFpapmDyePQiG9nRSf9F1_zZSGdLZNdC1bFHwBbWoeVucgvDn3PH5Tq9Nc5YRGwNPI8E29h0d8HU4rkQGH70QJilultHx1USRjq5SCJLdOtt-mQ-JQo5LOs7XXiRptQUX-FC2E4tODQ/s1600-h/image%5B5%5D.png&quot;&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;92&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_IASZImYkY7MT7RUXwNszDwQ5ZEgqjiAV-QSBQXLcewm41DZKXA2ofJfGvrinhdIA8ohQoPss8bIdjUfbau2Cat7Ra80IXr8K-tY9q70mM51sFTGTQtd87ZL-sVCn-tqqX6VwfXTmjyU/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;image&quot; width=&quot;105&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;     &lt;br /&gt;
&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;Double Click the Text File Input in the &lt;b&gt;File tab&lt;/b&gt; and brows your file add it&amp;nbsp; to the selected path &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;     &lt;br /&gt;
&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;In the Content tab select File Type &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;     &lt;br /&gt;
&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;Go to Fields tab and click the Get Fields , it will extract all the fields along with data their data types, reading each coma separated field &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;     &lt;br /&gt;
&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;Go to the design mode again find Deprecated the 3rd last folder drill down it and drag &amp;amp; drop the &lt;b&gt;Aggregate Rows Step&lt;/b&gt; as the same icon&amp;nbsp; mentioned below.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;     &lt;br /&gt;
&lt;div align=&quot;justify&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi14VFFfgAuhalUdo6Z4_zUngGZEC2AIwk9Z2fCwTAbEEmQQBbFosj9e0JuqoSjFs3pi2miHH69Hx5F4EfN7eUG1Ecy8o2EyRJM47rAfmeliMO-T3Au2hgfdG8HBnKz1VnsqwygUGAXWb4/s1600-h/image%5B8%5D.png&quot;&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;56&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiQULvssNFunpe-zDCO9NQxHzS8ECKSrFAvixsQr1ZO_zFZN6-ftzj8dj3QZocyISBz6lR18wfjetvyDh4PmEaK4tNW95NLaFTXVBoe9sDhYCcwczqUWzOK65eLUUBB7eV6bCobYg7IKPI/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;image&quot; width=&quot;68&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;     &lt;br /&gt;
&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;Double click the &lt;b&gt;Aggregate Rows &lt;/b&gt;a pop window will open&lt;b&gt;&amp;nbsp;&lt;/b&gt;click Get Fields it will extract all the fields as it has read from the &lt;b&gt;Text Input File, &lt;/b&gt;set the name for each field in the &lt;b&gt;New Name column&lt;/b&gt; and finally select the &lt;b&gt;aggregate function &lt;/b&gt;from the combo box.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div align=&quot;justify&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3vzBRRR4b5mNgUNc-OFGsqDg5O0f0H1av4uxL9A357-64pDiGeSYOFvxlg0dxZ4AsOA5HmBNYqK4TSOFQ7umh1bv56mlSMDhQHlxAb19JpYmdjo-wQbMNQVXPa3wk60XdCTdhevmY9-c/s1600-h/image%5B2%5D.png&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Trebuchet MS;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;145&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbW7TliN2v7Eb8j-TRluzU6gN3IsCrAopUjvr-cxVu-71eLNE7xMJ5Bq20r0eADg1sITC9LDsnSPerzzSjHlcOZk48nnKwVwh-CI6hGh-KcPD7pw9sy3ZRDUgoOwcd1dZgM7KnXADey7Y/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;image&quot; width=&quot;244&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/1981617851945046801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/1981617851945046801' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/1981617851945046801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/1981617851945046801'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/05/aggregate-functions-in-pentaho-spoon.html' title='Aggregate Functions in Pentaho Spoon'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_IASZImYkY7MT7RUXwNszDwQ5ZEgqjiAV-QSBQXLcewm41DZKXA2ofJfGvrinhdIA8ohQoPss8bIdjUfbau2Cat7Ra80IXr8K-tY9q70mM51sFTGTQtd87ZL-sVCn-tqqX6VwfXTmjyU/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-8338706417288861694</id><published>2010-05-12T07:23:00.001-07:00</published><updated>2010-05-12T09:03:23.035-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="What is Checksum in Pentaho Spoon"/><title type='text'>What is Checksum in Pentaho Spoon</title><content type='html'>&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=quer-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=067233044X&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;By definition checksum is a way to determine the integrity of data in which both the sender and receiver can test the data integrity weather it is correct or not, the sender calculates the checksum value&amp;nbsp; by taking the sum of binary data transmitted on the other end the receiver can perform the same calculation on the data and compare it with the checksum value provided by the sender. If the two values match, the receiver has surety that the data was received correctly.&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;Pentaho Spoon provide the &lt;b&gt;Add a Checksum&lt;/b&gt;&amp;nbsp;&lt;b&gt;Step&lt;/b&gt;&amp;nbsp; lying under the&amp;nbsp; Transformation Tab.&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;Go to Design&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;Drill Down Transformation&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;     &lt;br /&gt;
&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color: blue; font-family: Trebuchet MS;&quot;&gt;Drag &amp;amp; Drop Add a Checksum&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;     &lt;br /&gt;
&lt;div align=&quot;justify&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEis6KJqmDVskeS6zr2vEGzTWdJAMmI0IAwt8cNSp85ZYMNCjHpC_rjIy2CuLe_cUx96EZ76qsqFtNb8M4WgTDi8z9pHvghdMJILNRDQZaOaRl_HmmHgcsnC8B3RoiPF-ejV8yoEqj_fEDw/s1600-h/image%5B5%5D.png&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;72&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfR0YOrl70Hnxvo9z09B7BtfPlaVUjFTVtCGKC11-ZxgHckLvMf8y10OgHdNCw0bGa4zk8IO6_GAyo0oxKbwWRjlfJTH0Idzf9_p0-ZYS2RIIVGAgQXuGqy-iEesUZlPVjmNrlza73MUQ/?imgmax=800&quot; style=&quot;border-width: 0px; display: inline;&quot; title=&quot;image&quot; width=&quot;104&quot; /&gt;&lt;/a&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li&gt;     &lt;br /&gt;
&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Name the Step&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;     &lt;br /&gt;
&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Define the Checksum Algorithm most used Algorithm for&amp;nbsp; Checksum is &lt;b&gt;MD-5&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;     &lt;br /&gt;
&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;Click the Get Fields Button, this will extract and show all the fields coming from the previous step at which your going to apply&amp;nbsp; checksum might be extracting using Input Step from the database table or Stored Procedure&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div align=&quot;justify&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeZ75ZbDx3PdEfTXfyVP3wjRwhSaqm2OirR85QbcE1UidWW36dFb6VvWZaCnIGPeLnwvg1hSb6xxJ_HsuDD9Ocl2a2RRweTP05inMVTM1wYc55JCzwbmk7HFXy1471VozsOKT_Lu-Sa0s/s1600-h/image%5B2%5D.png&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;220&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhB-wXVqhHqep5R8-2nTLWEYO9jH3IMtOG0BNCCXBsU_YgQLqz7XpT2LhrvZIyetBB08yTIwvG5V8rryFD0oH-mv4ECz6sYVVPjvAJRzEs5G3wt2uNDNZ9M3aTMf7COH2uPXzsLLyF86Z4/?imgmax=800&quot; style=&quot;border-width: 0px; display: inline;&quot; title=&quot;image&quot; width=&quot;244&quot; /&gt;&lt;/a&gt; &lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/8338706417288861694/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/8338706417288861694' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/8338706417288861694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/8338706417288861694'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/05/what-is-checksum-in-pentaho-spoon.html' title='What is Checksum in Pentaho Spoon'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgfR0YOrl70Hnxvo9z09B7BtfPlaVUjFTVtCGKC11-ZxgHckLvMf8y10OgHdNCw0bGa4zk8IO6_GAyo0oxKbwWRjlfJTH0Idzf9_p0-ZYS2RIIVGAgQXuGqy-iEesUZlPVjmNrlza73MUQ/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-7221613807212956729</id><published>2010-05-11T12:10:00.001-07:00</published><updated>2010-05-11T12:14:46.260-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Hex to ineteger Conversion in Kettle"/><title type='text'>Hex to integer Conversion in Kettle</title><content type='html'>&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=quer-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=B000J52HKM&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;To convert your Hex value to integer in spoon do the followings &lt;/div&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;Go to the design mode.&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot; /&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;Drill Down the Scripting step.&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot; /&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;Drag and drop the Modified Java Script Value.&lt;/span&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW1pA9OtO56ipcSRf5NyIYi5B-D-oswaHhNTD2qJnWTcruPcYUcXqpNWbjTovpIsC8gLAiMBJVXOYNLvI4xwZzlNNTLPhc1OXw8XlCbpvaU587dO6f4e_Wv3Qacxlbi8qrcNvhELljxL0/s1600-h/image%5B2%5D.png&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;71&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSJpx9JUlfKWbYY4PPbRSj04nDQuxbB9oi1-79vzcJ8bfLp_ejXBpvLr96fxoBzYOfSrJVLsBBbjLLz2mlBiHEtvy6gg5QFkwvXzSHZ71QO7r4Gs5RuQphNP41ht27Cc89mbZBYoXVD7M/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;image&quot; width=&quot;104&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;Double Click the Modified Java Script Value and drill down the Transformation Script available at the left hand side of the Script Mod, double click the ScriptValue&lt;/div&gt;&lt;div style=&quot;color: black; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;in the Script Value paste the following lines&lt;/div&gt;&lt;div style=&quot;color: blue; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;b&gt;java;      &lt;br /&gt;
var nummerke = Packages.java.lang.Integer.valueOf(Hex.getString(), 16).intValue();&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;here Hex is your input value coming from another step, at the bottom of a Script Mod click the Get fields Button now you have get the converted variable with its data type showing in a grid, finally test the script. &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMDKJqfV083vnMKdWUie_vgK99rb4FcOnePt_buggKT3mU3Snskqz6aRc2uwHmWE4uv1E-k_lt3yDyfmdyX6Zdjhy8rZXcpp-fLe7leQ7piEdh5d_BsvGZkvvlVaNNJfV4ggrWaWJbK1I/s1600-h/image%5B9%5D.png&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;218&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaDg-t8UZv-X1GnzBR9Qm3hrhYM-Ei_XbJ3OYGOxdujZJoo4QcEPYKu0LPKQtSJE2c3WVcG1p42zBYFpSR2h9kx5zrb83rJQN1FLTNQkwtywMb09_ZbY85bTcpIzM8z4ZnUoLIKy_TCKk/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;image&quot; width=&quot;392&quot; /&gt;&lt;/a&gt; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/7221613807212956729/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/7221613807212956729' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/7221613807212956729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/7221613807212956729'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/05/hex-to-integer-conversion-in-kettle.html' title='Hex to integer Conversion in Kettle'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSJpx9JUlfKWbYY4PPbRSj04nDQuxbB9oi1-79vzcJ8bfLp_ejXBpvLr96fxoBzYOfSrJVLsBBbjLLz2mlBiHEtvy6gg5QFkwvXzSHZ71QO7r4Gs5RuQphNP41ht27Cc89mbZBYoXVD7M/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-2734669969508358094</id><published>2010-05-11T09:05:00.001-07:00</published><updated>2010-05-11T09:13:18.934-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="How to Set Environment Variables in Kettle"/><title type='text'>How to Set Environment Variables in Kettle</title><content type='html'>&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=quer-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1847193196&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;To set Environment Variables go to Edit menu and click Set Environment Variables or press CTRL+ALT+J, in the name column name your variable and assigned it to any value by default the variable is of String type. You can later in your job or transformation access these variable using &lt;a href=&quot;http://queryinn.blogspot.com/2010/05/what-is-get-variable-in-pentaho-kettle.html&quot;&gt;GET VARIABLE&lt;/a&gt; STEP but it is recommended not to use Environment Variables if your working in multiple or more than two Transformations&amp;nbsp; or jobs as these variable have global scope and&amp;nbsp; Changes to the environment variables would conflict in Transformations or jobs for this reason Kettle variables were introduced to provide a way to define variables that are local to the job in which the variable is set. The &lt;a href=&quot;http://www.blogger.com/&quot;&gt;&lt;span id=&quot;goog_1819605273&quot;&gt;&lt;/span&gt;Set Variable&lt;/a&gt; &lt;span id=&quot;goog_1819605274&quot;&gt;&lt;/span&gt;step in a transformation allows you to specify in which job you want to set the variable&#39;s scope (i.e. parent job, grandparent job or the root job).&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkM9oRODs33T_5_aMGONFqu22OvDJVGUAn97p6BwxXy3f6RI-NcVpfWssvOaFrm_uuOnLypqbd4qoZEBQR27agsx_i9mXuWmE8XyYT_1Ll_gMnhT5YO_D_d3s6r9gob-2nOr4m5ZLRgxo/s1600-h/image[3].png&quot;&gt;&lt;span style=&quot;color: #333333; font-family: Trebuchet MS;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;171&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMYotMP6qMhKXzK1XsN930ihlDqdYaAnW8icTfLM6J03Dkrqm6d4sryjECpnLLv9ROKcpqx81x15Dc-QlaLoy5HNYIixI-k3yFnxzvEDLQ_JpGSpp6aLrxIvHiQeLObMCnNFxBT7msous/?imgmax=800&quot; style=&quot;border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: inline;&quot; title=&quot;image&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;in the same tab of Edit menu you can see your all Environment Variables using Show Environment Variables option, here you can also up and down your Variable on clicking name column header. &lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/2734669969508358094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/2734669969508358094' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/2734669969508358094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/2734669969508358094'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/05/how-to-set-environment-variables-in.html' title='How to Set Environment Variables in Kettle'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMYotMP6qMhKXzK1XsN930ihlDqdYaAnW8icTfLM6J03Dkrqm6d4sryjECpnLLv9ROKcpqx81x15Dc-QlaLoy5HNYIixI-k3yFnxzvEDLQ_JpGSpp6aLrxIvHiQeLObMCnNFxBT7msous/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-8226802291334585119</id><published>2010-05-10T12:16:00.001-07:00</published><updated>2010-05-10T12:22:11.174-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="What is Get Variable in Pentaho Kettle"/><title type='text'>What is Get Variable in Pentaho Kettle</title><content type='html'>&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6uH8BztFOgDDS0LVFZwnqE9rOnYHhQwny-R4xywo2TxMyaLmlsqncdLgUByeyjqrkZfH75xi59aBSVW4Zrts7U9r6y_32Y0Z7XkFcdRMSyUtQbE3nFupbFCKpSkqWo6GVx0ZQj5Z-MqI/s1600-h/image%5B2%5D.png&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;36&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJbX8pmw8jnk4iLl3EmSfRQjz4umP1Oy-HECMVsZ9DEl1zejUdXuQNyzb1PcRNoNZ58VjFglPF-SoDjyJ-jD4juk-uq5F4apAd1piKi-JCFXz8NEO06a2ygIEE3uuG0weMxBgckkqKeTU/?imgmax=800&quot; style=&quot;border-width: 0px; display: inline;&quot; title=&quot;image&quot; width=&quot;36&quot; /&gt;&lt;/a&gt; &lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=quer-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0470635177&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;The Get variable step is used to get access your declared variable’s values, whenever you need a variable value you have declared earlier in your script using Set Variable step what you need to do is drag and drop a Get Variable step and do the followings.&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX6mQBmmG_lnXG3HPM_sZLTuY0B2Z9RuOFwAcBvxaSPLplWrspi5OeY8k9cnYAKL7ADN25q3XwdbPdhZB2bF1X9PEHNKr4U56UNna1b0RmTCDBp-3YE-kWtXDMoowbDgDMqOVGdLpTLJ0/s1600-h/image%5B8%5D.png&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;157&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghQEKCJPAtRxg4zJpvh3srJ97jxjUJy-absuJjFmC2Q8o-fScktWnZEmRkjJ-TCZoQFiikeLoGtG5H-wf8hLW-i-KfGBkZq8DQa7dp3SsDOe_D3Vv_EVUhfORWUIMv8j3VxCkXPDx8t1s/?imgmax=800&quot; style=&quot;border-width: 0px; display: inline;&quot; title=&quot;image&quot; width=&quot;244&quot; /&gt;&lt;/a&gt; &lt;/div&gt;&lt;ol style=&quot;color: blue; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;li&gt;Go to the Job Folder drag &amp;amp; drop a Get Variable Step &lt;/li&gt;
&lt;li&gt;Nam the value of accessing variable that you can use in other steps &lt;/li&gt;
&lt;li&gt;in the second column give the same name of the required variable as you have declared it&amp;nbsp; in Set Variable Step in below format &lt;/li&gt;
&lt;li&gt;${variable} or %%variable%% &lt;/li&gt;
&lt;/ol&gt;&lt;div style=&quot;color: #b45f06; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;b&gt;Example:&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;color: #b45f06; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif; text-align: justify;&quot;&gt;&lt;b&gt;variable value&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ${my_variable as declared in Set Varible} &lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/8226802291334585119/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/8226802291334585119' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/8226802291334585119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/8226802291334585119'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/05/what-is-get-variable-in-pentaho-kettle.html' title='What is Get Variable in Pentaho Kettle'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJbX8pmw8jnk4iLl3EmSfRQjz4umP1Oy-HECMVsZ9DEl1zejUdXuQNyzb1PcRNoNZ58VjFglPF-SoDjyJ-jD4juk-uq5F4apAd1piKi-JCFXz8NEO06a2ygIEE3uuG0weMxBgckkqKeTU/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-5906165646933969576</id><published>2010-05-10T11:56:00.001-07:00</published><updated>2010-05-10T12:24:22.667-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="What is Set Variable in Pentaho Kettle"/><title type='text'>What is Set Variable in Pentaho Kettle</title><content type='html'>&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=quer-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1847193196&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgD7oWS354qbnU2JlzJDxt2iG_vtpk-4ZYZf6BZxqZpV0C_8mhsJcibUlkAEdBennFUg5tHIxNSCMm_fJrXbRbcODoLPBui66jqqIecLx4-v3isc1czhNyrAfhSrQ9BQYcbN8po84-rBlQ/s1600-h/image%5B8%5D.png&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;36&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_5CSNG_JshGz_VzHwwhy72AwSBTFzoyJHPy8EMhtPfosVovl9ZwU1JZxFRiHdUtM4jd-WqtVxozGv5v9XOycLhKbiarbk72O9ncwqK_pRsfH-4Ttr3U_XlFzutueHIgo_JCaFTNNOlHg/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;image&quot; width=&quot;36&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;The Set Variable is used to set or declare variables to hold values usually database fields likewise you want to set start_date value which you have extracted from your time_dimension table using INPUT Step so that this start_date field will be accessible through out your script.&lt;/span&gt;&lt;/div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrxeBsdGMoeslfR611Z1bQy86wyaXTSJrfGWhtyP5SMWfAwnAaP70FTt_-LK3eJujzJeG_X6zY-qWcNgJ-JCjyAG3ylQFsM6K6ZMdiiCSrgLGso4pHaKg2pIv9lVd-RN9m5OxfSegXGkQ/s1600-h/image%5B13%5D.png&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;92&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghfL9C_9mhbMJ0kTcf-klB9iUY0AIx4298YP5HZYE6ua1jATx-qe271IhhHfpgoaxXjiXAiuOqHDZnWo89i3qyGAGhpU08OOrJbAm7UjPIWPTU-6Arxyn3CaurVXFiFgd7IGoRvBOEeo4/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;image&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;justify&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;in the upper text filed named the step and then click the get fields button to have all desired table fields in the field name column that you have extracted using input step, in the second step name the variable to each field name and in the last column define its scope. In order to avoid null values that might come in your queries using INPUT for setting different variable the last column here to set default value that will be very useful let say if there is null value it will set it to default value.&lt;/span&gt;&lt;/div&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhovh0n8_mYffmk9CFUctNcggzdekQpfbKJYpsmL_f3J0PFVNVeHgCv71uvaMDd8pEw1PrjUBSsiDJg1vL-3ZU_CQM9WE-612CNIRqq0yZBKq99RHwI6nViYfmnrdmQhA9GKNL5L7FSg6E/s1600-h/image%5B23%5D.png&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;87&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhA_A_Ph7L_CfFsSwpWmXpLi0DMI2-u7KACUU-BDb3uCaJqpxwG-ZEpEJEb86_UOx2BdeeD2DGfEBx0AXfwkrNqieHKATy7h6vCSAs7udv-6ri8PxJv_bMoXfia0JDfG1b02jlqcRbUakI/?imgmax=800&quot; style=&quot;border: 0px none; display: inline;&quot; title=&quot;image&quot; width=&quot;244&quot; /&gt;&lt;/span&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/5906165646933969576/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/5906165646933969576' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/5906165646933969576'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/5906165646933969576'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/05/what-is-set-variable-in-pentaho-kettle.html' title='What is Set Variable in Pentaho Kettle'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_5CSNG_JshGz_VzHwwhy72AwSBTFzoyJHPy8EMhtPfosVovl9ZwU1JZxFRiHdUtM4jd-WqtVxozGv5v9XOycLhKbiarbk72O9ncwqK_pRsfH-4Ttr3U_XlFzutueHIgo_JCaFTNNOlHg/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-3995713918314850947</id><published>2010-05-09T05:48:00.000-07:00</published><updated>2010-05-09T05:48:02.581-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Storing Transformations and Jobs in local Files System"/><title type='text'>Storing Transformations and Jobs in local Files System</title><content type='html'>&lt;span&gt;&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=quer-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0470635177&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/span&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Spoon provides you with the ability to store transformation and job files to the local file system or in the &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Kettle repository. The Kettle repository can be housed in any common relational database. This means that &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;in order to load a transformation from a database repository, you need to connect to this repository. &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;To do this, you need to define a database connection to this repository. You can do this using the &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;repositories dialog you are presented with when you start up Spoon bat file you will come across&amp;nbsp;a welcome window in order to work&amp;nbsp;for storing your transformations and jobs files in local file system and just click no repository.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;center&quot; style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/3995713918314850947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/3995713918314850947' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/3995713918314850947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/3995713918314850947'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/05/storing-transformations-and-jobs-in.html' title='Storing Transformations and Jobs in local Files System'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-7796363951465533749</id><published>2010-05-09T05:33:00.000-07:00</published><updated>2010-05-09T05:36:01.508-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="What is Pentaho"/><title type='text'>What is Pentaho</title><content type='html'>&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=quer-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=1847199542&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;The Pentaho BI Project is open source application software for enterprise reporting, analysis, dashboard, data mining, workflow and ETL capabilities for business intelligence needs.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;strong&gt;&lt;u&gt;What is Spoon&lt;/u&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Kettle is an acronym for “Kettle E.T.T.L. Environment”. This means it has been designed to help you with &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;your ETTL needs: the Extraction, Transformation, Transportation and Loading of data. &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;Spoon is a graphical user interface that allows you to design transformations and jobs that can be run with &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;the Kettle tools Pan and Kitchen. Pan is a data transformation engine that is capable of performing a &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;multitude of functions such as reading, manipulating and writing data to and from various data&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;, sans-serif;&quot;&gt;sources.Kitchen is a program that can execute jobs designed by Spoon in XML or in a database repository. Usually&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Transformations and Jobs can describe themselves using an XML file or can be put in a Kettle database &lt;br /&gt;
&lt;br /&gt;
repository. This information can then be read by Pan or Kitchen to execute the described steps in the&lt;br /&gt;
transformation or run the job.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/7796363951465533749/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/7796363951465533749' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/7796363951465533749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/7796363951465533749'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/05/what-is-pentaho.html' title='What is Pentaho'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-7815930098924438701</id><published>2010-05-09T02:55:00.000-07:00</published><updated>2010-07-20T12:24:28.258-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ETL Scripting with Open Source ETL Tools"/><title type='text'>ETL Scripting with Open Source ETL Tools</title><content type='html'>&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=quer-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=0470484322&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;b&gt;&lt;u&gt;Extract Transform Load (ETL)&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Extracting, transforming, and loading (ETL) is a process&amp;nbsp;used in database&amp;nbsp;especially in data warehousing and have followin steps&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Extracting data from&amp;nbsp;sources (The transactinal Database)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Transforming it to fit operational needs (which can include quality levels)&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;color: blue; font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Loading in destination (database or data warehouse or staging where you practice about data)&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;b&gt;&lt;u&gt;Extraction:&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;The first part of an ETL process involves extracting the data from the source systems usually called a transactional database where actual transactions are perforemd. Most data warehousing projects consolidate data from different source systems like Relational Databases.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Extraction converts the data into a format for transformation processing. An intrinsic part of the extraction involves the parsing of extracted data, resulting in a check if the data meets an expected pattern or structure. If not, the data may be rejected entirely or in part. This step invloves&amp;nbsp;extracting all the data as mentioned in the written SQL queries and procedure from the source system.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;u&gt;Transformation:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;The transform stage applies a series of rules or functions to the extracted data from the source to derive the data for loading into the end target. Some data sources will require very little or even no manipulation of data&amp;nbsp; &lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=quer-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=3642104231&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;Loading&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;This step&amp;nbsp;involves process lodaing data which has extracted from one source database say MYSQL to load in SQLSERVER The load phase loads the data into the end target, usually the data warehouse (DW). Depending on the requirements of the organization, this process varies widely. Some data warehouses may overwrite existing information with cumulative, frequently updating extract data is done on daily, weekly or monthly. while other DW (or even other parts of the same DW) may add new data in a historicized form, for example, hourly &lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;&lt;b&gt;&lt;u&gt;Example:&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS;&quot;&gt;It might be your requirement that you need to accumulate data that is residing in different database like wise Customer Sales information on MYUSQL &amp;nbsp;and its support and maintenance information on SQL SERVER so here you need to gather the information in order to present it the ETL script is the best solution for you.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;b&gt;&lt;u&gt;BEST Practices:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;b&gt;Four-layered approach for ETL architecture design&lt;/b&gt;&amp;nbsp;&lt;/div&gt;&lt;div align=&quot;justify&quot;&gt;&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;Functional layer: Core functional ETL processing (extract, transform, and load). &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;Operational management layer: Job-stream definition and management, parameters, scheduling, monitoring, communication and alerting. &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;Audit, balance and control (ABC) layer: Job-execution statistics, balancing and controls, rejects- and error-handling, codes management. &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;Utility layer: Common components supporting all other layers. &lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;u&gt;&lt;b&gt;Open Source ETL Tools:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;Apatar &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;CloverETL &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;Flat File Checker &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;Jitterbit 2.0 &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;Pentaho Data Integration (now[update] included in OpenOffice Base) &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;RapidMiner &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;Scriptella &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: blue;&quot;&gt;Talend Open Studio &lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/7815930098924438701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/7815930098924438701' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/7815930098924438701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/7815930098924438701'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/05/etl-scripting-with-open-source-etl.html' title='ETL Scripting with Open Source ETL Tools'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4184229675229410615.post-7184533521918182357</id><published>2010-05-08T22:58:00.000-07:00</published><updated>2010-05-08T22:58:09.750-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SELECT AS CLAUSE"/><title type='text'>SELECT AS CLAUSE</title><content type='html'>&lt;span&gt;&lt;iframe align=&quot;left&quot; frameborder=&quot;0&quot; marginheight=&quot;0&quot; marginwidth=&quot;0&quot; scrolling=&quot;no&quot; src=&quot;http://rcm.amazon.com/e/cm?t=quer-20&amp;amp;o=1&amp;amp;p=8&amp;amp;l=bpl&amp;amp;asins=007222729X&amp;amp;fc1=000000&amp;amp;IS2=1&amp;amp;lt1=_blank&amp;amp;m=amazon&amp;amp;lc1=0000FF&amp;amp;bc1=000000&amp;amp;bg1=FFFFFF&amp;amp;f=ifr&quot; style=&quot;align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;&quot;&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;br /&gt;
In SQL Query you can define column heading jus write heading near to field name with out any space but if you want to make space in column heading then use AS clause like wise&lt;br /&gt;
Column Heading with out AS Clause&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;SELECT LASTNAME, SALARY&amp;nbsp;&lt;strong&gt;TotalSalary&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;FROM EMP&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;WHERE WORKDEPT = &#39;C01&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;ORDER BY 2 DESC&lt;/span&gt;&lt;br /&gt;
Column Heading with space&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;SELECT LASTNAME, SALARY + BONUS + COMM &lt;strong&gt;AS TOTAL EANINGS&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;FROM EMP&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;WHERE WORKDEPT = &#39;C01&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;ORDER BY TOTAL_EANINGS DESC&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://queryinn.blogspot.com/feeds/7184533521918182357/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4184229675229410615/7184533521918182357' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/7184533521918182357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4184229675229410615/posts/default/7184533521918182357'/><link rel='alternate' type='text/html' href='http://queryinn.blogspot.com/2010/05/select-as-clause.html' title='SELECT AS CLAUSE'/><author><name>M.Junaid Khan</name><uri>http://www.blogger.com/profile/07381906207288148117</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>