Open iameet301 opened 2 months ago
here you write a table name instead of trigger name . And also you using select case statement that is not necssary here.
why you write match is not
in trigger
You can create trigger with the help of following syntax :
CREATE TRIGGER trigger_name AFTER | BEFORE INSERT | UPDATE | DELETE ON table_name FOR EACH ROW BEGIN -- Trigger logic here END;
@iameet301
Create table team(tid, country, totalmatch, win,loss). Insert 8 team detail. Create trigger to verify totalmatch is not 0. export data into csv file. Read file using reader object and print record with winning %age.