The problem is I am trying to use Create View for a query but I keep getting an error which means That I have a duplicate row
My two table structure and relation
My query
SELECT * FROM user_profile as A
INNER JOIN user_personal_info as B
on A.user_id=B.user_id
Results includes two user_id rows and I need B.user_id to be removed to be able to use it like that
CREATE View Studentinfo as
SELECT * FROM user_profile as A
INNER JOIN user_personal_info as B
on A.user_id=B.user_id
mysql error #1060 - Duplicate column name 'user_id'
note: I don't want to name each row by its name and exclude B.user_id as I might add more rows and by that the query would be very long.
