网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
单选题
使用salary作为职工的工资列,若职工工资最高到千位,小数点后保留两位,则salary的数据类型应该是()
A

numeric(4,2)

B

numeric(6,2)

C

money(4,2)

D

money(6,2)


参考答案

参考解析
解析: 暂无解析
更多 “单选题使用salary作为职工的工资列,若职工工资最高到千位,小数点后保留两位,则salary的数据类型应该是()A numeric(4,2)B numeric(6,2)C money(4,2)D money(6,2)” 相关考题
考题 ( 1 )有如下 2 个关系表Emp( eid ,ename,age,did,salary) ,其各列含义为:职工号,姓名,年龄,部门号,工资Dept( did ,dname,mgr_id) ,其各列含义为:部门号,部门名称,部门经理职工号写出一条 SQL 语句,查询工资大于 10000 ,且与他所在部门的经理年龄相同的职工姓名 。 ( 6 分)

考题 建立一个视图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系号

考题 删除视图salary的命令是A.DROP salary VIEWB.DROP VIEW salaryC.DELETE salary VIEWD.DELETE salary

考题 Which clause would you use in a SELECT statement to limit the display to those employees whose salary is greater then 5000? () A. ORDER BY SALARY 5000B. GROUP BY SALARY 5000C. HAVING SALARY 5000D. WHERE SALARY 5000

考题 Examine the data in the EMPLOYEES table:Which three subqueries work? () A. SELECT * FROM employees where salary (SELECT MIN(salary) FROM employees GROUP BY department _ id);B. SELECT * FROM employees WHERE salary = (SELECT AVG(salary) FROM employees GROUP BY department _ id);C. SELECT distinct department_id FROM employees Where salary ANY (SELECT AVG(salary) FROM employees GROUP BY department _ id);D. SELECT department_id FROM employees WHERE SALARY ALL (SELECT AVG(salary) FROM employees GROUP BY department _ id);E. SELECT last_name FROM employees Where salary ANY (SELECT MAX(salary) FROM employees GROUP BY department _ id);F. SELECT department_id FROM employees WHERE salary ALL (SELECT AVG(salary) FROM employees GROUP BY ANG (SALARY));

考题 对于第7题的两个基本表,有一个SQL语句: UPDATE EMP SET SALARY=SALARY*1.05 WHERE DNO='D6' AND SALARY<(SELECT AVG(SALARY) FROM EMP);其等价的修改语句为______。A.为工资低于D6部门平均工资的所有职工加薪5%B.为工资低于整个企业平均工资的职工加薪5%C.为在D6部门工作、工资低于整个企业平均工资的职工加薪5%D.为在D6部门工作、工资低于本部门平均工资的职工加薪5%

考题 以下两个关系表:Emp(eid,ename,age,did,salary),其各列含义为:职工号,姓名,年龄,部门号,工资Dept(did,dname,mgr_id),其各列含义为:部门号,部门名称,部门经理职工号写出一条SQL语句,查询工资大于10000,且与他所在部门的经理年龄相同的职工姓名。

考题 删除视图salary的命令是 A) DROP salary VIEW B)DROP VIEW salary C)DELETE salary VIEW D)DELETE salary

考题 ● 设有职工表emp(Eno,Ename,Sex,Age)(Eno为职工号,Ename为职工姓名,Sex为性别,Age为年龄)和salary(Eno,Hour,Month,Wage)(Hour为工作时长为多少小时,Month表示几月份,Wage为薪水),建立一个视图V-Salary(Eno,Ename,Hour,Month,Wage),并按Eno升序排序的SQL语句为:(1)CREATE ( )AS SELECT emp.Eno,emp.Ename ,salary.Hour,salary.Month,salary.WageFROM emp, salaryWHERE emp.Eno=salary.EnoORDER BY ENO在此视图上查均月工资在3000以上的职工工资情况的SQL语句为:SELECT Eno,Ename,AVG(Wage)FROM V-SalaryGROUP BY ( )HAVING AVG(Wage)3000( )A. CREATE TABLE V-Salary(emp.Eno,emp.Ename,salary.Hour,salary.Month,salary.Wage)B. CREATE VIEW V-Salary(Eno,Ename,Hour,Month,Wage)C. CREATE TABLE V-Salary(Eno,Ename,Hour,Month,Wage)D. CREATE INDEX V-Salary(Eno,Ename,Hour,Month,Wage)( )A. Eno B.EnameC.Month D.Wage

