Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

count

Status
Not open for further replies.

PeriyurParthi

IS-IT--Management
Joined
Jul 18, 2001
Messages
258
Location
IN
hi all
i need to count or browse no codes in emp_code field that have same value (ie occured twice), pls can any one get me an SQLquery for the above, replies will be help full
thanks
parthi
 
select emp_code, count(*) from emp_codes
group by emp_code
having count(*) = 2

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top