在student_info表中查找与“刘卫平”性别相同的所有学生的姓名、出生日期
在student_info表中查找与“刘卫平”性别相同的所有学生的姓名、出生日期
数据库:studentsdb
共有三个表
表1:curriculum
表2:grade
表3:student_info



select 姓名,出生日期
from student_info
where 姓名='刘卫平'and 性别=(select 性别 from student_info where 姓名='刘卫平')
数据库:studentsdb
共有三个表
表1:curriculum
表2:grade
表3:student_info



select 姓名,出生日期
from student_info
where 姓名='刘卫平'and 性别=(select 性别 from student_info where 姓名='刘卫平')