Professional Documents
Culture Documents
Page 1 of 8
More
Next Blog
Create Blog
Sign In
Teradata information
Followers
Members (4)
My Search Engine
Search
Is this blog
content useful?
Hello
I need to get the count of the data which is union of all the table's
data.
for example there are 3 tables a,b,c in which
table 'a' has 3 rows
table 'b' has 4 rows.
table 'c' has 5 rows.
http://nagarajuvaraparla.blogspot.in/
10-03-2015
Teradata information
Blog Archive
2008 (9)
September (9)
caliculate permspace taken by a
table in teradata
getting count of data from n
different tables in t...
To get syntax for a command in
teradata
Teradata - Permanent Space VS
Temporary Space VS S...
Concept of Primary Key and
Primary Index in Terada...
How do i update multiple rows of
a table in a sing...
select TOP n row(s) from a table.
How to display Date in 'YY-MM-dd'
format in Sql As...
Global Temporary Tables and
Volatile Temporary Tab...
About Me
NAGARAJU VARAPARLA
hyderabad, Andhra Pradesh, India
Software Engineer with Teradata
View my complete profile
Page 2 of 8
select * from c;
*** Query completed. 5 rows found. 3 columns returned.
*** Total elapsed time was 1 second.
col1 col2 col3
----------- ----------- ----------555
333
111
444
222
SELECT
(
SELECT
UNION
SELECT
UNION
SELECT
)t;
SUM(CountTables) FROM
COUNT(*) AS "CountTables" FROM a
COUNT(*) AS "CountTables" FROM b
COUNT(*) AS "CountTables" FROM c
http://nagarajuvaraparla.blogspot.in/
10-03-2015
Teradata information
Page 3 of 8
BULKLOAD
DUMP
ARCHIVE
MULTILOAD
VERSION
SPL
FASTEXPORT
DATA_TYPE
HELP
SQL
FASTLOAD
TPCCONS
Second parameter the command name for which we need to find the
syntax.
examples includes:
exec dbc.getsyntax('FASTLOAD','DEFINE');
exec dbc.getsyntax('MULTILOAD','.IMPORT');
exec dbc.getsyntax('SQL','UPDATE');
Posted by NAGARAJU VARAPARLA at 4:09 AM No comments:
Labels: getsyntax
http://nagarajuvaraparla.blogspot.in/
10-03-2015
Teradata information
Page 4 of 8
-> Spool space is used to hold data for Intermediate Query results.
Holds only data.
Active upto the current session only.
Spool space is same as that of the root, unless specified.
-> Temporary Space is used to store Global temporary tables data.
Data is active upto the current session only.
SET Table
Multiset Table
Global Temporary Table (GTT)
Temporary Table
Volatile Temporary Table
http://nagarajuvaraparla.blogspot.in/
10-03-2015
Teradata information
Page 5 of 8
5. Collect stats : No
Posted by NAGARAJU VARAPARLA at 3:53 AM 2 comments:
http://nagarajuvaraparla.blogspot.in/
PI Specified
IF ..
THEN.
No
PK specified?
PK = UPI
10-03-2015
Teradata information
Page 6 of 8
Yes
UNIQUE specified?
Neither specified?
PK specified?
PK = USI
UNIQUE specified?
UNIQUE = USI
Primary Key
Primary Index
May be NULL
http://nagarajuvaraparla.blogspot.in/
10-03-2015
Teradata information
Page 7 of 8
2
2
2
4
5
6
Problem:
To Get 2nd row from the bottom.
select * from tab7 QUALIFY RANK(col1) =2;
col1 col2
----------- ----------55
http://nagarajuvaraparla.blogspot.in/
10-03-2015
Teradata information
Page 8 of 8
Home
Older Posts
http://nagarajuvaraparla.blogspot.in/
10-03-2015