write a query following data.
123.45 is input.write a query after decimal (ex:.45) load
into database ?how it possible?
Answer Posted / 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 |
Post New Answer View All Answers
What is primary index and secondary index?
Explain the term 'database' related to relational database management system?
Explain fallback in teradata?
Why does varchar occupy 2 extra bytes?
How to find duplicates in a table?
What is the difference between teradata and oracle?
What is meant by a Virtual Disk?
Differentiate primary key and partition key?
What is called partitioned primary index (ppi) and discuss the advantages of using it in a query?
Can we collect statistics on table level?
Describe primary index in teradata?
What is the purpose of upsert command?
Explain the term 'columns' related to relational database management system?
Explain teradata architecture?
Explain the types of join supports by teradata?