Which of the following SQL statements will return the year and average salary for all employees hired within a given year that have a salary greater than $30,000?() A.SELECT * FROM t1 UNION SELECT * FROM t2B.SELECT * FROM t1 UNION DISTINCT SELECT * FROM t2C.SELECT * FROM t1 INTERSECT SELECT * FROM t2D.SELECT * FROM t1 WHERE (c1,c2)= (SELECT c1,c2 FROM t2)

Which of the following SQL statements will return the year and average salary for all employees hired within a given year that have a salary greater than $30,000?()

A.SELECT * FROM t1 UNION SELECT * FROM t2

B.SELECT * FROM t1 UNION DISTINCT SELECT * FROM t2

C.SELECT * FROM t1 INTERSECT SELECT * FROM t2

D.SELECT * FROM t1 WHERE (c1,c2)= (SELECT c1,c2 FROM t2)


相关考题:

EMPLOYEES中职员编号为90的职员的commission_pct为空值,salary为1000,语句select12*salary*(commission_pct+0.2)comm from EMPLOYEES;comm显示的结果是()。 A.12000B.0C.2400D.NULL

如果对关系emp(cno,ename,salary)成功执行下面的SQL语句:CREATE CLUSTER INDEX name_index ON emp(salary)对此结果的正确描述是( )。A)在emp表上按salary升序创建了一个聚簇索引B)在emp表上按salary降序创建了一个聚簇索引C)在emp表上按salary升序创建了一个唯一索引D)在emp表上按salary降序创建了一个唯一索引

如果对关系emp(eno, ename, salary)成功执行下而的SQL语句:CREATE CLUSTER INDEX name_index ON emp(salary)其结果是( )。A) 在emp表上按salary升序创建了一个聚簇索引B) 在emp表上按salary降序创建了一个聚簇索引C) 在emp表上按salary升序创建了一个惟一索引D) 在emp表上按salary降序创建了一个惟一索引A.B.C.D.

如果对关系emp(eno,ename,salary)成功执行下面的SQL语句: CREATE CLUSTER INDEXname_index ON emp(salary)对此结果的正确描述是A.在emp表上按salary升序创建了一个聚簇索引B.在emp表上按salary降序创建了一个聚簇索引C.在emp表上按salary升序创建了一个唯一索引D.在emp表上按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

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

如果对关系emp(eno,ename,salary)成功执行下面的SQL语句: CREATE CLUSTER INDEXname_index ON emp(salary) 对此结果的正确描述是_______。A.在emp表上按salary升序创建了一个聚簇索引B.在emp表上按salary降序创建了一个聚簇索引C.在emp表上按salary升序创建了一个惟一索引D.在emp表上按salary降序创建了一个惟一索引

SQL中,“SALARY IN(1000,2000)”的语义是()。A.SALARY<=2000 AND SALARY>=1000B.SALARY<2000 AND SALARY>1000C.SALARY=1000 AND SALARY=2000D.SALARY=1000 OR SALARY=2000

将各个系教师的平均工资定义为视图average_salary. create view average_salary as select dept_name,max(salary) from instructor; group by dept_name;

将变量salary重新赋值为原来取值的3倍的语句是 ()A.salary=salary*2.00;B.salary=salary+(salary*3.00);C.salary=salary*3;D.salary=*3;