Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

Performing CAST on SQL query

$
0
0

Just started playing around with sql and I ran into a problem. I have a very simple query 

SELECT JobRecords.JobNumber, JobRecords.Color_Name,

UnitCost*QtyUsed

AS

[Total Ink Cost per Line]

FROM JobRecords;

I want to CAST the results of the field total ink cost per line as money but I can't figure out the right syntax to do so.  


Viewing all articles
Browse latest Browse all 4871

Trending Articles



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