考题 建立一个视图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中,SALARYIN(1000,2000)的语义是______。A.SALARY≤2000 AND SALARY≥1000B.SALARY<2000 AND SALARY>1000C.SALARY=1000 AND SALARY=2000D.SALARY=1000 OR SALARY=2000

考题 建立一个视图salary,该视图包括了系号和(该系的)平均工资两个字段,正确的SQL语句是( )。A.CREATE vIEw salary AS系号.AVG(工资)AS平均工资FRM教师GRUP BY系号B.CREATE VIEW salary AS SELECT 系号,AVG(工 资)AS平均工资FROM教师GROUP BY系名C.CREATE VIEw salary SELECT 系号,AVG(工资)AS平均工资FRM教师 GRUP BY系号D.CREATE VIEW salary AS SELECT系号,AVG(工 资)AS平均工资FRM教师 GROUP BY系号

考题 设有职工基本表:EMP(ENO,ENAME,AGE,SEX,SALARY),其属性分别表示职工号、姓.名、年龄、性别、工资.为每个工资低于1800元的男职工加薪300元,试写出这个操作的SQL语句.

考题 SELECT语句中使用()子句来显示工资超过5000的员工。A、ORDER BY SALARY5000B、GROUP BY SALARY5000C、HAVING SALARY5000D、WHERE SALARY5000

考题 若油温单位为℃时,则有效数字应保留至小数点后两位,即精确到0.01℃。

考题 冷滤点结果不论是零上的数值还是零下的数值都应该是()。A、保留小数点后一位小数B、保留小数点后两位小数C、整数度

考题 类Teacher:  class Teacher{   String name;   float salary;   Teacher(String name){   this.name = name;  }   Teacher(String name,float salary){   this.name = name;   this.salary = salary;  }  }   执行语句Teacher t = new Teacher(“Tom”,2000.0f);后,字段salary的值是哪一项?() A、 2000.0fB、 0.0fC、 null;D、 2000

考题 下面哪条语句可以取出薪水最高的前三个人:()A、SELECT * FROM (SELECT * FROM EMPLOYEES ORDER BY SALARY );B、SELECT * FROM (SELECT * FROM EMPLOYEES ORDER BY SALARY ) WHERE ROWNUM=3;C、SELECT * FROM (SELECT * FROM EMPLOYEES ORDER BY SALARY DESC) WHERE ROWNUM=3;D、SELECT * FROM EMPLOYEES WHERE ROWNUM=3 ORDER BY SALARY DESC;

考题 省天然气站场管输天然气流量计算规定,计算的结果要求()。A、保留小数点后一位B、保留小数点后两位C、保留小数点后三位D、精确到1标准立方米

考题 单选题Examine the description of the EMPLOYEES table: EMP_ID NUMBER(4) NOT NULL LAST_ NAME VARCHAR2(30) NOT NULL FIRST_NAME VARCHAR2(30) DEPT_ID NUMBER(2) JOB_CAT VARCHAR2(30) SALARY NUMBER(8,2) Which statement shows the department ID, minimum salary, and maximum salary paid in that department, only if the minimum salary is less than 5000 and maximum salary is more than 15000?()A SELECT dept_id, MIN(salary), MAX(salary) FROM employees WHERE MIN(salary) 5000 AND MAX(salary) 15000;B SELECT dept_id, MIN(salary), MAX(salary) FROM employees WHERE MIN(salary) 5000 AND MAX(salary) 15000 GROUP BY dept_id;C SELECT dept_id, MIN(salary), MAX(salary) FROM employees HAVING MIN(salary) 5000 AND MAX(salary) 15000;D SELECT dept_id, MIN(salary), MAX(salary) FROM employees GROUP BY dept_id HAVING MIN(salary) 5000 AND MAX(salary) 15000;E SELECT dept_id, MIN(salary), MAX(salary) FROM employees GROUP BY dept_id, salary HAVING MIN(salary) 5000 AND MAX(salary) 15000;

