一个让我迷惑的问题,高分求解

anneyang 2002-03-22 08:33:07
You are the database developer for a company that provides consulting services. The company maintains data about its employees in a table named Employee. The script that was used to create the employee table is shown below:

CREATE TABLE Employee
(
EmployeeID int NOT NULL;
EmpType char (1) NOT NULL,
EmployeeName char (50) NOT NULL,
Address char (50) NULL,
Phone char (20) NULL,
CONSTRAINT PK_Employee PRMARY KEY (Employee ID)
)

The emp type column is this table is used to identify employees as executive, administrative, or consultants. You need to ensure that the administrative employees can add, update, or delete data for non-executive employees only. What should you do?
...全文
31 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
yinzhen 2002-03-23
  • 打赏
  • 举报
回复
用 With Check Option選項生成一個View
anneyang 2002-03-23
  • 打赏
  • 举报
回复
to yinzhen(yinzhen) :
请详细解释一下,你的解决方案.
xiaolun 2002-03-23
  • 打赏
  • 举报
回复
随你怎么控制啦!在前端可以,在后端也行!
不知道这道题究竟想考什么!!!
windindance 2002-03-23
  • 打赏
  • 举报
回复
CSDNM的方法极妙。
徐春华 2002-03-22
  • 打赏
  • 举报
回复
It's a good idea.
CSDNM 2002-03-22
  • 打赏
  • 举报
回复
很简单,定义emptype字段的编码为1-executive,2- administrative, 3-consultants,在程序里控制只能操作emptype比他大的员工。

34,587

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