TeradataR Question - topic by gbindra
Hi, I am trying to run some functions in R use TeradataR. IT seems like some of the funcitons does not work or limit the number of rows to top 50. HEre is one of the error which I am receiving read...
View Articlegroup by grouping sets and case when grouping - topic by pirrejo
Hello All, When using group by grouping sets, I have always resorted to using longwinded case statements (as in the example below), but thought there must be an easier and cleaner way...is there? I...
View ArticleRE:performance tuning for query with 27 left joins - response (11) by blue
Can you help me understand why the queries below perform so differently? This query returned in 1 second: select count(*) from oeai3.v_dw_mbr_vers where mbr_key<200000000; row count = 8,951,890 This...
View ArticleHow many sessions maximum can be assigned - response (3) by vratnam
i have 1Tb teradata warehouse and single node this architecture it contains how many PE/AMP/SESSIONS is there give me full explanation
View ArticleFrom which Table? - topic by Rehsha
Hi Team, I remeber a varible that I was using earlier and coudnt figure it our from which table and in which schema. So, can we give a search on the entire database to fetch for the specifc variable...
View ArticleTable Growth using dictionary tables - response (5) by QAKiani
If I remember correctly, PDCR is called Performance Data Collection & Reporting services database, which complements the inforamtion captured in ResUsage tables or DBQL to give a more advance...
View ArticlePartition Violation Error - response (3) by QAKiani
Good that you know the reason for getting the error! Having a partition defined on the integer value of dates doesn't seem logical to me. Normaly the tables are partitioned based on the intervals like...
View ArticleStored Procedure Error - response (1) by QAKiani
You can call the stored procedure using the statement CALL MyFirstProc(1077, saleamt, 0); The Rule is - IN parameters, you have to pass the value - OUT parameters, you have to specify a variable name -...
View ArticleHow to check access privileges?? - response (13) by QAKiani
You can use the view DBC.ALLRIGHTS and DBC.ALLROLERIGHTS to get the rights granted directly to a database and the ones that are granted through a role...
View ArticleObtaining DDL Information From The System Tables - response (3) by QAKiani
If you want to get this information through dbc metadata tables then as Dieter mentioned, it is not possible to get all 'possible' parameter information. You can get the latest table defintion using...
View ArticleLock row for access : In insert-Select - response (4) by teradatauser2
if i do it this way : Lock table tab1 for access insert into tab2 sel * from tab1 This works. How is this different from the row level access that we generally apply
View Articleconvert string to date format - response (11) by Qaisar Aftab Kiani
SELECT '8/12/2012' AS COL1 , CAST(CASE WHEN CHAR_LENGTH(SUBSTRING(COL1 FROM 1 FOR POSITION('/' IN COL1)-1))=1 THEN '0'||SUBSTRING(COL1 FROM 1 FOR POSITION('/' IN COL1)-1) ELSE SUBSTRING(COL1 FROM 1...
View ArticleHow to force duplication of the rows from a small table on all AMPs -...
Hi Ayush, The reason that your tablea is redistributed is because the join is on UPI and no index. TableA has a three columns NUPI, and in the join condition you are only using one column, so basically...
View Articleconvert string to date format - response (12) by Arash
Many thanks for all the help Teradata! It solved my problem.
View ArticleHow to force duplication of the rows from a small table on all AMPs -...
Aftab, Thanks for the response and the suggestion. What if I move all the data from the smaller table 'tableb' which has only 15 million rows into another table and create an altogether different...
View ArticleHow to force duplication of the rows from a small table on all AMPs -...
Hi Ayush, In that case the join will cost more as you are joining two non-index columns. TD will be redistributing the data for both of the tables on the joining columns to make sure that the data is...
View ArticleSQL to find Row Count - topic by chand308
Hi, I am trying to find if there is any way we can find the record count of queries that logged into DBQL with Insert or Update statement types. I tring to see the row count by taking the queryid and...
View ArticleViewpoint / Workload Monitor Dynamic Pipes View. - response (8) by carrie
This question was also posted on my blog on Dev X. Here is the response I gave at that location: A query is not allocated to a resource partition directly. It is mapped to a performance group. A query...
View Article