Infor LN (BaaN ERP)论坛

 找回密码
 加入Baan会员

QQ登录

只需一步,快速开始

QQ群一:61560730(已满)QQ群二:34342363
查看: 2999|回复: 1

Query中的子查询怎么使用?

[复制链接]
发表于 2009-5-14 11:02:14 | 显示全部楼层 |阅读模式
有没有哪位对Query中的子查询比较熟?
可以实现如Sql中的语句吗?
select a.xxx,
          (select b.xxx from b where b.key = a.key)
from a
发表于 2009-5-14 16:46:56 | 显示全部楼层
select         tcibd007.item,
                      tcibd007.ecpr(1),
                      tcibd001.kitm,
                      tcibd001.csig
    from           tcibd007,tcibd001
    where          not exists
                      (select item from ticpr170 where tcibd007.item=ticpr170.item)
    and             tcibd007.ecpr(1) = 0
    and             tcibd007.item=tcibd001.item
    and             tcibd001.kitm=1
您需要登录后才可以回帖 登录 | 加入Baan会员

本版积分规则

QQ|Archiver|手机版|小黑屋|Infor LN Baan论坛 沪ICP备20006045号-3

GMT+8, 2024-5-2 09:00 , Processed in 0.140782 second(s), 17 queries .

Powered by Discuz! X3.5

Copyright © 2001-2023 Tencent Cloud.

快速回复 返回顶部 返回列表