Skip to content Skip to sidebar Skip to footer
Showing posts with the label Casting

Using Cast In Sql With Multiple Column Selections

Basically I'd like to get this command to work: $sql = 'SELECT (EntryDate + TotalTime) as D… Read more Using Cast In Sql With Multiple Column Selections

Convert Fractional String To Decimal

I've got a few columns that have values either in fractional strings (i.e. 6 11/32) or as decim… Read more Convert Fractional String To Decimal

Prevent Mysql Casting String To Int In Where Clause

I'm trying to prevent mysql from casting a string to an int in a where clause. The following qu… Read more Prevent Mysql Casting String To Int In Where Clause

Sql Server : Conversion Error Numeric To Varchar Case

I have this query: CASE ClaimsFees.TBA WHEN 0 THEN CAST(IndemnityReserve AS NUMERIC(9,2)) E… Read more Sql Server : Conversion Error Numeric To Varchar Case

Cannot Cast Type Numeric To Boolean

ALTER TABLE products ALTER COLUMN power_price DROP DEFAULT; ALTER TABLE products ALTER COLUMN power… Read more Cannot Cast Type Numeric To Boolean

Varchar To Decimal Conversion In Db2

I am trying to convert a varchar field to decimal field in db2 but I am getting an error AMOUNT fie… Read more Varchar To Decimal Conversion In Db2

Why Is A Sql Float Different From A C# Float

Howdy, I have a DataRow pulled out of a DataTable from a DataSet. I am accessing a column that is… Read more Why Is A Sql Float Different From A C# Float

Sql Server. Why Field Value Of [almost] Any Type May Be Treated As Quoted String In Query/dml?

I discovered SUDDENLY that in SQL Server (2000) any field type value may be treated as quoted strin… Read more Sql Server. Why Field Value Of [almost] Any Type May Be Treated As Quoted String In Query/dml?