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 ?
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
Click Here to Expand Forum to Full Width