<?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/opensearch/1.1/' xmlns:georss='http://www.georss.org/georss' xmlns:thr='http://purl.org/syndication/thread/1.0' xmlns:gd='http://schemas.google.com/g/2005' gd:etag='W/&quot;D04BSXo7eCp7ImA9WhdVFko.&quot;'><id>tag:blogger.com,1999:blog-7785114603589532880</id><updated>2011-09-22T00:19:18.400-07:00</updated><title>Teradata</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://manishpandey-teradata.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785114603589532880/posts/default?redirect=false&amp;v=2'/><link rel='alternate' type='text/html' href='http://manishpandey-teradata.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Manish Pandey</name><uri>http://www.blogger.com/profile/09136288165609062107</uri><email>manish.pandey09@gmail.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry gd:etag='W/&quot;D04BSXo6eSp7ImA9WhdVFko.&quot;'><id>tag:blogger.com,1999:blog-7785114603589532880.post-5380571884017340415</id><published>2011-09-15T22:47:00.000-07:00</published><updated>2011-09-22T00:19:18.411-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-09-22T00:19:18.411-07:00</app:edited><title>Teradata Utilities</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;div style="text-align: left;"&gt;
&lt;span class="Apple-style-span" style="font-size: 32px; font-weight: bold;"&gt;Teradata loading utilities&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
The article contains comparison and main features of the data loading  tools provided by Teradata. The tutorial illustrates main features of  Teradata Multiload , FastLoad and TPump (Parallel Data Pump) and  provides sample real-life uses of those tools.  &lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="font-size: 19px;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small; font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span class="Apple-style-span" style="font-size: 19px; font-weight: bold;"&gt;Fast Load&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;li style="text-align: left;"&gt;&lt;b&gt;Main use=&amp;gt; To load empty tables at high speed.&lt;/b&gt;&lt;/li&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;li style="text-align: left;"&gt;The target tables must be empty in order to use FastLoad.&lt;/li&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;li style="text-align: left;"&gt;It supports inserts only(not possible to perform updates or deletes in FastLoad).&lt;/li&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;li style="text-align: left;"&gt;Although Fastload uses multiple sessions to load the data, only one target table&amp;nbsp;&lt;/li&gt;
&amp;nbsp;&amp;nbsp; can be processed&amp;nbsp;at a time.&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;li style="text-align: left;"&gt;Teradata Fastload does not support join indexes, foreign key references in target&amp;nbsp;&lt;/li&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;tables&amp;nbsp;and&amp;nbsp;tables with secondary index defined.&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;li style="text-align: left;"&gt;It is necessary to drop any of the constraints listed before loading and recreate&lt;/li&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;them afterwards.&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;li style="text-align: left;"&gt;The maximum number of concurrent Teradata Fastload tasks can be adjusted&amp;nbsp;&lt;/li&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;by a system administrator.&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;li style="text-align: left;"&gt;Fastload runs in two operating modes: Interactive and Batch.&lt;/li&gt;
&lt;li style="text-align: left;"&gt;Duplicate rows will not be loaded.&amp;nbsp;&lt;/li&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span class="Apple-style-span" style="font-size: 19px; font-weight: bold;"&gt;Multi Load&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;li style="text-align: left;"&gt;&lt;b&gt;Main use: Load, update and delete large tables in  Teradata in a bulk mode&lt;/b&gt;&lt;/li&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;li style="text-align: left;"&gt;Efficient in loading very large tables.&lt;/li&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;li style="text-align: left;"&gt;Multiple tables can be loaded at a time.&lt;/li&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;li style="text-align: left;"&gt;Updates data in a database in a block mode (one physical write can update&amp;nbsp;&lt;/li&gt;
&amp;nbsp;&amp;nbsp; multiple rows.&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;li style="text-align: left;"&gt;Uses table-level locks.&lt;/li&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;li style="text-align: left;"&gt;Resource consumption: loading at the highest possible throughput.&lt;/li&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;li style="text-align: left;"&gt;Duplicate rows allowed .&lt;/li&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span class="Apple-style-span" style="font-size: 24px; font-weight: bold;"&gt;TPump&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;li style="text-align: left;"&gt;&lt;b&gt;Main use: to load or update a small amount of target table  rows&lt;/b&gt;&lt;/li&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;li style="text-align: left;"&gt;Sends data to a database as a statement which is much slower  than using bulk mode&lt;/li&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;li style="text-align: left;"&gt;TPump uses row-level hash locks&lt;/li&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;li style="text-align: left;"&gt;Resource consumption: loading speed can be adjusted using a  built-in resource&amp;nbsp;&lt;/li&gt;
&amp;nbsp;&amp;nbsp; consumption&amp;nbsp;management utility. The throughput can be  turned down in peak periods.&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;li style="text-align: left;"&gt;TPump does not support MULTI-SET tables.&amp;nbsp;&lt;/li&gt;
&lt;br /&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span class="Apple-style-span" style="font-size: 32px; font-weight: bold;"&gt;FastLoad(script)&lt;/span&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;span class="Apple-style-span" style="font-size: 32px; font-weight: bold;"&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: 32px;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small; font-weight: normal;"&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;b&gt;&lt;span class="Apple-style-span" style="font-size: small; font-weight: normal;"&gt;&lt;div style="display: inline !important;"&gt;
&lt;h1 style="display: inline !important; text-align: left;"&gt;
&lt;span class="Apple-style-span" style="font-size: small; font-weight: normal;"&gt;===========================&lt;/span&gt;&lt;/h1&gt;
&lt;/div&gt;
&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style="text-align: left;"&gt;

The following script attached below will load a sample fixed-length  columns extract into a Teradata database using FastLoad.&lt;br /&gt;
&lt;div&gt;
&lt;pre style="text-align: left;"&gt;&lt;/pre&gt;
&lt;pre style="text-align: left;"&gt;SESSIONS 4;
ERRLIMIT 25;
logon tdpid/username,password;

create table gg_cli (
wh_cust_no integer not null,
cust_name varchar(200),
bal_amt decimal(15,3) format �ZZZ,ZZ9.999�
)
unique primary index( wh_cust_no ) ;

SET RECORD UNFORMATTED;

define
                wh_cust_no(char(10)), delim1(char(1)),
                cust_name(char(200)), delim2(char(1)),
                bal_amt(char(18)), delim3(char(1))
                newlinechar(char(1))
file=insert.input;

SHOW;

BEGIN LOADING gg_cli errorfiles error_1, error_2;

insert into gg_cli (
                :wh_cust_no,
                :cust_name,
                :bal_amt
);

END LOADING;

logoff;
&lt;/pre&gt;
&lt;br /&gt;
&lt;h1 style="text-align: left;"&gt;




MultiLoad(script)&lt;/h1&gt;
&lt;div&gt;
&lt;h1 style="text-align: left;"&gt;




&lt;span class="Apple-style-span" style="font-size: small; font-weight: normal;"&gt;===========================&lt;/span&gt;&lt;/h1&gt;
&lt;/div&gt;
&lt;h1 style="text-align: left;"&gt;




&lt;span class="Apple-style-span" style="font-size: small; font-weight: normal;"&gt;The following script attached below will load a sample fixed-length  columns extract into a Teradata database using MultiLoad.&amp;nbsp;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small; font-weight: normal;"&gt;Use the following command to run load the ggclients.mload file using  Teradata FastLoad script:&lt;/span&gt;&lt;/h1&gt;
&lt;pre style="text-align: left;"&gt;.logtable inslogtable;&lt;/pre&gt;
&lt;pre style="text-align: left;"&gt;.logon tdpid/username,password;

create table gg_cli (
wh_cust_no integer not null,
cust_name varchar(200),
bal_amt decimal(15,3) format �ZZZ,ZZ9.999�
)
unique primary index( wh_cust_no ) ;

.BEGIN IMPORT MLOAD tables gg_cli;

.layout ggclilayout;
                .field wh_cust_no 1 char(10);
                .field cust_name 12 char(200);
                .field bal_amt 213 char(18);
.dml label insertclidml;

insert into gg_cli.*;

.import infile insert.input
                format text
                layout ggclilayout
                apply insertclidml;
.END MLOAD;

.logoff;

&lt;/pre&gt;
&lt;br /&gt;
&lt;h1 style="text-align: left;"&gt;




TPump(script)&lt;/h1&gt;
&lt;h1 style="text-align: left;"&gt;




&lt;span class="Apple-style-span" style="font-size: small; font-weight: normal;"&gt;===========================&lt;/span&gt;&lt;/h1&gt;
&lt;h1 style="text-align: left;"&gt;




&lt;span class="Apple-style-span" style="font-size: small; font-weight: normal;"&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-size: small; font-weight: normal;"&gt;The sample script attached below loads a sample fixed-length columns  extract into a Teradata database using Parallel Data Pump - Teradata  TPump.&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;
&lt;pre style="text-align: left;"&gt;.logtable tpumplogtable;
.logon tdpid/username,password;

.BEGIN LOAD SESSION 4;

.layout ggclilayout;
                .field wh_cust_no 1 char(10);
                .field cust_name 12 char(200);
                .field bal_amt 213 char(18);
.dml label insertclidml;

insert into gg_cli.*;

.IMPORT INFILE insert.input
                layout ggclilayout
                apply insertclidml;
.END LOAD;

.logoff;&lt;/pre&gt;
&lt;div style="text-align: left;"&gt;
&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style="text-align: left;"&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785114603589532880-5380571884017340415?l=manishpandey-teradata.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manishpandey-teradata.blogspot.com/feeds/5380571884017340415/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manishpandey-teradata.blogspot.com/2011/09/teradata-utilities.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785114603589532880/posts/default/5380571884017340415?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785114603589532880/posts/default/5380571884017340415?v=2'/><link rel='alternate' type='text/html' href='http://manishpandey-teradata.blogspot.com/2011/09/teradata-utilities.html' title='Teradata Utilities'/><author><name>Manish Pandey</name><uri>http://www.blogger.com/profile/09136288165609062107</uri><email>manish.pandey09@gmail.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;C0YNQnw-eip7ImA9WhdWE00.&quot;'><id>tag:blogger.com,1999:blog-7785114603589532880.post-6598721391777187923</id><published>2011-09-05T22:03:00.000-07:00</published><updated>2011-09-06T02:26:33.252-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-09-06T02:26:33.252-07:00</app:edited><title>Stats in Teradata</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Collect stats is a mechanism which helps optimizer to get the least cost execution plan for each requested query.&lt;br /&gt;
&lt;br /&gt;
Collect statistics on table&lt;br /&gt;
collect stats on TABLE_NAME; &lt;br /&gt;
&lt;br /&gt;
Collect statistics on column of table&lt;br /&gt;
collect stats on TABLE_NAME column(COL1);&lt;br /&gt;
collect stats on TABLE_NAME column(COL2);&lt;br /&gt;
&lt;br /&gt;
To get detail about statistics of a table&lt;br /&gt;
Help stat DBName.TableName;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785114603589532880-6598721391777187923?l=manishpandey-teradata.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manishpandey-teradata.blogspot.com/feeds/6598721391777187923/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manishpandey-teradata.blogspot.com/2011/09/stats-in-teradata.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785114603589532880/posts/default/6598721391777187923?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785114603589532880/posts/default/6598721391777187923?v=2'/><link rel='alternate' type='text/html' href='http://manishpandey-teradata.blogspot.com/2011/09/stats-in-teradata.html' title='Stats in Teradata'/><author><name>Manish Pandey</name><uri>http://www.blogger.com/profile/09136288165609062107</uri><email>manish.pandey09@gmail.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;A0EBR348eip7ImA9WhdWFEU.&quot;'><id>tag:blogger.com,1999:blog-7785114603589532880.post-5129150718314321701</id><published>2011-09-02T03:19:00.000-07:00</published><updated>2011-09-08T06:47:36.072-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-09-08T06:47:36.072-07:00</app:edited><title>Macro in Teradata</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;
&lt;br /&gt;
&lt;div style="color: #a64d79;"&gt;
&lt;span style="font-size: large;"&gt;What is macro. What is the difference between macro and procedure.&lt;/span&gt;&lt;/div&gt;
A macro is the set of sql statements which can be run as a single statement.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;u&gt;Macro&lt;/u&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; &lt;u&gt;Procedure&lt;/u&gt;&lt;br /&gt;
Macro returns set of data/rows to the user.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It does not return data/rows to the user.&lt;br /&gt;
It is allows only input values.&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; It provides Input/Output parameter.&lt;br /&gt;
It is stored in DBC Perm space.&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; It is stored in DATABASE/USER Perm space.&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: #3d85c6;"&gt;
To create a macro:&lt;/div&gt;
CREATE MACRO macro_name AS&lt;br /&gt;
(SELECT eid, ename&amp;nbsp; FROM emp WHERE deptno=20;);&lt;br /&gt;
&amp;nbsp;&lt;span style="color: #3d85c6;"&gt;To execute a macro:&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;EXEC macro_name;&lt;span style="color: #3d85c6;"&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;To create a parametrized macro:&lt;/span&gt; &lt;br /&gt;
CREATE MACRO macro_name( in_param DATATYPE)&lt;br /&gt;
(SELECT eid, ename&amp;nbsp; FROM emp WHERE deptno= :in_param;);&lt;br /&gt;
&lt;span style="color: #3d85c6;"&gt;To execute a macro:&lt;/span&gt;&lt;br /&gt;
EXEC &amp;lt;macro_name&amp;gt; [parameter value list];&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785114603589532880-5129150718314321701?l=manishpandey-teradata.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manishpandey-teradata.blogspot.com/feeds/5129150718314321701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manishpandey-teradata.blogspot.com/2011/09/macro-in-teradata.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785114603589532880/posts/default/5129150718314321701?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785114603589532880/posts/default/5129150718314321701?v=2'/><link rel='alternate' type='text/html' href='http://manishpandey-teradata.blogspot.com/2011/09/macro-in-teradata.html' title='Macro in Teradata'/><author><name>Manish Pandey</name><uri>http://www.blogger.com/profile/09136288165609062107</uri><email>manish.pandey09@gmail.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DEIHRHs5eCp7ImA9WhdXGUk.&quot;'><id>tag:blogger.com,1999:blog-7785114603589532880.post-6508038057882242615</id><published>2011-09-01T23:55:00.000-07:00</published><updated>2011-09-01T23:55:35.520-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-09-01T23:55:35.520-07:00</app:edited><title>Performance Tuning in Teradata</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;This post to be released soon.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785114603589532880-6508038057882242615?l=manishpandey-teradata.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manishpandey-teradata.blogspot.com/feeds/6508038057882242615/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manishpandey-teradata.blogspot.com/2011/09/performance-tuning-in-teradata.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785114603589532880/posts/default/6508038057882242615?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785114603589532880/posts/default/6508038057882242615?v=2'/><link rel='alternate' type='text/html' href='http://manishpandey-teradata.blogspot.com/2011/09/performance-tuning-in-teradata.html' title='Performance Tuning in Teradata'/><author><name>Manish Pandey</name><uri>http://www.blogger.com/profile/09136288165609062107</uri><email>manish.pandey09@gmail.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;DEEGQXc-eCp7ImA9WhdWEE8.&quot;'><id>tag:blogger.com,1999:blog-7785114603589532880.post-6401510341555237362</id><published>2011-08-30T06:45:00.000-07:00</published><updated>2011-09-02T22:10:20.950-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-09-02T22:10:20.950-07:00</app:edited><title>Introduction of Teradata Database</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;The concept of teradata system is little bit different. There is only one database(your teradata system) with lots of (schemas/users). Here (schemas/users) is called database.&lt;br /&gt;
In this system dbc is the owner of all metadata. In dbc you can find all the object of teradata.&lt;br /&gt;
&lt;br /&gt;
&lt;div style="color: #a64d79;"&gt;To get all tables name which consist the particular column.&lt;/div&gt;select tablename, columnname from dbc.columns where columnname ='Emp_Id' and databasename = 'EMPDB';&lt;br /&gt;
&lt;div style="color: #a64d79;"&gt;To see all the objects in a particular database.&lt;/div&gt;Help database databasename;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785114603589532880-6401510341555237362?l=manishpandey-teradata.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manishpandey-teradata.blogspot.com/feeds/6401510341555237362/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manishpandey-teradata.blogspot.com/2011/08/introduction-of-teradata-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785114603589532880/posts/default/6401510341555237362?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785114603589532880/posts/default/6401510341555237362?v=2'/><link rel='alternate' type='text/html' href='http://manishpandey-teradata.blogspot.com/2011/08/introduction-of-teradata-database.html' title='Introduction of Teradata Database'/><author><name>Manish Pandey</name><uri>http://www.blogger.com/profile/09136288165609062107</uri><email>manish.pandey09@gmail.com</email></author><thr:total>0</thr:total></entry><entry gd:etag='W/&quot;C0ECQ3k_cCp7ImA9WhdXF0w.&quot;'><id>tag:blogger.com,1999:blog-7785114603589532880.post-4745227792179968813</id><published>2011-08-30T03:58:00.000-07:00</published><updated>2011-08-30T06:41:02.748-07:00</updated><app:edited xmlns:app='http://www.w3.org/2007/app'>2011-08-30T06:41:02.748-07:00</app:edited><title>Index in Teradata</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #a64d79;"&gt;&lt;span class="Apple-style-span" style="font-size: large;"&gt;What is index. How many types of indexes in Teradata.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
=&amp;gt; Index is physical mechanism which is used to access and distribute the data rows.&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;Indexes help to fast retrieval of data set and useful to data distribution across AMP.&lt;br /&gt;
&lt;br /&gt;
=&amp;gt;&lt;u&gt;There are four main&amp;nbsp;types of indexes in Teradata.&lt;/u&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;* Primary Index&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;* Secondary Index&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;* Join Index&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;* Hash Index&lt;br /&gt;
&lt;br /&gt;
=&amp;gt; &lt;u&gt;These indexes divided into following sub category.&lt;/u&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;* Unique Primary Index (UPI)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;* Non-Unique Primary Index (NUPI)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;* Partitioned&amp;nbsp;Primary Index(PPI)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;* Non-Partitioned&amp;nbsp;Primary Index(NPPI)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;* Unique Secondary Index (USI)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;* Non-Unique Secondary Index (NUPI)&lt;br /&gt;
&lt;br /&gt;
=&amp;gt; &lt;u&gt;Join Index has six subtypes viz:&lt;/u&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;* Single table join index(STJI)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;* Single table aggregate join index(STAJI)&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;* Single table sparse join index&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;* Multitable simple join index&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;* Multitable aggregate join index&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;* Multitable sparse join index&lt;br /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3f3f3f; font-family: 'Lucida Grande', Verdana, Helvetica, Arial, sans-serif; font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 12px; line-height: 17px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3f3f3f; font-family: 'Lucida Grande', Verdana, Helvetica, Arial, sans-serif; font-size: small;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3f3f3f; font-family: 'Lucida Grande', Verdana, Helvetica, Arial, sans-serif; font-size: small;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3f3f3f; font-family: 'Lucida Grande', Verdana, Helvetica, Arial, sans-serif; font-size: small;"&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: #3f3f3f; font-family: 'Lucida Grande', Verdana, Helvetica, Arial, sans-serif; font-size: small;"&gt;&lt;div style="color: #3f3f3f; font-size: 12px; line-height: 17px; margin-bottom: 1em; margin-left: 0px; margin-right: 0px; margin-top: 1em;"&gt;&lt;span class="Apple-style-span" style="color: black; font-family: Times;"&gt;&lt;span class="Apple-style-span" style="font-size: small; line-height: normal;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7785114603589532880-4745227792179968813?l=manishpandey-teradata.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://manishpandey-teradata.blogspot.com/feeds/4745227792179968813/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://manishpandey-teradata.blogspot.com/2011/08/index-in-teradata.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7785114603589532880/posts/default/4745227792179968813?v=2'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7785114603589532880/posts/default/4745227792179968813?v=2'/><link rel='alternate' type='text/html' href='http://manishpandey-teradata.blogspot.com/2011/08/index-in-teradata.html' title='Index in Teradata'/><author><name>Manish Pandey</name><uri>http://www.blogger.com/profile/09136288165609062107</uri><email>manish.pandey09@gmail.com</email></author><thr:total>0</thr:total></entry></feed>