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


Please Help Members By Posting Answers For Below Questions

Can we have an unconnected lkp to lookup a db2 record against a teradata record? Doesnt seem to work. I could be wrong

855


What is difference between user and database in teradata?

866


What is spool space?

838


Why teradata is used?

790


Hi Friends, Please send me Teradata Materials for certifications Thanks in advance !!

1934


What do you mean by fastexport in teradata?

769


Which is faster fastload or multiload?

833


Explain teradata architecture?

866


What is bteq utility in teradata?

754


What are the advantages of teradata?

815


How can we check the version of Teradata that we are using currently?

846


What are the components used in smp and massively parallel processing (mpp) machines?

839


What is basic teradata query language?

861


Explain the parallel data extension in teradata?

858


What are the uses of client software involved in teradata?

775