New
#1
How to change the datatype in a query?
Hello everyone, I was doing an assignment in which i created a query and performed a calculation in it; the answer of the calculation should be as an integer whereas the answer i got is suppose "6.7779999", if i'm not wrong the only way to change my answer to an integer is by changing the data type, and i spend about half an hour trying to find a way to do so but in vain, so i was wondering if anyone here could please help me out. Thankyou
:)
P.s- I've been using office for quite some time now but the sql thing is pretty new to me, so if anybody suggests making any changes to it, can you tell me how exactly to do it aswell please? and bt the SQL view for my query is provided at the end and i wanna change the data type of hours worked to integer ..... SELECT DISTINCT Technician.[Technician Number], Technician.[Last Name], Technician.[First Name], Technician.[Hourly Rate], Technician.[YTD Earnings]/[Hourly Rate] AS [Hours Worked]
FROM Technician
GROUP BY Technician.[Technician Number], Technician.[Last Name], Technician.[First Name], Technician.[Hourly Rate], Technician.[YTD Earnings]/[Hourly Rate]
ORDER BY Technician.[Last Name];
Last edited by Aisha00; 13 Apr 2010 at 17:38.