0

How we could get the count of system functions based on type?

In system functions we have different type of functions, like "Mathematical", "Aggregate" etc..

In one of the use case I need check the count in an IF condition for specific type.

Example:

  • Use Case #1: for aggregate type functions, we should get result 15
  • Use Case #2: for mathematical type functions, we should get result 23

enter image description here

I found the quite similar answer here, but couldn't modify accordingly.

Could someone help me out here?

Thanks!!

2
  • In the link you have referenced, the o.type in the where clause of AF stands for aggregate function. Try that piece alone and see if it matches the counts you are expecting for your 1st use case. Commented Dec 8, 2020 at 18:13
  • Getting no output with AF. I tried-select o.type_desc, count(*) from sys.objects o where o.type in ('AF') group by o.type_desc order by o.type_desc; Commented Dec 8, 2020 at 18:16

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.