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

Oracle numeric data type equivalent on Teradata. - response (4) by AshishPatil

Thanks Dieter,   We are migrating to TD13.10.   We are thinking to replace NUMBER as DECIMAL(38,14) in teradata, is it good idea to replicate same as Oracle?   or should we first analyse data for max...

View Article


Oracle numeric data type equivalent on Teradata. - response (5) by dnoeth

Of course you should analyse the actual data, the one-size-fits-all approach of NUMBER is for lazy Oracle programmers who don't want to think about the data. And don't forget to analyse the Oracle DATE...

View Article


Oracle numeric data type equivalent on Teradata. - response (6) by AshishPatil

Thank you very much for quick response Dieter,   Regarding DATE columns, yes we have already addressed that one by making Oracle DATE columns(Has date, time and AM/PM ) as TIMESTAMP(24 hrs) in teradata...

View Article

Calulation of duration in time format. - topic by tejasmore

Hi, I am having a table, which looks like below: create table activity_time ( read more

View Article

Compression - BLC and MVC - response (1) by dnoeth

You will notice that BLC + MVC is not saving much additional diskspace compared to BLC. But you should still do MVC because BLC data is uncompressed in spool and for backups whereas MVC keeps...

View Article


Calulation of duration in time format. - response (1) by dnoeth

I assume you're using SQL Assistant and an ODBC connection. You should get an error message "5407 Invalid operation for DateTime". Do a SHOW TABLE and check if the columns are INT instead of TIME. To...

View Article

Number of seconds elapsed since beginning of day - topic by dlabar

I have a timestamp with time zone field and I would like to get the number of seconds that have elapsed from the start of that day.  This seems like it should be very trivial but I've searched for...

View Article

Oracle Connect by Equivalent function in Teradata - response (1) by Qaisar...

I believe that in Oracel START WITH... CONNECT BY clause is used to select the hierarichal data. Teradata doesn't support this clause but you can achieve similar functionality by writing Recursive...

View Article


Number of seconds elapsed since beginning of day - response (1) by dnoeth

The number of seconds is extract(hour from ts) * 3600 + extract(minute from ts) * 60 + extract(second from ts) Dieter

View Article


Number of seconds elapsed since beginning of day - response (2) by dlabar

This will work: SELECT extract(hour from tswtz)*60*60 + extract(minute from tswtz)*60 + extract(second from tswtz) s0 FROM tbl...but I thought there must be a more elegant method (such as one cast...

View Article

How to Delete all objects in a particular database? - response (2) by usmans

Cheers!

View Article

Delete or Drop a table if it already exists - response (14) by DataHead

OK, Thanks Harpreet & Dieter!! Appreciate your help.

View Article

Top 10 Databases And Tables According To Size? - topic by usmans

In an environment, how can you find the top 10 space consuming Databases and Tables? Also, when you calculate the space in an environment, would you use the MAXPERM or CURRENTPERM?  

View Article


How to assign rights of existing user to a newly created user? - topic by usmans

9 times out of 10, it happens that I get a request that I have to create a new user and give him rights of any existing user. My question is that how can we get the rights of that existing user? I...

View Article

Top 10 Databases And Tables According To Size? - response (1) by...

MAXPERM IS the MAX Permanant space that has been allocated. CURRENTPERM IS the Permanant space occupied currently. So use CURRENTPERM TO calculate space consumed. Use SQL below to find TOP Databases by...

View Article


Space in the database - response (10) by sachin.sebastian

Thanks Dieter and Qaisar. Will this wastage be there at a Table level also?  i.e If I am trying find the Space occpied by a Table (instead of Database) should I use MAX(CurrentPerm) * (HASHAMP()+1)...

View Article

Space in the database - response (11) by Qaisar Aftab Kiani

Yes, the wastage is at the Table level and thats why the selection of PI is important to avoid skewness. MAX(CurrentPerm) * (HASHAMP()+1) should give you a more realistic estimates!

View Article


unable to run query in Teradata Studio Express while being used in VMware...

  This is regarding Teradata Studio Express being used in VMware player.   I am trying to execute a query but unable to do so. Instead, i am facing following issue.   I get "Unable to Launch" pop up...

View Article

Number of seconds elapsed since beginning of day - response (3) by dlabar

Thanks Dieter.  I was thinking there would be a way to do it in one `cast` instead of three `extract`s, but it probably doesn't matter and this works fine.

View Article

OLAP functions in M:N relation - topic by Petr Horcicka

  We have two record set as an input: 1.      key_1, key_2, prio, amount_1 2.      key_2, amount_2 And look for this output 1.      key_1, key_2, amount_3 under following rules: -         sort records...

View Article
Browsing all 14773 articles
Browse latest View live


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