How to find all records for employee ?
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: How to find all records for employee ?

  1. #1
    Join Date
    Sep 2009
    Location
    Rajasthan(INDIA)
    Posts
    1

    Thumbs up How to find all records for employee ?

    A table name:ABC has three fields-Empid, TranAmt,and TranDate. This tables stores more than 10000 records.This table contains transaction details performed by employees.There may be several duplicate records.

    My question is : How to find all records of those employees who have SUM of transaction greater than 1000000 during period 01-04-2008 to 31-03-2009 ?


    From-
    HARI PRASAD

  2. #2
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,554
    The simple way would be to distinct-FTS ABC table then check condition against an inline view based on same table.

    what do you have so far?
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width