考题 多选题Examine the data in the EMPLOYEES table: Which three subqueries work? ()ASELECT * FROM employees where salary (SELECT MIN(salary) FROM employees GROUP BY department _ id);BSELECT * FROM employees WHERE salary = (SELECT AVG(salary) FROM employees GROUP BY department _ id);CSELECT distinct department_id FROM employees Where salary ANY (SELECT AVG(salary) FROM employees GROUP BY department _ id);DSELECT department_id FROM employees WHERE SALARY ALL (SELECT AVG(salary) FROM employees GROUP BY department _ id);ESELECT last_name FROM employees Where salary ANY (SELECT MAX(salary) FROM employees GROUP BY department _ id);FSELECT department_id FROM employees WHERE salary ALL (SELECT AVG(salary) FROM employees GROUP BY ANG (SALARY));

考题 单选题类Teacher: class Teacher{   String name; float salary;  Teacher(String name){    this.name = name; }  Teacher(String name,float salary){   this.name = name;    this.salary = salary; } }  执行语句Teacher t = new Teacher(“Tom”,2000.0f);后,字段salary的值是哪一项?()A  2000.0fB  0.0fC  null;D  2000

考题 单选题您在公司的数据库中成功创建了名为SALARY的表。您现在要通过向引用EMPLOYEES表的匹配列的SALARY表添加FOREIGNKEY约束条件来建立EMPLOYEES表与SALARY表之间的父/子关系。尚未向SALARY表添加任何数据。应执行以下哪条语句()A ALTER TABLE salary ADD CONSTRAINT fk_employee_id_01 FOREIGN KEY(employee_id)REFERENCES employees(employee_id)B ALTER TABLE salary ADD CONSTRAINT fk_employee_id_ FOREIGN KEY BETWEEN salary(employee_id)AND employees(employee_id)C ALTER TABLE salary FOREIGN KEY CONSTRAINT fk_employee_id_REFERENCES employees(employee_id)D ALTER TABLE salary ADD CONSTRAINT fk_employee_id_FOREIGN KEY salary(employee_id)=employees(employee_id)

考题 单选题客户需要计算EMP表中所有职工12*salary* commission_pct的值.EMP表结构如下:LAST NAME VARCNAR2(35)NOT NULL SALARY NUMBER(9,2)NOT NULL COMMISION_PCTNUMBER(4,2)哪个语句可以查询计算EMP表中所有职工行?()A SELECT last_name,12*salary* commission_pct FROM empB SELECT last_name,12*salary*(commission_pct,0)FROM empC SELECT last_name,12*salary*(nvl(commission_pct,0))FROM emp如果oracle第一个参数为空那么显示第二个参数的值,如果第一个参数的值不为空,则显示第一个参数本来的值D SELECT last_name,12*salary*(decode(commission_pct,0))FROM emp

考题 单选题Which SQL statement generates the alias Annual Salary for the calculated column SALARY*12?()A SELECT ename, salary*12 ‘Annual Salary’ FROM employees;B SELECT ename, salary*12 “Annual Salary” FROM employees;C SELECT ename, salary*12 AS Annual Salary FROM employees;D SELECT ename, salary*12 AS INITCAP(“ANNUAL SALARY”) FROM employees

考题 单选题Which clause would you use in a SELECT statement to limit the display to those employees whose salary is greater then 5000?()A ORDER BY SALARY 5000B GROUP BY SALARY 5000C HAVING SALARY 5000D WHERE SALARY 5000

考题 单选题删除视图salary的命令是(  )。A DROP VIEW salaryB DROP salary VIEWC DELECT salaryD DELECT salary VIEW