Welcome to Westonci.ca, where you can find answers to all your questions from a community of experienced professionals. Discover a wealth of knowledge from experts across different disciplines on our comprehensive Q&A platform. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts.
Sagot :
For the view of Exercise 4.18, explain why the database system would not allow a tuple to be inserted into the database through this view.
For reference
For the database of Figure 4.12, write a query to find the ID of each employee with no manager. Note that an employee may simply have no manager listed or may have a null manager. Write your query using an outer join and then write it again using no outer join at all.
OUTER JOIN
select e.ID from employee e left outer join manages m on e.ID = m.ID
where m.manager_id is null;
NO OUTER
select e.ID from employee e where e.ID not in (select m.ID from manages m) or e.ID in (select m.ID from manages m where m.manager_id is null);
For reference
For the database of Figure 4.12, write a query to find the ID of each employee with no manager. Note that an employee may simply have no manager listed or may have a null manager. Write your query using an outer join and then write it again using no outer join at all.
OUTER JOIN
select e.ID from employee e left outer join manages m on e.ID = m.ID
where m.manager_id is null;
NO OUTER
select e.ID from employee e where e.ID not in (select m.ID from manages m) or e.ID in (select m.ID from manages m where m.manager_id is null);
The database system would not allow a tuple to be inserted into the database through this view because it is not compatible.
What is compatibility?
The term to be compatible is one where two or more things can work together and not have issues.
Note that in the above scenario, The database system would not allow a tuple to be inserted into the database through this view because it is not compatible.
Learn more about database from
https://brainly.com/question/26096799
#SPJ2
We appreciate your time on our site. Don't hesitate to return whenever you have more questions or need further clarification. We hope you found what you were looking for. Feel free to revisit us for more answers and updated information. We're dedicated to helping you find the answers you need at Westonci.ca. Don't hesitate to return for more.