You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
insert into employees # in this case,you dont have to mention the column names because we are inserting values for each column present in the table.cont.
values( #values need to be inserted in order.
999903,
'1977-09-14',
'Johnathan',
'Creek',
'M',
'1997-01-01'
);
SELECT
*
FROM
employees
ORDER BY emp_no DESC;
# NOTE:- we cannot insert any row or anything in the child table if the value is not present in the parent table.It will show 'foreign key constraint fail'.
#thats why we first updated the employees table(parent table) and now we will update the titles table(child table).