read total employes
EMP Table AS Follows;
EMPID EMPNAME MGRNo MGRNAME
1 Raj Null RAvi
2 Ram 1 Sam
3 ttt 2 ghg
4 Hari 3 Yogi
from the above EMP Table i wan the output as follows
total no of employes 4
Loading
Shankar MPosted Dec 13, 2012, 12:16 AM
What Vulpes said is correct only, Please tell you requirement correctly. In query to get your
expected output try this.
select 'Total No Of Employees : ' + cast (count(*)as varchar) from emp;
Which gets you,
Total No Of Employees : 370
Bryian TanPosted Dec 12, 2012, 5:40 PM
Satyapriya NayakPosted Dec 12, 2012, 12:50 PM
JAYRAMPosted Dec 12, 2012, 12:17 PM
VulpesPosted Dec 12, 2012, 12:02 PM
SELECT COUNT(*) AS [total no of employees] FROM EMP