I want to display information of employee as per selected category. (also calculate no employees of that category).
At a time only one
category will be selected from dropdown list .on selecting category , the corresponding categoryid will be recieved.
On the basis of that categoryid i want to count no of empl0yees and fetch list of employees belong to that selected category only.
Four categories are there
there are three tables
Category master (category will be selected from here) [CategoryId]
designationmaster [DesignationId] [Category]
employee master [Designation]
CategoryId = Category
DesignationId = Designation
CategoryId of category master should be matched with Category field of designationmaster.
DesignationId of designationmaster should be matched with Designation field of employeemaster
RESULT OF MY QUERY SHOULD BE NUMBER OF EMPLOYEES CALCULATED FOR SELECTED CATEGORY (category is selected through dropdown list and categoryid is received through post method in next submitted page
Screenshots of tables are attached.