Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What are differences between teradata and ansi session modes in teradata?

1107


Syntax for case when statement?

1016


Backup Script was blocked you are unable to archive the data now. how do you analyze it and where do you identify ?

2007


What are the functions of a teradata dba?

1032


What are some primary characteristics of teradata?

954


How to Extract data from multiple legacy systems?

1051


What tools would you use for that?

1043


what are the day to day activities of teradata DBA ?

5762


How to run a query in teradata?

1016


How teradata makes sure that there are no duplicate rows being inserted when its a set table?

934


How do you see a ddl for an existing table?

969


What is the difference between global temporary tables and volatile temporary tables?

1090


What is database exceptions in teradata?

901


What is the difference between teradata and basic rdbms?

962


What are the different softwares used with their functions in teradata?

972