list of All accounts and contracts

list of All accounts and contracts

Hello,
I need to extract the list of All accounts that I have, and add if some accounts have active contracts or didn't have any contract.
It is a SQL Query or something else?

                  New to ADSelfService Plus?