i my table i have 10 rows with RoleId .i want to check all 10 rows RoleId is '00000000-0000-0000-0000-000000000000' then i want to return true else false in select query
Loading
i my table i have 10 rows with RoleId .i want to check all 10 rows RoleId is '00000000-0000-0000-0000-000000000000' then i want to return true else false in select query
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Aravind GovindarajPosted Dec 29, 2022, 11:27 AM
please refer to this link
https://stackoverflow.com/questions/24708109/sql-filter-rows-with-max-value
or else you can create a function and check MaxRow vs Filter Row if both are the same then true else false.
Pasang TamangPosted Dec 29, 2022, 11:26 AM
Hi,
You can use CASE statement to achieve the result. Below code example shows how to use CASE statement,
Regards,
Pasang