Book Image

Teradata Cookbook

By : Abhinav Khandelwal, Viswanath Kasi, Rajsekhar Bhamidipati
Book Image

Teradata Cookbook

By: Abhinav Khandelwal, Viswanath Kasi, Rajsekhar Bhamidipati

Overview of this book

Teradata is an enterprise software company that develops and sells its eponymous relational database management system (RDBMS), which is considered to be a leading data warehousing solutions and provides data management solutions for analytics. This book will help you get all the practical information you need for the creation and implementation of your data warehousing solution using Teradata. The book begins with recipes on quickly setting up a development environment so you can work with different types of data structuring and manipulation function. You will tackle all problems related to efficient querying, stored procedure searching, and navigation techniques. Additionally, you’ll master various administrative tasks such as user and security management, workload management, high availability, performance tuning, and monitoring. This book is designed to take you through the best practices of performing the real daily tasks of a Teradata DBA, and will help you tackle any problem you might encounter in the process.
Table of Contents (19 chapters)
Title Page
Dedication
Packt Upsell
Contributors
Preface
Index

Exporting data


The data that we imported can be exported back to a file. 

How to do it

With Teradata Studio Express

Here is how wedo it for Studio Express:

  1. Go to data explorer.
  2. Search for the database under which the required table is located.
  3. Explore the database.
  4. Right-click on the table, Name | Data | Export Data.
  5. The Wizard will come up; select the destination file where the data needs to be written in.
  6. Select the option of Export Data Format from File options.
  7. Once the data is written to the file, you will get a success message. 
  8. Open the file to verify the data.

With Teradata SQLA

  1. Select the Export Data option from the File tab.
  2. Execute the select query from which you need to export the data.
  3. As you hit F5 for execution, a window prompt will appear. Save the file with the required name and format.
  4. Your data will be written to the file.

Note

If you have a date column in the table, use the data format from the Options tab to get the date format in the file.

To save the file in the Excel format, use "filename.xlsx" in double quotes:

"filename.xlsx"

How it works...

The export function of the tool let's you copy data from variety of files. This is useful when you want to copy a table data onto your local machine. This is fast and effective way to move data from table to any local file type that you want. It is however recommended not to copy large amount of data set as it might crash the local machine or the application.

There's more...

You can export data from a Teradata table (Source Type = Teradata):

  •  To another table in the same Teradata Database or in a different Teradata Database.
  • To an external file in the file system, such as a text file or Microsoft Excel spreadsheet.
  • To a Aster table.
  • To a Hadoop table.