I created a view in MySql. But now my requirement is to create an identifier column in this view, which should grow automatically.
My current view: -
CREATE VIEW pending_assign_report_view AS select cg.group_name,c.client_name, wt.work_type,p.Minor_worktype, ay.year,aev.emp_name,ep.Date_assigned_on from employee_project ep,active_employee_view aev, project p, client_group cg, client c,work_type wt,assessment_year ay where ep.task_status_id=1 and ep.username=aev.username and ep.project_id=p.project_id and p.Year_id=ay.Year_id and p.Client_group_id=cg.client_group_id and p.Client_id=c.Client_id and p.Work_type_id=wt.Work_type_id order by cg.group_name,c.client_name, aev.emp_name;
Now I want the Identifier column to be the first column to be auto-active in nature. How can I do it? Thanks in advance.
source share