I have been using inner join to join three tables. Now what i finally got is a joined table er where two column name are same and they have diffrent data. one contains locationname and another contain crop name. Now how do i access the locationname.
My production table is as follows:

My crops table is as follows:

MY location table is as follows:

My sql query is as follows:
Select * from production AS cust
INNER JOIN location AS comp ON cust.location_id = comp.location_id
INNER JOIN crops AS crop ON cust.crop_id=crop.crop_id
where cust.year_of_production =2004 AND crop.name="paddy"
The output after executing the sql query is as follows:
Here the there are two columnname as name . i want to access the name that contains taplejung . i donot want the column with name that contains paddy. How do i do that

SELECT *, name all the columns you want...