Skip to main content
Solved

Lobby Data Source count greater than 1

  • December 19, 2023
  • 5 replies
  • 121 views

Forum|alt.badge.img+1
  • Do Gooder (Customer)
  • 4 replies

I am trying to put together a data source where the column count only shows me results greater than 1. How can I do this?

Best answer by Tomas Ruderfelt

Test and add the having clause in the “Group By” after the columns you have there. Start with a space and then HAVING count(doc_no) > 1

It works fine in 23R1:

 

View original
Did this topic help you find an answer to your question?

5 replies

Forum|alt.badge.img+11
  • Hero
  • 193 replies
  • December 19, 2023

Hi,

If you can explain you context a bit more (Why you are trying to do this, where etc.), it would be useful.

Thanks


Forum|alt.badge.img+8

Hi,

 

I don’t think there is any support for using HAVING-conditions like HAVING count > 1 in Data Source Designer in IFS. I would love to be proven wrong though.

 

A workaround would be to make a custom IAL with the correct conditions and use that IAL as a data source instead.


BR

Johan


Forum|alt.badge.img+1
  • Author
  • Do Gooder (Customer)
  • 4 replies
  • December 21, 2023

Hi, Thank you for your responses. I am trying to do a data source count for number of document titles to identify duplicates. So I am only interested in seeing count results greater than 1.

 


Forum|alt.badge.img+20
  • Superhero (Employee)
  • 490 replies
  • Answer
  • December 22, 2023

Test and add the having clause in the “Group By” after the columns you have there. Start with a space and then HAVING count(doc_no) > 1

It works fine in 23R1:

 


Forum|alt.badge.img+1
  • Author
  • Do Gooder (Customer)
  • 4 replies
  • December 22, 2023

Thank you Tomas, it worked! I thought I tried every eventuality but obviously not :)


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings