SQL query

  • hi,

    i have a View which contains records account name,account type,country id and funding, i need to generate a report which displays distinct account name its corresponding account type and total funding for all that corresponding account name.

    thnks in advance,

    sudheer






    Regards,
    Sudheer 

    My Blog

  • select distinct <account name>, <Account type>, sum(<funding>) as funding

    from <table_name>

    group by <account name>, <account type>

    order by <account name>, <account type>

    Jeremy

  • hi,

    thnx fo that.

    cheers,

    sudheer






    Regards,
    Sudheer 

    My Blog

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply