例如:
【table1】有 name(Key) ID_Card(Key) age birthday 4个字段
【table2】有 name(key) ID_Card(key) country(国家) state(州) 4个字段
关键字都是表示同一个人请问如果要筛选,【满足所有是 country国家人的 age 和birthday 】或
【满足所有是 country国家中state州的人的 age 和 birthday】请问这2个筛选语句怎么写?先谢谢了~
还有这个表只是这样的形式,我只是举例~
【table1】有 name(Key) ID_Card(Key) age birthday 4个字段
【table2】有 name(key) ID_Card(key) country(国家) state(州) 4个字段
关键字都是表示同一个人请问如果要筛选,【满足所有是 country国家人的 age 和birthday 】或
【满足所有是 country国家中state州的人的 age 和 birthday】请问这2个筛选语句怎么写?先谢谢了~
还有这个表只是这样的形式,我只是举例~
解决方案 »
- 关于 html中打开不能够显示子网页的问题
- YUV数据问题
- 请问 IRP_MJ_CREATE 完成后如何获取 Ring3 应用程序即将得到的 HANDLE 值?
- SendMessage(WM_CLOSE,0,0); 程序崩溃.........
- 什么时候用datagrid,什么时候不用呢?
- 插入链表节点的问题.求助高手
- 有关进度条的问题!
- 如何将一个CString str 型的变量转换成unsigned short temp型
- 有一次我在一个练习上看到一个问题,我不知道它应填什么?
- MFC控件的重绘:请教下大神,可以给个MFC控件重绘的实例不?最好是完整代码,百度上讲的过程不是很清楚的说,在下是纯小白的,谢谢大神!
- 关于在unicode下cstring的使用的问题,谢谢!
- xml 参数问题
join table2 as b
where a.name = b.name and a.id_card = b.id_card
join table2 as b
on a.name = b.name and a.id_card = b.id_card
select name, ID_Card, age, birthday
from table1
where table1.ID_Card = (select ID_Card
from table2
where country = 'China')我以前这样做,提示:【子查询最多能返回一个记录】
请问按照我的想法,有别的方法吗?谢谢了……
tabby!!!!!!!!!
sooooooooooooooo powerful you are ~
但是看不到给的分了……?
tabby90分,其余的给了bestwolf_yan