Quantcast
Channel: Teradata Forums - Database
Browsing all 14773 articles
Browse latest View live

Arcmain question : Operation not allowed: table is being restored - topic by...

Hi, I did a dictionary archieve of a table and then did a restore COPY dictionary tables ( db2.tab )   (from  ( db1.tab)), RELEASE LOCK, FILE=file;   I was able to do a show on the table. When i do a...

View Article


sql help: valid indicator for records that are >= 6 months - topic by...

I have a table that has customerid, and entrytimestamp. (combination of customerid and entrytimestamp is unique). read more

View Article


re:RAID AND FALLBACK - response (2) by vijayshankar245

Thanks a lot for the reply

View Article

Sharing table or view in multiple ODBC Connections - response (2) by fmartinus

Thanks Qaisar,   But what I'm looking for is whether it is possible to use the tables globally through different ODBC connection (not database under the same connection). For example: I have 2 ODBC...

View Article

Sharing table or view in multiple ODBC Connections - response (3) by suresh1802

Hi, I don't think you can use query to disconnect from the existing ODBC connection and connect to some other ODBC connection through SQL Assistant. But yes, you can do this in BTEQ using CLI...

View Article


Is it possible to use a macro to send out an e-mail notification? - response...

Hi,   I was just wondering why do you want to use macro, is ther any specific reason for this ? Because I have handled such things in after bteq script in the master job using shell script (UNIX)...if...

View Article

Issue with Decimal(38,0) data type in BTEQ - response (5) by dnoeth

For negative values you need to include the sign: '-(38)9' Dieter

View Article

How to force duplication of the rows from a small table on all AMPs -...

Hi Vikram, #1: the optimizer knows about the system (number of AMPs, CPU speed, etc.) and this is included in planning, so yes, it's dependent on the number of AMPs #2: There are many different ways to...

View Article


Sharing table or view in multiple ODBC Connections - response (4) by dnoeth

Teradata doesn't provide any builtin way to access data from two different Teradata servers within the same query, not in ODBC and not in BTEQ. You have to write a table UDF or use a 3rd party...

View Article


Is it possible to use a macro to send out an e-mail notification? - response...

If you can't do it in a Unix shell you have to write a XSP for the mail part, in the appendix of the "SQL External Routine Programming" there's an example for that. And because Macro's don't support IF...

View Article

Arcmain question : Operation not allowed: table is being restored - response...

ARCHIVE DICTIONARY TABLES includes metadata only, i.e. DDL, but no data.  I'm not shure, but IIRC a restore only inserts into the system tables, but doesn't create the table header. It should be...

View Article

sql help: valid indicator for records that are >= 6 months - response (1) by...

This is one way of solving it... TEST_TBL is the one from which the customer records are selected, and MASTER_TBL contains the final results with indicators! CREATE TABLE MASTER_TBL( ID INTEGER,...

View Article

Sharing table or view in multiple ODBC Connections - response (5) by suresh1802

Dieter, But in BTEQ while logging in we can mention the host name of server1 and do the transaformation...what ever is required.. And then log off from server1...connect to server2 with...

View Article


Sharing table or view in multiple ODBC Connections - response (6) by dnoeth

Hi Suresh, of course you can connect to multiple servers in BTEQ one after the other, but fmartinus wanted to access both servers within the same query. Dieter

View Article

Compare two tables using utilities - response (1) by i150371485

Experts,   Could you please look in to the above post.? Your help is much appreciated ..

View Article


What is index join confidence - response (3) by suresh1802

Hi Ragav, Index join confidence will appear in instances when an index (with or without statistics) is present on one side of the join but no index or statistics are on the other side. pls refer for...

View Article

sql help: valid indicator for records that are >= 6 months - response (2) by...

Hi Feroz, you need some recursive process like this: CREATE VOLATILE TABLE vt AS ( SELECT customerid, entrytimestamp, ROW_NUMBER() OVER (PARTITION BY customerid ORDER BY entrytimestamp) AS rn FROM...

View Article


Sharing table or view in multiple ODBC Connections - response (7) by suresh1802

Yeah Dieter, you are correct, this is not possible with in the same query. Suresh

View Article

Compare two tables using utilities - response (2) by dnoeth

If you insist on a column level report you need to split all columns into rows before comparison like: select * from ( select name, 'city' as column_name, city as source_value from source_table union...

View Article

sql help: valid indicator for records that are >= 6 months - response (3) by...

Dieter, Thank you very much for your help. I tried the logic and it works great.   Quisar Aftab, thanks for looking into this i will work on that too and see how it works. -Feroz.  

View Article
Browsing all 14773 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>