select b.*,
             a.recid,
             a.keyno
  from product b,
             (select pcode,
                           keyno,
                           max(reccid) recid
                from productstr
                 group by pcode, keyno) a
   where  b.pcode = a.pcode(+)
         and b.keyno = a.keyno(+);
-------------

说明:

1.含max(reccid)等的函数,reccid不用放到group by

2.group by 中的count()不用放到select

即:select max(b.a) from b  group by b.c  having count(b.d)>1

最新文章

  1. 使用Java的Frame类编写的QQ登录界面
  2. Lind.DDD.Manager里菜单权限的设计
  3. Java中的常见面试题
  4. 一些PHP性能的优化
  5. RabbitMQ(五) -- topics
  6. java 附件上传时后台验证上传文件的合法性
  7. VBO, VAO, Generic Vertex Attribute
  8. React Native实例之房产搜索APP
  9. 慧都独家披露DevExpress v13.2测试版重大变化
  10. mysql 启动 导入sql文件
  11. poj 1383 Labyrinth
  12. 如何创建和发布.asmx Web Service
  13. 一个空格也可以让html格式显示大不相同
  14. 源码安装Ansible
  15. CSS3 3D变形效果
  16. HDU 1069 Monkey and Banana(DP——最大递减子序列)
  17. 《剑指offer》全部题目-含Java实现
  18. jquery实战第一讲---概述及其入门实例
  19. UE4中创建第一、第三人称角色,并进行角色间的切换
  20. error: Cannot find OpenSSL's <evp.h> Mac

热门文章

  1. django使用表单
  2. cacheManager ABP中的缓存
  3. Vue技巧
  4. vue模板编译
  5. 《剑指offer》第六十题(n个骰子的点数)
  6. 关于JS历史
  7. Spring Cloud 入门教程(三): 配置自动刷新
  8. Codeforces 1005 F - Berland and the Shortest Paths
  9. window如何安装redis服务、卸载redis服务和启动redis服务
  10. 雷林鹏分享:C# 常量