我要将EXISTS子查询的结果应用到上层的select中 

select id,totalproduct/(usetime) from detail a
where exists(select name,id,datediff(getdate(),creatdate) as usetime from product where id=a.id)
当然这是错误的 usetime不识别
有木有什么方法可以将子查询的这个结果usetime传到外围那个SELECT 中