0
votes
1answer
153 views
How to yield maximum decimal digits from a cast?
I want to demonstrate the problem with the help of an example.
Accurate division: 7299 / 48 = 152.0625
However, in Teradata all precision is lost when querying for
select 7299/48 …
0
votes
1answer
158 views
How to perform Bit-wise operations in SQL?
How to perform simple bit-wise operations like OR (|), AND (&), XOR (^) in SQL queries?
Can these be performed on numeric values? like
sel 1 | 2;
2
votes
2answers
257 views
Different Explains of a same query on different Teradata systems
Here is the query:
SELECT max(TheTime) AS maxTime, max(TheDate) as maxDate
FROM DBC.ResUsageSvpr tm, (
SELECT max(TheDate) As maxDate
FROM DBC.ResUsageSvpr
WHERE (T …
0
votes
1answer
212 views
convert seconds to timestamp
I have a table with a column that has the number of seconds since january 1 1970 in an integer column. How do I convert this to a timestamp in Teradata? When I try this
SELECT (UT …