Skip to content
Loading
Duplicate Column Names in databse
  • Sreekanth Reddy
    @

    Bhuvanesh Mohankumar

    providing the following Error :
    "An aggregate may not appear in the WHERE clause unless it is in a subquery contained in a HAVING clause or a select list, and the column being aggregated is an outer reference."
  • Bhuvanesh Mohankumar
    1. selecttable_name,Column_namefromInformation_Schema.Columns
    2. selecttable_name,Column_namefromInformation_Schema.ColumnswhereCount(Column_Name)>1
    Mark as answer, if helpful.