根据createdate查找不匹配的Id。 [英] Find non matching Id's based on createdate.

查看:74
本文介绍了根据createdate查找不匹配的Id。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 

以下是我加入几张表后得到的查询。根据业务逻辑,StatusID_Latest应始终基于created_datetime匹配statusID_temp的最大值。例如,下面的剪辑以绿色显示正确的记录,以红色显示不正确的记录。我希望
知道有多少声明没有分配给他们的最新status_id。 

Below is the query I get by joining a few tables . As per business logic, StatusID_Latest should always match to max of statusID_temp based on created_datetime . For Example , below snip shows correct records in green and incorrect records in red. I'd like to know how many claims to not have latest status_id's assigned to them. 

推荐答案

所以你问的是你应该修复我们没有看到的查询?或者您是否在询问如何在结果中找到坏行?

So you are asking how you should fix your query that we don't see? Or are you asking about how you would find the bad rows in the result you have?


这篇关于根据createdate查找不匹配的Id。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