datediff计算,该怎么处理

datediff计算
怎样把 年、月、日 这样分开的格式放到datediff进行计算
------解决方案--------------------
我集中回复你一个贴好了,贴来贴去等下 说倒分
----------------------------------------------------------------
-- Author  :DBA_HuangZJ(發糞塗牆)
-- Date    :2014-08-19 11:02:23
-- Version:
--      Microsoft SQL Server 2012 - 11.0.5058.0 (X64) 
-- May 14 2014 18:34:29 
-- Copyright (c) Microsoft Corporation
-- Enterprise Edition: Core-based Licensing (64-bit) on Windows NT 6.3 <X64> (Build 9600: ) (Hypervisor)
--
----------------------------------------------------------------
--> 测试数据:[huang]
if object_id('[huang]') is not null drop table [huang]
go 
create table [huang]([年] int,[月] int,[日] int)
insert [huang]
select 2014,1,1 union all
select 2014,1,2 union all
select 2014,1,3 union all
select 2014,1,3 union all
select 2014,1,3
--------------开始查询--------------------------

select CAST(年 AS CHAR(4))+'-'+RIGHT('00'+CAST(月 AS VARCHAR(2)),2)+'-'+RIGHT('00'+CAST([日] AS VARCHAR(2)),2)[年月日]
from [huang]
----------------结果----------------------------
/* 
年月日
--------------
2014-01-01
2014-01-02
2014-01-03
2014-01-03
2014-01-03
*/