Click here to Skip to main content
15,886,422 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i have two tables one is Earning Master and another one table is OT master...
in the earning master i want to get OT hours form OT master if Employee name and ID is Equal to the Earning Master...
can anyone tell how to get it... using asp.net c#
Posted

1 solution

ASP.NET has nothing to do with it. It does not run SQL. C# has nothing to do with it. Your question is a SQL question.

You'd do this with a join between the two tables. This is very basic SQL, perhaps you should read some basic online articles and learn how it works ?

select * from earningMaster em inner join OTMaster ot on ot.ID = em.ID
 
Share this answer
 
Comments
v surya dev 9-Feb-12 9:45am    
thanks for your info...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900