Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Teradata Cookbook

You're reading from   Teradata Cookbook Over 85 recipes to implement efficient data warehousing solutions

Arrow left icon
Product type Paperback
Published in Feb 2018
Publisher Packt
ISBN-13 9781787280786
Length 454 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (3):
Arrow left icon
Abhinav Khandelwal Abhinav Khandelwal
Author Profile Icon Abhinav Khandelwal
Abhinav Khandelwal
Viswanath Kasi Viswanath Kasi
Author Profile Icon Viswanath Kasi
Viswanath Kasi
Rajsekhar Bhamidipati Rajsekhar Bhamidipati
Author Profile Icon Rajsekhar Bhamidipati
Rajsekhar Bhamidipati
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Installation 2. SQLs FREE CHAPTER 3. Advanced SQL with Backup and Restore 4. All about Indexes 5. Mixing Strategies – Joining of Tables 6. Building Loading Utility – Replication and Loading 7. Monitoring the better way 8. Collect Statistics the Better Way 9. Application and OPS DBA Insight 10. DBA Insight 11. Performance Tuning 12. Troubleshooting 13. Other Books You May Enjoy

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 we do 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.
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.

 

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image