moving first 4 characters to last 4 characters - response (3) by tomnolan
Why does Teradata Express come only as a VM component? Why not as a standalone software to be installed on physical desktop? - forum topic by subhayu
Hi
I have a basic question - Why does Teradata Express come only as a VM component? Why not as a standalone software to be installed on physical desktop?
Is it because the internal AMP-VPROC architecture or anything else?
Thanks.
Formatting in Teradata - forum topic by hv186006
Hi guys,
New on Teradata. For a client I am trying to format some numbers. The wish is to paste the string 'EUR' to a value as follows.
EUR 0.32
EUR 0.00
EUR 189.56
EUR 1,234.87
We have tried different formats, but face some challenges. For instance, the format G9D99 works fine for the first two, but does not work with the larger numbers. And the formate G-Z(10)D9(2) works fine for the larger numbers, but removes the first zero with the smaller numbers.
Is there a format that can fullfill both our wishes?
Hope to hear something :)
Kind regards,
Helena
Formatting in Teradata - response (1) by CarlosAL
Hi
Have you tried FORMAT 'G-(9)9D9(2)' ?
HTH.
Cheers.
Carlos.
Formatting in Teradata - response (2) by hv186006
THANK YOU CARLOS!!!!!
I understand the format mostly, only the part (9)9 not totally. Do you have an explanation for this?
I saw that the format 'G-999999999D(9)2' fills up the positions with zero's, while your solution fills it up with spaces. Why is that?
Anyway; many thanks!
Formatting in Teradata - response (3) by CarlosAL
Hi.
G=Group Separator
-(9)=Minus sign (if applicable) for 9 positions
9=Last number before decimal separator mandatory.
D=Decimal Separator
9(2)= two decimal positions.
Cheers.
Carlos.
Teradata: No more room in journal table for novaquality.journals - response (3) by juanalfonso
Ok, Thanks!
Remote desktop to TD Express 15.10 Virtual Machine is not working - forum topic by juanalfonso
Hello,
I'm using the TD Express 15.10 Virtual Machine but I've discovered that UltraVNC is not woking for doing a remote desktop from Windows.
Could anyone tell me how to fix it?
Thanks and regards
Formatting in Teradata - response (4) by hv186006
Got it! Thats why my 999999999 resulted in leading zero's, because you then say it is mandatory to put a number on that position.
Well, you made me and a client happy today, thanks and have a good day!
Why does Teradata Express come only as a VM component? Why not as a standalone software to be installed on physical desktop? - response (1) by dnoeth
Is your physical desktop running Suse Linux Enterprise?
Most PCs got a Windows operating system and there's no (more) Teradata for Windows.
Additionally it's more convenient to simply start a VM.
Replacing table - forum topic by SGIT
Hello,
In SAS if a new table A is created using the table A itself, the new table will overwrite the old. Can you pl let me know if same is the case in TD. -
create volatile table emp as
( select a.*
from emp a
left outer join company b
on a.id = b.id
)
with data and stats
on commit preserve rows
;
Will my newly created emp table replace the old one ?
Thanks
Set multiple variable in one case statement - forum topic by SGIT
Hello,
I am converting some SAS code to TD : In SAS you can set multiple variables within a single case statement. Can we do the same in TD? Thanks in advance
if RFRL_SRC_CD = '039' then do;
var_first = 1;
var_second = prcd_amt;
end;
Replacing table - response (1) by Glass
If emp exists your query will fail.
To replace , drop old first.
Rlgass
Why does Teradata Express come only as a VM component? Why not as a standalone software to be installed on physical desktop? - response (2) by subhayu
Hi Dieter,
That answers. Thanks! I was not aware that Teradata is not available for Windows.
So what if we have a requirement for handshaking between a MSBI stack and Teradata? Say, TD needs to read files from SSIS or SSAS kept in Windows file system. How am I going to handle it?
Regards,
Subhayu
Set multiple variable in one case statement - response (1) by CarlosAL
Hi.
What does it mean "Teradata code"? bteq script? Stored Procedure? Other?
CASE (SQL) won't work this way, maybe a SP will.
Cheers.
Carlos.
equivalent function for Month(); DateAdd() - forum topic by plechat
Hello,
i want my sql script to automatically query the last month (first to last day) in the database.
Like if i am in august 2016 (the day doesn't matter), the query will pick all datassets with date between the 01/07/2016 and the 31/07/2016
I dno't want the change the range every month in the code and also the ? solution isn't appropriate since i will still have to enter a paremeter.
The script below return an error message saying it s something missing between "where" and "month"
Select T.*
From T
Where Month([Date_attribut]) = Month(DateAdd("m",-1,Date()));
I'm using a Teradata SQL Assistant with ODBC connection.
Thanks in advance for any help.
Regards,
Patrick
Why does Teradata Express come only as a VM component? Why not as a standalone software to be installed on physical desktop? - response (3) by dnoeth
Hi Subhayu,
you simply install the Teradata Client for Windows: TTU - Windows Install
equivalent function for Month(); DateAdd() - response (1) by dnoeth
Hi Patrick,
the Standard SQL way would be EXTRACT(MONTH FROM col)
, but you better avoid functions on both sides of a comparison:
Where Date_attribut between TRUNC(CURRENT_DATE, 'mon') AND LAST_DAY(CURRENT_DATE)
Updating second row value to new column first row - response (1) by Akshay.Shaha
Hi,
Is RN column part of your table? If yes, then below query should do :
MERGE INTO tab A USING
(
SELECT id , col2 FROM tab WHERE rn = 2
) B (id,col2)
ON (A.id = B.id AND A.rn = 1)
WHEN MATCHED THEN UPDATE SET new_col=B.col2 ;
PS - MERGE will not work on NoPI table.
Set multiple variable in one case statement - response (2) by SGIT
Could you elaborate on how a SP could do the above?
The DATE FORMAT approach is probably better, but since you mentioned substring, for comparison, the substring+concatenation approach would look like the following:
select substring(cast(time_key as varchar(8)) from 5 for 4) || substring(cast(time_key as varchar(8)) from 1 for 4) from ...