查找两个队列之间的数据差异

编程入门 行业动态 更新时间:2024-10-27 05:35:12
本文介绍了查找两个队列之间的数据差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

Hello ..我有两个查询导致两个结果集我需要比较两个结果集并需要显示它们之间的差异。希望我会得到很好的支持。谢谢。这些是我的疑问 查询:1

Hello..I have two queries that result two result sets i need to compare both the result sets and need to display the differences between them.Hope i will get good support.Thank you.These are my queries Query:1

SELECT distinct c.sid_ident,c.fix_ident from corept.std_sid_leg as c INNER JOIN ( SELECT sid_ident, transition_ident, max(sequence_num) seq, route_type FROM corept.std_sid_leg WHERE data_supplier='J' AND airport_ident='KBOS' GROUP BY sid_ident,transition_ident ) b ON c.sequence_num=b.seq and c.sid_ident = b.sid_ident and c.transition_ident = b.transition_ident WHERE c.data_supplier='J' and c.airport_ident='KBOS' Query:2 SELECT name, trans FROM skyplan_deploy.deploy_sids ON d.name=c.sid_ident WHERE apt = 'KBOS' AND name != trans

由于Mysql不支持完全外连接,我想到了使用左连接和正确加入并结合两个结果。但我坚持这个。请帮助。我在使用左右连接时出现语法错误。谢谢。

推荐答案

环顾四周: http:// weblogs .sqlteam / jeffs / archive / 2007/04/19 / Full-Outer-Joins.aspx [ ^ ]

更多推荐

查找两个队列之间的数据差异

本文发布于:2023-10-19 19:10:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1508494.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:队列   差异   两个   数据

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!