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

Explain and compare pros and cons of start schemas?

1058


What is meant by a Clique?

1058


why use references rather than pointers in the public api, particularly for arguments which are modified?

999


What is the purpose of upsert command?

1169


What are the available primary index types in teradata.

1028


What is difference between user and database in teradata?

1065


Is it necessary to add? Quit statement after a bteq query when I am calling it in a unix environment?

1233


There is a column with date in it. If I want to get just month how it can be done? Can I use sub string?

1104


Can you connect multiload from ab initio?

1207


What is the primary index in teradata?

1193


Explain the advantages of partitioned primary index in a query?

1020


Explain the term 'tables' related to relational database management system?

1039


What is TPD?

1366


How do you define Teradata?

1029


Highlight the differences between Primary Key and Primary Index.

1083