Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3189

Re: Convert Nvarchar error

$
0
0

Thanks Johan

 

I get this error with that query. The substring function requires 3 arguments? The end result needs to be the @Price / Margin

 

Declare @Price numeric (19,6)

Declare @Margin numeric (19,6)

 

 

Set @Price = CAST(RTRIM(SUBSTRING(N'GBP 5.00                                ')) AS numeric (19,6))

Set @Margin = 1 - CAST(N'0.250000' AS numeric (19,6))

 

 

Select @Price/@Margin


Viewing all articles
Browse latest Browse all 3189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>