2023 Problem I 30 points 1 Prove that any relation schema with two attributes is in | Assignment Collections

Computer Science 2023 Write the following queries in SQL

2023 Problem I 30 points 1 Prove that any relation schema with two attributes is in | Assignment Collections

Problem I: (30 points) 1- Prove that any relation schema with two attributes is in BCNF. (5 points) 2- R(A, B, C) is a relation in BCNF. A is one of the keys of R. R may have other keys. Prove that R is in 4NF. (10 points) (Hint: Assume that R is not in 4NF. What could the MDs that violate 4NF be? For each such MD, use what you know about the relation to show that this MD cannot violate 4NF.) 3- Consider the universal relation R = {A, B, C, D, E, F, G, H, I} and the set of functional dependencies F = { {A, B} -> {C}, {A} -> {D, E}, {B} -> {F}, {F} ->{G, H}, {D} -> {I, J} }. What is the key for R? Decompose R into 2NF, then 3NF relations. (15 points) Problem II: (30 points) In this problem, we will consider a movie database with three tables: MovieDirector(title, director, year) MovieCast(title, actor, salary) MovieReview(title, reviewer, score) All attributes are strings except year, salary, and score, which are integers. A- Write the following queries in SQL (2 points each). To save you some writing, you may use the abbreviated schema MD(T,D,Y), MC(T,A,S), and MR(T,R,S). Write your queries so that the final answers will never include duplicates, but add the keyword DISTINCT only in cases where duplicates would otherwise be produced. (a) Using subqueries in WHERE, find the directors who have also acted. Sort their names alphabetically. (b) Without using subqueries in WHERE, find the actors who have never directed. (c) Find the titles of all movies in the 1960’s starring both Dustin Hoffman and Anne Bancroft. (d) Without using EXCEPT, find the actors who starred in every movie directed by Kurosawa. (e) Using SQL aggregates, find the titles of the movies with at least two reviews. (f) Same as (e), but use subqueries in WHERE instead of aggregates. (g) Same as (e), but do not use subqueries in WHERE or aggregates. (h) Using SQL aggregates, find the titles of the movies with exactly one review. (i)…

 

We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.

Place Order Now

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational