SQL, Print id having different type combination and different status

Juneja, Namita 1 Reputation point
2022-02-14T15:09:00.823+00:00

Hello everyone,
So my data looks like this

I want to print Id 4 which has combination of type as (EM +RC/CC) and all of them have different status

Please help

Thanks

Azure SQL Database
{count} votes

1 answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 29,377 Reputation points Microsoft Employee
    2022-02-15T01:59:25.35+00:00

    Hi, @Juneja, Namita I tried the below query please check if this is what you are looking for.
    174284-image.png

    Regrds
    Geetha


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.