Both tables (zielpersonen and wegeinland) have a column named as WP. So when I join them, there is an error saying that the column reference "WP" is ambiguous. Actually I want to use WP coming from zielpersonen table for my calculations. How can I avoid this error?
SELECT SUM("WP"*"w_rdist")/(62868*AVG("WP"))  FROM mobility.mzmv2010.zielpersonen 
JOIN mobility.mzmv2010.wegeinland USING ("HHNR","ZIELPNR")
 
     
     
    