我有一个使用构建的XML链接的XML查询,如下所示: select case xmlcast(xmlquery('testpath') passing table A.column A ) as varchar(100))else 'Y' 在表A列A为空的情况下,返回值默认为'Y',但我希望返回以下内容: when '0' then 'N'
whe
晚上好,我在DB2工作,当我必须找到一种查询方法来定义某个类别的记录是否有效时,我在使用case进行查询时遇到了一些问题,但在这种情况下,一些注册表是空的,然后我必须排除,我的查询如下:
Select(case (sum(category_id) where required='true' and selected='true') = sum(category_id) where requir