I have a query which works correctly until I add my case (CASE WHEN mv.end_date is null THEN 'Yes' ELSE 'No' END) Terminal_Group_Active) to the select list. mv.end_date is null when active and has an actual date when enddated. What I am finding is the active records are displaying twice , once with 'Yes' and once with 'No'. Any idea why?
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.