adspace


How to how to convert numeric expression data types using the convert() function??

Answer Posted / Shabnam Parween

You can use the CONVERT() function in MS SQL Server to convert numeric expression data types. The basic syntax is: CONVERT(data_type, expression [, length ] [, style ]). For example, to convert a decimal value to float, you can use: CONVERT(FLOAT, DecimalValue)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain different types of backups avaialabe in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration

1139


Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?

1032


what is the difference between openrowset and openquery?

1208


What is a scheduled job or what is a scheduled task?

1044


What is normalization and what are the advantages of it?

1067


What is the difference between upgrade and migration in sql server?

1193


How do I start sql server 2017?

1024


If you're given a raw data table, how would perform etl (extract, transform, load) with sql to obtain the data in a desired format?

1052


Does view occupy space?

1033


What is a coalesce function?

1292


Why should you use or avoid select * statements?

1120


How to remove duplicate rows from table except one?

1096


If any stored procedure is encrypted, then can we see its definition in activity monitor?

1083


You have a stored procedure, which execute a lengthy batch job. This stored procedure is called from a trigger you do not want to slow the data entry process you do not want trigger to wait for this batch job to finish before it completes itself what you can do to speed up the process?

1223


How to enter binary string literals in ms sql server?

1256