I have inner join two tables and display. I tried the given below code. But it generate on error "Ambiguous Column site_name' "
SELECT site_name, Mains_Run_Hrs, DG_Run_Auto_Mode, Battery_Run_Hrs,Solar_Run_hrs
FROM tbl_runtime_report INNER JOIN tbl_site_details
ON tbl_runtime_report.Site_ID=tbl_site_details.site_id
WHEREsite_name=@site_name