APEX高亮行根据列比较(APEX hightlight row according to column comparison)

编程入门 行业动态 更新时间:2024-10-27 21:20:33
APEX高亮行根据列比较(APEX hightlight row according to column comparison)

我在APEX中有一个报告,显示了两个表的JOIN。 两个表都具有例如电话号码的值。 如果两个电话号码不匹配,我希望该行高亮。

我查看了Actions> Format> Highlight中的突出显示选项,但似乎我只能将列值与特定值进行比较而不是另一列。

我对APEX很新,所以我可能会错过一些明显的东西! 我已经阅读了其他问题和答案,但他们似乎正在处理更复杂的事情。 他们谈到制作一个不可见的列并改变它的价值,但我不知道我会怎么做。

谢谢你的帮助!

I have a report in APEX which shows a JOIN of two tables. Both tables have a value for, for example, telephone number. If the two telephone numbers do not match I want the row to be highlihgted.

I looked at the highlighting options in Actions>Format>Highlight but it seems I can only compare a column value to a particular value and not another column.

I'm very new to APEX so I might be missing something obvious! I've read other questions and answers but they seem to be dealing with more complex things. They spoke about making an invisible column and changing the value of that but I'm not sure how I would do that.

Thanks for any help!

最满意答案

在查询中创建一个伪列以标记感兴趣的记录。 然后比较国旗:

SELECT a.phone, b.phone ,CASE WHEN a.phone = b.phone THEN 1 ELSE 0 END AS match FROM a, b WHERE a.id = b.id

Create a pseudo column in your query to flag records of interest. Then compare to the flag:

SELECT a.phone, b.phone ,CASE WHEN a.phone = b.phone THEN 1 ELSE 0 END AS match FROM a, b WHERE a.id = b.id

更多推荐

本文发布于:2023-07-22 19:34:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1222802.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:hightlight   高亮   APEX   comparison   column

发布评论

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

>www.elefans.com

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