distinct关键字作用是()A、排序B、投影C、去除重复D、分组
distinct关键字作用是()
- A、排序
- B、投影
- C、去除重复
- D、分组
相关考题:
有SQL语句: SELECT DISTINCT系号FROM教师WHERE工资>=; ALL(SELECT工资FROM教师WHERE系号="02") 与如上语句等价的SQL语句是A.SELECT DISTINCT系号FROM教师WHERE工资>=; (SELECT MAX(工资)FROM教师WHERE系号="02")B.SELECT DISTINCT系号FROM教师WHERE工资>=; (SELECT MIN(工资)FROM教师WHERE系号="02")C.SELECT DISTINCT系号FROM教师WHERE工资>=; ANY(SELECT工资FROM教师WHERE系号="02")D.SELECT DISTINCT系号FROM教师WHERE工资>=; SOME(SELECT工资FROM教师WHERE系号="02")
YouareimplementinganASP.NETapplication.Youaddthefollowingcodesegment.YouneedtoaddcodetoreturnalistofallPersonobjectsexceptthosewithaUserIdthatiscontainedinthesecretUserslist.Theresultinglistmustnotcontainduplicates.Whichcodesegmentshouldyouuse?()A.varsecretPeople=(frompinallPeoplefromuinsecretUserswherep.UserId==uselectp).Distinct();returnallPeople.Except(secretPeople);B.returnfrompinallPeoplefromuinsecretUserswherep.UserId!=uselectp;C.return(frompinallPeoplefromuinsecretUserswherep.UserId!=uselectp).Distinct();D.Listpeople=newList(frompinallPeoplefromuinsecretUserswherep.UserId!=uselectp);returnpeople.Distinct();
根据SQL标准,下面哪条语句与select min(age) from student等效?()A select age from student where age >= min(age)B select distinct age from student where age >= all min(age)C select distinct a.age from student a where a.ageD select distinct a.age from student a where a.age
What is the definition of a path?A.A sequence of vertices and the edges formed by each successive pair of vertices.B.A walk with distinct vertices.C.A walk with distinct edges.D.None of the above
用户不能在下面哪一个视图上执行任何DML操作()A、使用WITHCHECKOPTION选项创建的视图B、包括DISTINCT关键字的视图C、包括GROUPBY子句的视图D、上面所有视图都允许DML操作
关于查询语句中ORDERBY子句使用正确的是()A、如果未指定排序列,则默认按递增排序B、数据表的列都可用于排序C、如果在SELECT子句中使用了DISTINCT关键字,则排序列必须出现在查询结果中D、联合查询不允许使用ORDER BY子句
将表Students中学生王涛的姓名改为王宝,应为()。A、INNERJOIN关键字不能分开使用B、INNERJOIN关键字的作用是连接两个表C、INNERJOIN关键字必须与WHERE关键字联合使用D、INNERJOIN关键字仅仅表示一种连接方式
单选题用户不能在下面哪一个视图上执行任何DML操作()A使用WITHCHECKOPTION选项创建的视图B包括DISTINCT关键字的视图C包括GROUPBY子句的视图D上面所有视图都允许DML操作
单选题设话单表的表结构为(手机号,通话起始日期,通话时长,话费),主关键字为(手机号,通话起始日期)。如果一个手机号表示一个入网用户,则当需要查询所有入网用户数时,正确的SQL语句是( )。ASELECT COUNT($)FROM话单BSELECT COUNT(手机号)FROM话单CSELECT COUNT(DISTINCT手机号)FROM话单DSELECT DISTINCT COUNT(手机号)FROM话单
单选题查询学生选修课程成绩小于60分的,正确的SQL语句是( )。ASELECT DISTINCT学号FROM SC WHERE成绩 60BSELECT DISTINCT学号FROM SC WHERE成绩60CSELECT DISTINCT学号FROM SC WHERE成绩60DSELECT DISTINCT学号 FROM SC WHERE成绩 60