A selectdistinctt1.namefrom(select*fromstudent_tablewheresex=‘女‘)t1innerjoin(select*fromstudent_tablewheresex=‘男‘)t2ont1.name=t2.name;
B selectdistinctt1.namefrom(select*fromstudent_tablewheresex=‘女‘)t1leftjoin(select*fromstudent_tablewheresex=‘男‘)t2ont1.name=t2.name;
C selectdistinctt1.namefrom(select*fromstudent_tablewheresex=‘女‘)t1fulljoin(select*fromstudent_tablewheresex=‘男‘)t2ont1.name=t2.name;
D selectdistinctt1.namefrom(select*fromstudent_tablewheresex=‘女‘)t1rightjoin(select*fromstudent_tablewheresex=‘男‘)t2ont1.name=t2.name;
相关试题
-
-06‘,‘男‘);(‘1005‘,‘张三‘,‘2001-12-01‘,‘女‘);(‘1006‘,‘李四‘,‘2001-12-02‘,‘女‘);查询男生女生存在的相同姓名,比如‘张三‘,正确的是()?
-
Mysql中表student_table(id,name,birth,sex),插入如下记录:(‘1001‘,‘‘,‘2000-01-01‘,‘男‘);(‘1002‘,null,‘2000-12-21
-
Mysql中表student_info(id,name,birth,sex),字段类型都是varchar,插入如下记录:(‘1014‘,‘张三‘,‘2002-01-06‘,‘男‘);SQL错误的是()