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

Why can we have UPI only when PPI column is part of PI - forum topic by terasum

Why can we have UPI only when PPI column is part of PI, can someone explain in detail?  Thanks in AdvanceTags: ppiForums: Database

View Article


Size of table with partial data (active records) - forum topic by arbiswas

Hi Experts,  is there any way to calculate the size of partial records in a table. Like I have flag in a table which identfies whether the row is active (A)or inactive (I). I want to calculate how much...

View Article


Size of table with partial data (active records) - response (1) by terasum

You can get size of a complete table from DBC.Tablesize view.By using this view you can estimate the size of partial data.. lets say you have 100 records in your table which is of 10MB size(Tablesize),...

View Article

Primary Index - Selection of columns - forum topic by Asit

Hi, In my BTEQ script I have 1 table (T1) which is being used in 2 joins. First it's being joined with table T2. The coloumns participating in this join are C1,C2,C3. After that T1 is being joined with...

View Article

JARO_WINKLER_SIMILARITY Function for Teradata? - response (2) by teradatatester

Anyone already made a UDF for the JARO_WINKLER_SIMILARITY Function?

View Article


HUT Lock - forum topic by Kishore_1

What is the command to see the tables that are locked by HUT (Host Utility) locks on a Teradata database?Tags: HUT lockForums: Database

View Article

HUT Lock - response (1) by terasum

You have to go to viewpoint/manager and from there go to database console and open up showlocks utility.

View Article

Improve performance of like queries. - forum topic by barani_sachin

Hi All,    Is there anyway to improve the performance(Reducing the CPU consumed is the main aim for now) of queries involving like in the where clause.   WHERE FIRST_NM LIKE :V_FIRST_NM||'%' AND...

View Article


Responding Session: CPU Use and Impact CPU - forum topic by Kishore_1

I am observing a session thru View Point , which is in responding state for the past 10 days The CPU Use is 0 but the Impact CPU is 33.7 Similary I/O is 0 but I/O skew is 55%. Could anyone explain the...

View Article


Determine number working day between two dates - response (2) by pema_yozer

hi Bikky, I dont think it quite solves the problem. you are taking those dates which fall in betwen the dates and marking them as yes, but the second table is already a list of holiday  eg you query is...

View Article

Determine number working day between two dates - response (3) by VBurmist

CT A(START_DATE DATE,END_DATE DATE); INS INTO A VALUES('2013-06-03','2013-06-13'); INS INTO A VALUES('2013-06-06','2013-06-12'); INS INTO A VALUES('2013-06-05','2013-06-22'); CT B(HOL_DATE DATE,...

View Article

Stats collection inside SP's - response (16) by ombest

Found a workaround for dinamic SQL and collect stat on volatile tables. Set SQL SECURITY INVOKER Creating volatile tables, fill it and others.. and before collecting stat write dummy statement like...

View Article

Improve performance of like queries. - response (1) by dnoeth

You might try to rewrite this LIKE using POSITION or SUBSTRING, but it will probably not reduce CPU.  Dieter

View Article


Used CPU & IO compared to max CPU & IO, both per hour ==> SQL?? - forum topic...

Dear esteemed experts, I need to deliver to one of my end-users, an overview of the Used CPU & IO compared to their maxs, preferrably per hour. I know i have to look at the resusage and dbql...

View Article

Used CPU & IO compared to max CPU & IO, both per hour ==> SQL?? - forum topic...

Dear esteemed experts, I need to deliver to one of my end-users, an overview of the Used CPU & IO compared to their maxs, preferrably per hour. I know i have to look at the resusage and dbql...

View Article


Determine number working day between two dates - response (4) by dnoeth

Hi Vlad, this can be further simplified, you don't the sys_calendar: SELECT start_date, end_date, end_date-start_date+1 AS period_length, period_length - holiday_days AS working_days, SUM(CASE WHEN...

View Article

Compressing DATE datatype - forum topic by mzs

I am building a new table and my understanding is, since Terdata stores DATE datatype as integer, I need to specify a respective integer value in COMPRESS clause, i.e. to store compressed value of...

View Article


Compressing DATE datatype - response (2) by kw

This will work, but the table DDL will show the integer as a date value. Easier to use : COMPRESS (DATE '2099-01-01', DATE '1900-01-01') I think this may require the default date format on the system...

View Article

How to efficiently join GEO IP RANGE data - How to avoid product JOIN -...

Any suggestion?

View Article

Cloning a user including access rights - response (1) by ilf

Hi , Is there any method to make a clone of a user. Different names but the access and privilage be the same? Thanx. Irfan

View Article
Browsing all 14773 articles
Browse latest View live