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

Is multi insert ansi standard?

2249


What is a level of granularity of a fact table?

1219


What are the frequently used data types in teradata?

1131


Highlight the differences between Primary Key and Primary Index.

1143


What do you mean by caching in teradata?

1103


what is object level locking ? where do appear this type of locking ?

3538


What is upsert statement in teradata?

1190


What are the 5 phases in a multiload utility?

1087


What tools would you use for that?

1154


Discuss the advantages of using partitioned primary index in a query?

999


What do you mean by ttu in teradata?

1082


What do you mean by fastexport in teradata?

1044


While creating table my dba has fallback or no fallback in his ddl. What is that?

1241


How do you verify a complicated sql?

1113


How to explain project Architecture and flow in teradata interviews?Can please anyone help on this? Am new to teradata.

4421