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

Hi, If anyone has TD 14 Basics dumps or study materials, please share. nirmaaal1991@gmail.com

1958


If a Node is busy what are the steps you can take to avoid ?

1870


In general, how do you optimze any sql in teradata?

543


What is spool space?

600


Explain the parallel data extension in teradata?

652






What is the command in bteq to check for session settings ?

632


What are the multiload utility limitations?

590


What is teradata? Also, list out some of the primary characteristics of teradata.

577


List out teradata data types?

557


What is meant by a dispatcher?

562


What happens in a conflict? How do you handle that?

618


What is a node in teradata? Explain

599


How to Extract data from multiple legacy systems?

572


What is the use of virtual processor connectivity in teradata?

563


How to eliminate product joins in a teradata sql query?

599