实例学习SQL的Select命令
-1、查找员工的编号、姓名、部门和出生日期,如果出生日期为空值, –显示日期不详,并按部门排序输出,日期格式为yyyy-mm-dd。 select emp_no ,emp_name ,dept , isnull(convert(char(10),birthday,120),’日期不详’) birthday from employee order by dept –2、查找与喻自强在同一个单位的员工姓名、性别、部门和职称 select emp_no,emp_name,dept,title from employee where emp_name<>’喻自强’ and dept in (s
下载地址
用户评论