i have two table employee table and department table.
in employee table primary key table and foreign key in department table.
i am inserting data using primary key and foreign key.once i inserting duplicate data in department table so i am getting error.
i want to check if the value is already exsist in department table.please give me some links where i can check some examples