数据库中有一张表名为Emp,包含有如下列:EmpNO(雇员编号,Varchar(20),Pk),Job(职位Varchar(10)),HirDate(雇佣日期,Date),Sal(月薪,Float),Comm(奖金,Float,可为空)。查询出雇员编号为791,792,793的雇员信息是()A、Select * From Emp Where EmpNO In('791','792','793')B、Select * From Emp Where EmpNO ='791' Or EmpNO='792' OR EmpNO='793'C、Select * From Emp Where EmpNO ='791' And EmpNO='793'D、Select * From Emp Where EmpNO '791' And EmpNO'793'
数据库中有一张表名为Emp,包含有如下列:EmpNO(雇员编号,Varchar(20),Pk),Job(职位Varchar(10)),HirDate(雇佣日期,Date),Sal(月薪,Float),Comm(奖金,Float,可为空)。查询出雇员编号为791,792,793的雇员信息是()
- A、Select * From Emp Where EmpNO In('791','792','793')
- B、Select * From Emp Where EmpNO ='791' Or EmpNO='792' OR EmpNO='793'
- C、Select * From Emp Where EmpNO >='791' And EmpNO<='793'
- D、Select * From Emp Where EmpNO >'791' And EmpNO<'793'
相关考题:
有如下两个关系,其中雇员信息表关系EMP的主键是雇员号,部门信息表关系DEPT的主键是部门号。若执行下面列出的操作,(19)操作不能成功执行。A.从EMP中删除行('010','王宏达','01',1100)B.在EMP中插入行('103','赵敏','01',1500)C.将EMP中雇员号='056'的工资改为18800元D.将EMP中雇员号='101'的部门号改为'05'
建立“教师档案.mdb”数据库,将考生文件夹中的“教师档案表.xls”导入到数据库中,选择教师编号为主键,第一行包含列标题导入表命名为“教师档案表”。(2)将“课程.txt”导入到数据库中,第一行包含列标题,将课程编号字段设置为主键,将导入表命名为“课程”。“课程”表如图所示。(3)将“教师档案”表中的“教师编号”列隐藏,将“职称”列放置为第一列。“教师档案表”的结果如图所示。
在如下2个数据库表中,若雇员信息表EMP的主键是雇员号,部门信息表DEPT的主键是部门号。若执行所列出的操作,哪一项操作不能执行?A.从雇员信息表EMP中删除行('010','王宏达','01','1200')B.从雇员信息表EMP中插入行('102','赵敏','01','1500')C.将雇员信息表EMP中雇员号='010'的工资改为1600元D.将雇员信息表EMP中雇员号='010'的部门号改为'05'
基于如下两个关系,其中雇员信息表关系EMP的主码是雇员号,部门信息表关系DEPT的主码是部门号。下列哪一个操作不能正确执行(这里不考虑置空值与级联操作)?A.从EMP中删除雇员号='010'的行B.在EMP中插入行('102','赵敏','01',2000)C.将EMP中雇员号='056'的工资改为2600D.将EMP中雇员号='101'的部门号改为'05'
有如下两个关系,其中雇员信息表关系EMP的主键是雇员号,部门信息表关系DEPT的主键是部门号。 EMP表:若执行下面列出的操作,哪个操作不能成功执行?(20)。A.从EMP中删除行('010','李金娜','01',1200)B.在EMP中插入行('102','张敏','01',1500)C.将EMP中雇员号='056'的工资改为1600元D.将EMP中雇员号='101'的部门号改为'05'
68 、公司网络采用单域结构进行管理,域中有一台数据库服务器,为存贮公司数据,建立了名为information的数据库。管理员用以下语句建立了一个新表。CREATE TABLE emp_info(emp_ID int PRIMARY KEY,emp_Name varchar(50) UNIQUE,emp_Address varchar(50) UNIQUE)系统在该表上自动创建()索引。A 复合B 惟一C 聚集D 非聚集
列出EMP表中,从事每个工种(JOB)的员工人数() A.select job from emp;B.select job,count(*) from emp;C.select distinct job,count(*) from emp;D.select job,count(*) from emp group by job;E.select job,sum(empno) from emp group by job;
您负责管理一个Oracle数据库,其中包含名为“雇员”的表。数据库用户Luke必须创建一个包括所有雇员姓名和地址的报表。因为此表包含敏感数据,所以您不希望授予Luke对“雇员”表的访问权限。应先执行以下哪项操作()A、为其创建一个报告B、创建一个视图C、创建一个子查询D、创建一个指数
您负责管理一个Oracle数据库,其中包含一个名为“雇员”的表。数据库用户Luke必须创建一个包括所有雇员姓名和地址的报表。因为“雇员”表包含敏感数据,所以您不希望授予Luke对该表的访问权限。应先执行下列哪项操作?()A、为他创建一个报表B、创建一个视图C、创建一个子查询D、创建一个索引
您需要从方案中的雇员表中删除EMP_FK_DEPT约束条件。应使用哪条语句()A、DROP CONSTRAINT EMP_FK_DEPT FROM雇员B、DELETE CONSTRAINT EMP_FK_DEPT FROM雇员C、ALTER TABLE雇员DROP CONSTRAINT EMP_FK_DEPTD、ALTER TABLE雇员REMOVE CONSTRAINT EMP_FK_DEPT
数据库中有一张表名为Emp,包含有如下列:EmpNO(雇员编号,Varchar(20),Pk),Job(职位Varchar(10)),HirDate(雇佣日期,Date),Sal(月薪,Float),Comm(奖金,Float,可为空)。查询出雇员编号不为791,792,793的雇员信息应该是用哪些数据查询?()A、Select * From Emp Where EmpNO Not In('791','792','793')B、Select * From Emp Where EmpNO !='791' AND EmpNO!='792' And EmpNO='793'C、Select * From Emp Where EmpNO '791' AND EmpNO792' And EmpNO=793'D、Select * From Emp Where EmpNO =!'791' AND EmpNO =!'792' And EmpNO =!'793'
数据库中有一张表名为Emp,包含有如下列:EmpNO(雇员编号,Varchar(20),Pk),Job(职位Varchar(10)),HirDate(雇佣日期,Date),Sal(月薪,Float)。要求查询全部雇员信息应该是哪些数据?()A、Select * From EmpB、Select * From Emp Where EmpNO Like '%%'C、Select * From Emp Where Name = '%%'D、Select * From Emp Where Name Like '%%'
数据库中有一张表名为Emp,包含有如下列:EmpNO(雇员编号,Varchar(20),Pk),Job(职位Varchar(10)),HirDate(雇佣日期,Date),Sal(月薪,Float)。查询出职位不为“办事员”的雇员信息是()A、Select *From Emp Where Job="办事员"B、Select* From Emp Where Job==’办事员’C、Select* From Emp Where Job’办事员’D、Select* From Emp Where Job!=’办事员’
数据库中有一张表名为Emp,包含有如下列:EmpNO(雇员编号,Varchar(20),Pk),Job(职位Varchar(10)),HirDate(雇佣日期,Date),Sal(月薪,Float)。查询出受雇于1981年的雇员信息是()A、elect * From Emp Where HirDate='1981-1-1' And HirDate ='1981-12-31' B、Select * From Emp Where Between In '1981-1-1' And '1981-12-31'C、Select * From Emp Where Between In '1981-12-31' And '1981-1-1' D、Select * From Emp Where HirDate='1981-1-1' NOT HirDate ='1981-12-31'
列出EMP表中,从事每个工种(JOB)的员工人数()A、select job from emp;B、select job,count(*) from emp;C、select distinct job,count(*) from emp;D、select job,count(*) from emp group by job;E、select job,sum(empno) from emp group by job;
单选题emp表是雇员信息表,sal字段存放是的雇员的月薪,以下哪个变量可以存放sal类型的值()Av_sal emp%rowtype;Bv_sal emp.sal%type;Cv_sal emp.sal.%type;Dv_sal %type(emp.sal);Ev_sal (emp.sal)%type;
单选题Which SQL statement defines a FOREIGN KEY constraint on the DEPTNO column of the EMP table?()ACREATE TABLE EMP (empno NUMBER(4), ename VARCHAR2(35), deptno NUMBER(7,2) NOT NULL, CONSTRAINT emp_deptno_fk FOREIGN KEY deptno REFERENCES dept deptno);BCREATE TABLE EMP (empno NUMBER(4), ename VARCHAR2(35), deptno NUMBER(7,2) CONSTRAINT emp_deptno_fk REFERENCES dept (deptno));CCREATE TABLE EMP (empno NUMBER(4), ename VARCHAR2(35), deptno NUMBER(7,2) NOT NULL, CONSTRAINT emp_deptno_fk REFERENCES dept (deptno) FOREIGN KEY (deptno));DCREATE TABLE EMP (empno NUMBER(4), ename VARCHAR2(35), deptno NUMBER(7,2) FOREIGN KEY CONSTRAINT emp_deptno_fk REFERENCES dept (deptno));
多选题User SCOTT executes the following command on the EMP table but has not issued COMMIT, ROLLBACK,or any data definition language (DDL) command: SQL SELECT job FROM emp 2 WHERE job=’CLERK’ FOR UPDATE OF empno; SCOTT has opened another session to work with the database. Which three operations would wait when issued in SCOTT’s second session?()ALOCK TABLE emp IN SHARE MODE;BLOCK TABLE emp IN EXCLUSIVE MODE;CDELETE FROM emp WHERE job=’MANAGER’;DINSERT INTO emp(empno,ename) VALUES (1289,’Dick’);ESELECT job FROM emp WHERE job=’CLERK’ FOR UPDATE OF empno;
多选题User SCOTT executes the following command on the EMP table but has not issued COMMIT, ROLLBACK, or any data definition language (DDL) command: SQL SELECT ename FROM emp 2 WHERE job=’CLERK’ FOR UPDATE OF empno; SCOTT has opened another session to work with the database instance. Which three operations wouldwait when issued in SCOTT’s second session()ALOCK TABLE emp IN SHARE MODE;BLOCK TABLE emp IN EXCLUSIVE MODE;CUPDATE emp SET sal=sal*1.2 WHERE job=MANAGER;DINSERT INTO emp(empno,ename) VALUES (1289,’Harry’);ESELECT ename FROM emp WHERE job=’CLERK’ FOR UPDATE OF empno;
多选题User SCOTT executes the following command on the EMP table but has not issued COMMIT, ROLLBACK, orany data definition language (DDL) command: SQL SELECT ename FROM emp WHERE job=’CLERK’ FOR UPDATE OF empno; SCOTT has opened another session to work with the database instance. Which three operations would waitwhen issued in SCOTT’s second session()ALOCK TABLE emp IN SHARE MODE;BLOCK TABLE emp IN EXCLUSIVE MODE;CUPDATE emp SET sal=sal*1.2 WHERE job=ANAGER?UPDATE emp SET sal=sal*1.2 WHERE job=?ANAGER?DINSERT INTO emp(empno,ename) VALUES (1289,’Harry’);ESELECT ename FROM emp WHERE job=’CLERK’ FOR UPDATE OF empno
单选题Which SQL statement defines the FOREIGN KEY constraint on the DEPTNO column of the EMP table?()ACREATE TABLE EMP (empno NUMBER(4), ename VARCNAR2(35), deptno NUMBER(7,2) NOT NULL CONSTRAINT emp_deptno_fk FOREIGN KEY deptno REFERENCES dept deptno);BCREATE TABLE EMP (empno NUMBER(4), ename VARCNAR2(35), deptno NUMBER(7,2) CONSTRAINT emp_deptno_fk REFERENCES dept (deptno));CCREATE TABLE EMP (empno NUMBER(4) ename VARCHAR2(35), deptno NUMBER(7,2) NOT NULL, CONSTRAINT emp_deptno_fk REFERENCES dept (deptno) FOREIGN KEY (deptno));DCREATE TABLE EMP (empno NUMBER(4), ename VARCNAR2(35), deptno NUMBER(7,2) FOREIGN KEY CONSTRAINT emp deptno fk REFERENCES dept (deptno));
单选题您负责管理一个Oracle数据库,其中包含名为“雇员”的表。数据库用户Luke必须创建一个包括所有雇员姓名和地址的报表。因为此表包含敏感数据,所以您不希望授予Luke对“雇员”表的访问权限。应先执行以下哪项操作()A为其创建一个报告B创建一个视图C创建一个子查询D创建一个指数
单选题列出EMP表中,从事每个工种(JOB)的员工人数()Aselect job from emp;Bselect job,count(*) from emp;Cselect distinct job,count(*) from emp;Dselect job,count(*) from emp group by job;Eselect job,sum(empno) from emp group by job;