网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
评估此CREATE VIEW语句: CREATE VIEW emp_view AS SELECT SUM(salary) FROM employees; 以下哪个说法是的()
A
使用“雇员视图”视图不能更新“雇员”表中的数据
B
使用“雇员视图”视图可以更新“雇员”表中的任何数据
C
使用“雇员视图”视图不能删除“雇员”表中的记录
D
使用“雇员视图”视图仅能更新“雇员”表中的“薪金”列
参考答案
参考解析
解析:
暂无解析
更多 “单选题评估此CREATE VIEW语句: CREATE VIEW emp_view AS SELECT SUM(salary) FROM employees; 以下哪个说法是的()A 使用“雇员视图”视图不能更新“雇员”表中的数据B 使用“雇员视图”视图可以更新“雇员”表中的任何数据C 使用“雇员视图”视图不能删除“雇员”表中的记录D 使用“雇员视图”视图仅能更新“雇员”表中的“薪金”列” 相关考题
考题
(32)下列 SQL 的数据定义语句组中,( )包含了不正确的数据定义语句。Ⅰ.CREATE TABLE? CREATE VIEW? CREATE INDEX?Ⅱ.DROP TABLE? DROP VIEW? DROP INDEX?Ⅲ.ALTER TABLE? ALTER VIEW? ALTER INDEX?A)仅ⅠB)仅ⅡC)仅ⅢD)都包含
考题
根据“歌手”表建立视图myview,视图中含有包括了“歌手号”左边第一位是“1”的所有记录,正确的SQL语句是 ______。A.CREATE VIEW myview AS SELECT*FROM歌手WHERE LEFT(歌手号,1)=“1”B.CREATE VIEW myview AS SELECT*FROM歌手WHERE LIKE(“1”,歌手号)C.CREATE VIEW myview SELECT*FROM歌手WHERE LEFT(歌手号,1)=“1”D.CREATE VIEW myview SELECT*FROM歌手WHERE LIKE(“1”,歌手号)
考题
建立一个视图salary,该视图包括了系号和(该系的)平均工资两个字段,正确的 SQL语句是A.CREATE VIEW salary AS系号,AVG(工资)AS平均工资FROM教师; GROUP BY系号B.CREATE VIEW salary AS SELECT系号,AVG(工资)AS平均工资FROM教师; GROUP BY系名C.CREATE VIEW salary SELECT系号,AVG(工资)AS平均工资FROM教师; GROUP BY系号D.CREATE VIEW salary AS SELECT系号,AVG(工资)AS平均工资FROM教师; GROUP BY系号
考题
用SQL命令生成含有字段职工号、姓名的视图,下列语句正确的是______。A.CREATE VIEW ZG w AS SELECT职工号,姓名FROM职工B.CREATE QUERY ZG w AS SELECT职工号,姓名FROM职工C.CREATE VIEW ZG w AS SELECT职工号,姓名D.CREATE QUERY ZG w AS SELECT职工号,姓名
考题
下列SQL语句中,包含了不正确定义语句的组是( )。Ⅰ. CREATE TABLE CREATE VIEW CREATE INDEXⅡ. DROP TABLE DROP VIEW DROP INDEXⅢ. ALTER TABLE ALTER VIEW ALTER INDEXA)只有IB)只有ⅡC)只有ⅢD)Ⅰ和Ⅱ
考题
根据 “ 歌手 ” 表建立视图 myview, 视图中含有包括了 “ 歌手号 ” 左边第一位是 “ 1 ” 的所有记录,正确的 SQL 语句是A)CREATE VIEW myview AS SELECT * FROM 歌手 WHERE LEFT( 歌手号 ,1)="1"B)CREATE VIEW myview AS SELECT * FROM 歌手 WHERE LIKE("1" , 歌手号 )C)CREATE VIEW myview SELECT * FROM 歌手 WHERE LEFT( 歌手号 ,1)="1"D)CREATE VIEW myview SELECT * FROM 歌手 WHERE LIKE("1" , 歌手号 )
考题
在数据库已打开的情况下,利用SQL命令从学生表中派生出含有“学号”、“姓名”和“年龄”字段的视图,下列语句正确的是A.CREATE VIEW xs_view AS; SELECT学号,姓名,年龄FROM学生表B.CREATE VIEW xs_view; SELECT学号,姓名,年龄FROM学生表C.CREATE VIEW xs_view AS; (SELECT学号,姓名,年龄FROM学生表)D.CREATE VIEW xs_view; (SELECT学号,姓名,年龄FROM学生表)
考题
根据SQL标准,创建一个视图abc,通过该视图只能对表student中系dept为‘IS’的记录进行更新操作。下面哪条语句适用?()A create view abc as select * from student where dept=’IS’B create view abc as select * from student where dept=’IS’ with check optionC create view abc as student where dept=’IS’D create view abc as select dept=’IS’ from student
考题
You need to create a view EMP_VU. The view should allow the users to manipulate the records of only the employees that are working for departments 10 or 20. Which SQL statement would you use to create the view EMP_VU? ()A. CREATE VIEW emp_vu AS SELECT * FROM employees WHERE department _ id IN (10,20);B. CREATE VIEW emp_vu AS SELECT * FROM employees WHERE department_id IN (10,20) WITH READ ONLY;C. CREATE VIEW emp_vu AS SELECT * FROM employees WHERE department_id IN (10,20) WITH CHECK OPTION;D. CREATE FORCE VIEW emp_vu AS SELECT * FROM employees WITH department_id IN (10,20);E. CREATE FORCE VIEW emp_vu AS SELECT * FROM employees WHERE department_id IN (10,20) NO UPDATE;
考题
用SQL命令生成含有字段职工号、姓名的视图,下列语句正确的是 ______。A.CREATE VIEW ZG_w AS SELECT职工号,姓名FROM职工B.CREATE QUERY ZG_w AS SELECT职工号,姓名FROM职工C.CREATE VIEW ZG w AS SELECT职工号,姓名D.CREATE QUERY ZG_w AS SELECT职工号,姓名
考题
利用SQL命令从职工表中派生出含有“职工号”、“姓名”字段的视图,下列语句正确的是A) CREATE VIEW ZG_view; SELECT 职工号,姓名FROM职工表B.CREATE VIEW ZG_view AS; SELECT 职工号,姓名 FROM 职工表C.CREATE QUERY ZG_view; SELECT 职工号,姓名 FROM 职工表D.CREATE QUERY ZG_view AS; SELECT 职工号,姓名 FROM 职工表
考题
建立一个视图salary,该视图包括了系号和(该系的)平钧工资两个字段,正确的是SQL语句是A)CREATE VIEW salaryAS系号,AVG(工资)AS平均工资FROM教师;GROUP BY系号B) CREATE VIEW salary AS SELECT系号,AVG(工资)AS平均工资FROM教师;GROUP BY系名C) CREATE VIEW salary SELECT系号,AVG(工资)AS平均工资FROM教师;GROUP BY系号D)CREATE VIEW salary AS SELECT系号,AVG(工资)As平均工资FROM教师;GROUP BY系号
考题
有如下SQL语句 CREATE VIEW kh-view AS SELECT*FROM kh WHERE 职业=“教师”执行该语句产生的视图包含的记录个数是( )。A.1B.2C.3D.4
考题
在当前数据库中根据“学生”表建立视图viewone,正确的SQL语句是( )。A.DEFINE VIEW viewone AS SELECT*FROM学生B.DEFINE VIEW viewone SELECT*FRoM学生C.CREATE VIEW viewone AS SELECT*FROM学生D.CREATE VIEW viewone SELECT*FRoM学生
考题
利用SQL命令从职工表中派生出含有“职工号”、“姓名”字段的视图,下列语句正确的是A.CREATE VIEW ZG_view; SELECT职工号,姓名FROM职工表B.CREATE VIEW ZG_view AS; SELECT职工号,姓名FROM职工表C.CREATE QUERY ZG_view; SELECT职工号,姓名FROM职工表D.CREATE QUERY ZG_view AS; SELECT职工号,姓名FROM职工表
考题
根据“歌手”表建立视图myview,视图中含有“歌手号”左边第一位是"1”的所有记录,正确的SQL语句是( )。A)CREATE VIEW myview AS SELECT * FROM 歌手 WHERE LEFT(歌手号,1)="1"B)CREATE VIEW myview AS SELECT * FROM 歌手 WHERE LIKE("1",歌手号)C)CREATE VIEW myview SELECT * FROM 歌手 WHERE LEFT(歌手号,1)="1"D)CREATE VIEW myview SELECT * FROM 歌手 WHERE LIKE("1",歌手号)
考题
在下列SQL语句中,( )包含了不正确的定义语句。Ⅰ、CREATE TABLE CREATE VIEW CREATE INDEXⅡ、DROP TABLE DROP VIEW DROP INDEXⅢ、ALTER TABLE ALTER VIEW ALTER INDEXA)Ⅰ和ⅡB)只有ⅡC)只有ⅢD)Ⅱ和Ⅲ
考题
建立一个视图salary,该视图包括了系号和(该系的)平均工资两个字段,正确的SQL语句是( )。A)CREATE VIEW salary AS系号,AVG(工资)AS平均工资FROM教师;GROUPBY系号B)CREATEVIEW salaryAS SELECT系号,AVG(工资)AS平均工资FROM教师;GROUPBY系名C)CREATE VIEW Salary SELECT系号,AVG(工资)AS平均工资FROM教师;GROUP BY系号D)CREATE VIEW salaryAS SELECT系号,AVG(工资)AS平均工资FROM教师;GROUPBY系号
考题
评估此CREATE VIEW 语句: CREATE VIEW pt_view AS (SELECT first_name, last_name, status, courseid, subject, term FROM faculty f, course c WHERE f.facultyid = c.facultyid); 此语句将创建什么类型的视图()A、嵌套B、简单C、内嵌D、复杂
考题
设有关系模式商品(商品号,商品名称,单价,数量,类别),建立统计每类商品总数量的视图的正确语句是()A、CREATE VIEW v1AS SELECT类别,SUM(数量)FROM商品GROUP BY类别B、CREATE VIEW v1AS SELECT类别,COUNT(数量)FROM商品GROUP BY类别C、CREATE VIEW v1(类别,总数量)AS SELECT类别,SUM(数量)FROM商品GROUP BY类别D、CREATE VIEW v1(类别,总数量)AS SELECT类别,COUNT(数量)FROM商品GROU PBY类别
考题
有关系模式:学生表(学号,姓名,所在系),建立统计每个系的学生人数的视图的正确语句是()A、CREATE VIEW v1AS SELECT所在系,COUNT(*)FROM学生表GROUP BY所在系B、CREATEVIEW v1AS SELECT所在系,SUM(*)FROM学生表GROUP BY所在系C、CREATE VIEW v1(系名,人数)AS SELECT所在系,SUM(*)FROM学生表GROUP BY所在系D、CREATE VIEW v1(系名,人数)AS ELECT所在系,COUNT(*)FROM学生表GROUP BY所在系
考题
根据“歌手”表建立视图myview,视图含有包括了“歌手号”左边第一位是“1”的所有记录,正确的SQL语句是()A、CREATE VIEW myview SELECT*FROM歌手WHERELIKE(“1”歌手号)B、CREATE VIEW myview ASSELECT*FROM歌手WHERELIKE(“1”歌手号)C、CREATE VIEW myview SELECT*FROM歌手WHERELEFT(歌手号,1)=“1”D、CREATE VIEW myview ASSELECT*FROM歌手WHERELEFT(歌手号,1)="1"
考题
You need to create a view EMP_VU. The view should allow the users to manipulate the records of only the employees that are working for departments 10 or 20.Which SQL statement would you use to create the view EMP_VU?()A、CREATE VIEW emp_vu AS SELECT * FROM employees WHERE department_id IN (10,20);B、CREATE VIEW emp_vu AS SELECT * FROM employees WHERE department_id IN (10,20) WITH READ ONLY;C、CREATE VIEW emp_vu AS SELECT * FROM employees WHERE department_id IN (10,20) WITH CHECK OPTION;D、CREATE FORCE VIEW emp_vu AS SELECT * FROM employees WHERE department_id IN (10,20);E、CREATE FORCE VIEW emp_vu AS SELECT * FROM employees WHERE department_id IN (10,20) NO UPDATE;
考题
单选题评估此CREATE VIEW 语句: CREATE VIEW pt_view AS (SELECT first_name, last_name, status, courseid, subject, term FROM faculty f, course c WHERE f.facultyid = c.facultyid); 此语句将创建什么类型的视图()A
嵌套B
简单C
内嵌D
复杂
热门标签
最新试卷