一、数值转化为字符串函数:CStr
二、文本转化为日期格式:CDATE()
SELECT CSTR(车牌号) AS 车牌号,
车系 AS 车系, VIN AS VIN,
CDATE(LEFT(开单日期,4)+"/"+MID(开单日期,5,2)+"/"+RIGHT(开单日期,2)) AS 进厂日期,
CDATE(LEFT(完工日期,4)+"/"+MID(完工日期,5,2)+"/"+RIGHT(完工日期,2)) AS 完工日期,
CDATE(LEFT(购车日期,4)+"/"+MID(购车日期,5,2)+"/"+RIGHT(购车日期,2)) AS 购车日期,
服务顾问 AS 服务顾问, 修理类别 AS 类别, 里程 AS 里程,
VAL(应收工费*1) AS 工时,
VAL(应收材料*1) AS 配件,
VAL(总计*1) AS 合计
FROM [DMS$A1:AX]
WHERE VIN IS NOT NULL