2012年10月24日
摘要: 1 --1、查找员工的编号、姓名、部门和出生日期,如果出生日期为空值,显示日期不详,并按部门排序输出,日期格式为yyyy-mm-dd。 2 select emp_no,emp_name,dept,isnull(convert(char(10),birthday,120),'日期不详') birthday 3 from employee 4 order by dept 5 6 --2、查找与喻自强在同一个单位的员工姓名、性别、部门和职称 7 select emp_no,emp_name,dept,title 8 from employee 9 where emp_name< 阅读全文
posted @ 2012-10-24 10:51 elleniou 阅读(44951) 评论(15) 推荐(4)