write a query following data.
123.45 is input.write a query after decimal (ex:.45) load
into database ?how it possible?
Answers were Sorted based on User's Feedback
Answer / yuvaevergreen
Assuming the column type to be decimal type and the same table to be updated, the string function can be used.
update dbname.tbname
set salary=
substr(cast (salary as char(10)),index(cast (salary as char(10)),'.'))
>>>salary is of type decimal..
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / ankal
assuming this value is sal colume i mean sal=123.45; u want to update it with after decimal value.i think The following query try.
update table_name set sal=sal-cast(sal as int));
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / tdguy
Above answers are correct, but data type should be taken
care of.
| Is This Answer Correct ? | 1 Yes | 0 No |
What are teradata utilities?
What is meant by a Clique?
What is the process to restart the multiload if it fails?
If a Node is busy what are the steps you can take to avoid ?
What are the available join types in teradata?
What is database exceptions in teradata?
Syntax for case when statement?
What is differnce between Error code and Error Level in Bteq
How is MLOAD Client System restarted after execution?
how do you manage the production space. what are the proactive methods you can take ?
1.what is activity count? 2.what is skew factor? how it's working explain brefily
how to delete duplicate records in multi set table without using any tables
2 Answers Accenture, Nest, South Nests Software Solution, Spiro Solutions,