在student_info表中查找与“刘卫平”性别相同的所有学生的姓名、出生日期

在student_info表中查找与“刘卫平”性别相同的所有学生的姓名、出生日期

数据库:studentsdb
共有三个表
表1:curriculum
表2:grade
表3:student_info

image

image
image

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

posted @ 2021-11-11 18:36  小码同学kki  阅读(637)  评论(0)    收藏  举报