Question: Please I need help with this assignment The following questions refer to the Sakila database that comes preloaded with some MySQL installation. Refer to the

Please I need help with this assignment

The following questions refer to the Sakila database that comes preloaded with some MySQL installation. Refer to the documentation at: http://dev.mysql.com/doc/sakila/en/sakila.html.

The XML file in this assignment is based on the Sakila database. You will also need a good XML editor to execute XPath and XQuery expressions. A free version of 2010 Editix can be find here. It is good enough for our course.

(1) For filmActor.xml, provide the XPath expressions for the following queries. Provide also the SQL queries to obtain the same result from Sakila directly.

(a) The title elements of all films with a rating of R. For example, result in Editix should contain 195 elements:

Please I need help with this assignment The following questions refer to

(b) The film elements with a rating of R and having eight or more copies. For example, result in Editix should contain 12 film elements:

the Sakila database that comes preloaded with some MySQL installation. Refer to

(c) The length of the film 'SONS INTERVIEW.' For example, result in Editix should be the value 184.

the documentation at: http://dev.mysql.com/doc/sakila/en/sakila.html. The XML file in this assignment is based(d) The film elements with a length longer than that of the film 'SONS INTERVIEW'. For example, result in Editix should have 10 film elements:

on the Sakila database. You will also need a good XML editor

(2) Use XQuery to output XML of actor information in the following format.

PENELOPE GUINESS ACADEMY DINOSAUR ANACONDA CONFESSIONS ANGELS LIFE BULWORTH COMMANDMENTS CHEAPER CLYDE COLOR PHILADELPHIA ELEPHANT TROJAN GLEAMING JAWBREAKER HUMAN GRAFFITI KING EVOLUTION LADY STAGE LANGUAGE COWBOY MULHOLLAND BEAST OKLAHOMA JUMANJI RULES HUMAN SPLASH GUMP VERTIGO NORTHWEST WESTWARD SEABISCUIT WIZARD COLDBLOODED NICK WAHLBERG ADAPTATION HOLES APACHE DIVINE BABY HALL BULL SHAWSHANK ... VIRGINIAN PLUTO WARDROBE PHANTOM WRONG BEHAVIOR

film (5)16 film (5) 17 film (5) 18 film (5) 19 o-O film (5) 20 efilm (5) 21 42 rating PG rating 3 numCopies 6 numCopies> 44 specialFeatures Deleted Scenes specialFeatures> 45 film> 46 film id-"7" 7 title AIRPLANE SIERRA title 48 length 62 length 9 rating PG-13 rating 50 numCopies>5 inumCopies 51 specialFeatures>Trailers,Deleted ScenesspecialFeatures 52 film From root | | From current 01.0 . 2.0 Result Variable Namespace History Node Value AIRPORT POLLOCK ALONE TRIP AMELIE HELLFIGHTERS AMERICAN CIRCUS ANACONDA CONFESSIONS ANALYZE HOOSIERS ANYTHING SAVANNAH APOCALYPSE FLAMINGOS ite ite me tite ite tite tite ite tite itle ite tite 8 title AIRPORTPOLlockstit 55 length 54 length 56 R rating BADMAN DAWN BANGER PINOCCHIO BEAR GRACELAND BEAST HUNCHBACK BEVERLY OUTLAW BOOGIE AMELIE numCopies 4 numCopies> 58? specialFeatures-Trailers!Features- 59 film 60 film id"g 61 title ALABAMA DEVIL title 62 length 114length ite film (5)16 film (5) 17 film (5) 18 film (5) 19 o-O film (5) 20 efilm (5) 21 42 rating PG rating 3 numCopies 6 numCopies> 44 specialFeatures Deleted Scenes specialFeatures> 45 film> 46 film id-"7" 7 title AIRPLANE SIERRA title 48 length 62 length 9 rating PG-13 rating 50 numCopies>5 inumCopies 51 specialFeatures>Trailers,Deleted ScenesspecialFeatures 52 film From root | | From current 01.0 . 2.0 Result Variable Namespace History Node Value AIRPORT POLLOCK ALONE TRIP AMELIE HELLFIGHTERS AMERICAN CIRCUS ANACONDA CONFESSIONS ANALYZE HOOSIERS ANYTHING SAVANNAH APOCALYPSE FLAMINGOS ite ite me tite ite tite tite ite tite itle ite tite 8 title AIRPORTPOLlockstit 55 length 54 length 56 R rating BADMAN DAWN BANGER PINOCCHIO BEAR GRACELAND BEAST HUNCHBACK BEVERLY OUTLAW BOOGIE AMELIE numCopies 4 numCopies> 58? specialFeatures-Trailers!Features- 59 film 60 film id"g 61 title ALABAMA DEVIL title 62 length 114length ite

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!