Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

CIS 275

27/10/2020 Client: lyjly0 Deadline: 3 days

USE IMDB    -- ensures correct database is active






GO


PRINT '|---' + REPLICATE('+----',15) + '|'


PRINT 'Read the questions below and insert your queries where prompted.  When  you are finished,


you should be able to run the file as a script to execute all answers sequentially (without errors!)' + CHAR(10)


PRINT 'Queries should be well-formatted.  SQL is not case-sensitive, but it is good form to


capitalize keywords and table names; you should also put each projected column on its own line


and use indentation for neatness.  Example:




   SELECT Name,


          CustomerID


   FROM   CUSTOMER


   WHERE  CustomerID < 106;




All SQL statements should end in a semicolon.  Whatever format you choose for your queries, make


sure that it is readable and consistent.' + CHAR(10)


PRINT 'Be sure to remove the double-dash comment indicator when you insert your code!';


PRINT '|---' + REPLICATE('+----',15) + '|' + CHAR(10) + CHAR(10)


GO






GO


PRINT 'CIS2275, Lab Week 6, Question 1  [3pts possible]:


Write the query to display the name and year of birth for all people born after 1980, who have


directed at least one show (i.e. those who appear at least once in the title_directors table).


Limit results to those who have died (who have a value in the deathYear column).


----------------------------------------------------------------------------------------------


Columns to display:    name_basics.primaryName, name_basics.birthYear


Sort in descending order by birth year.' + CHAR(10)


--


-- [Insert your code here]


--






GO


PRINT 'CIS2275, Lab Week 6, Question 2  [3pts possible]:


Show every genre of television show which has had at least one title with 500 episodes.


i.e. limit results to the titleType ''tvEpisode'' in the title_basics table, and to titles


containing a row in the title_episode table with episodeNumber 500.


----------------------------------------------------------------------------------------------


Columns to display:    title_genre.genre


Display genre name only, and eliminate duplicate values.' + CHAR(10)




GO




--


-- [Insert your code here]


--






GO


PRINT 'CIS2275, Lab Week 6, Question 3  [3pts possible]:


Write a common table expression to identify the WORST shows: join title_basics against title_ratings


and limit your results to those with an averageRating value equal to 1.  Project the title,


type, and startYear from title_basics; and label your CTE as BADSHOWS.


In the main query, show a breakdown of BADSHOWS grouped by type, along with the total number of


rows for each (i.e. GROUP BY titleType)


----------------------------------------------------------------------------------------------


Columns to display:    titleType, COUNT(*)


Sort results in descending order by COUNT(*).' + CHAR(10)




GO




--


-- [Insert your code here]


--






GO


PRINT 'CIS2275, Lab Week 6, Question 4  [3pts possible]:


Identify the least popular professions.  Show each profession value from the name_profession table,


along with the total number of matching rows (GROUP BY profession).  Use the HAVING clause to limit


your results to professions with less than 1,000 rows.


----------------------------------------------------------------------------------------------


Columns to display:    name_profession.profession, COUNT(*)' + CHAR(10)


--


-- [Insert your code here]


--


GO






GO


PRINT 'CIS2275, Lab Week 6, Question 5  [3pts possible]:


Use the query from #4 above to display the names of all people belonging to these professions.


Use the previous query as a subquery in the FROM clause here to limit the results.


----------------------------------------------------------------------------------------------


Columns to display:    name_basics.primaryName, name_profession.profession


Sort results in ascending order by primaryName.' + CHAR(10)


--


-- [Insert your code here]


--


GO






GO


PRINT 'CIS2275, Lab Week 6, Question 6  [3pts possible]:


Show the name of every writer, along with the total number of titles they''ve written (i.e. rows in the 


title_writers table).  Limit results to those who have written between 5,000 and 10,000 titles (inclusive).


----------------------------------------------------------------------------------------------


Columns to display:    name_basics.primaryName, COUNT(*)


Sort results in descending order by primaryName.' + CHAR(10)


--


-- [Insert your code here]


--


GO






GO


PRINT 'CIS2275, Lab Week 6, Question 7  [3pts possible]:


Show the actor and character names for everyone who has performed the same role in more than one


show with the title ''Battlestar Galactica''.  i.e. identify the combination of (primaryName, characters)


which occurs in the title_principals table more than once for matching titles.


----------------------------------------------------------------------------------------------


Columns to display:    name_basics.primaryName, title_principals.characters, COUNT(*)


Sort results in ascending order by primaryName.' + CHAR(10)


--


-- [Insert your code here]


--


GO






GO


PRINT 'CIS2275, Lab Week 6, Question 8  [3pts possible]:


Identify the names of people who have directed more than five highest-rated shows (i.e. title_ratings.averageRating = 10).


For each of these people, display their names and the total number of shows they have written.


----------------------------------------------------------------------------------------------


Columns to display:    name_basics.primaryName, COUNT(*)


Sort results in ascending order by primaryName.' + CHAR(10)


--


-- [Insert your code here]


--


GO






GO


PRINT 'CIS2275, Lab Week 6, Question 9  [3pts possible]:


Display the title and running time for all TV specials ( titleType = ''tvSpecial'' ) from 1982; if the run time is


NULL, substitute zero.


----------------------------------------------------------------------------------------------


Columns to display:    title_basics.primaryTitle, title_basics.runtimeMinutes


Sort in descending numerical order by the resulting calculated run time value.' + CHAR(10)


--


-- [Insert your code here]


--


GO






GO


PRINT 'CIS2275, Lab Week 6, Question 10  [3pts possible]:


Identify every movie from 1913 (startYear = 1913, titleType = ''movie''); limit your results to those with a non-NULL value


in the runtimeMinutescolumn.  For each movie, display the primaryTitle and the averageRating value from the title_ratings table.


Use DENSE_RANK() to display the rank based on averageRating (label this RATINGRANK), and also the rank based on runtimeMinutes


(label this LENGTHRANK).  Both of these should be based on an asecending sort order.


----------------------------------------------------------------------------------------------


Columns to display:    title_basics.primaryTitle, title_ratings.averageRating,


                       RATINGRANK, LENGTHRANK


Sort results in ascending order by primaryTitle.' + CHAR(10)


--


-- [Insert your code here]


--


GO








GO


-------------------------------------------------------------------------------------


-- This is an anonymous program block. DO NOT CHANGE OR DELETE.


-------------------------------------------------------------------------------------


BEGIN


    PRINT '|---' + REPLICATE('+----',15) + '|';


    PRINT ' End of CIS275 Lab Week 6' + REPLICATE(' ',50) + CONVERT(CHAR(12),GETDATE(),101);


    PRINT '|---' + REPLICATE('+----',15) + '|';


END;



Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Writer Writer Name Offer Chat

Writers are writing their proposals. Just wait here to get the offers for your project...

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Forten company statement of cash flows - Red rooster line sydney - Hemostasis case studies - Innotech micro 3000 manual - Why are oysters greedy math worksheet answers - Communication in Organizations - Homework Question - Export Market Plan - Sorting task jovian planet properties - Task 8 redo - Paper - Elements of building construction ppt - 150 words - Www plagiarism org plag_article_citation_styles html - Practice test questions classical and operant conditioning - Maestro air 30cm mist fan - Jorgansen lighting inc. manufactures heavy-duty - No reservations truffles and quail - Why do jamaicans say blood clot - Where to Fine The Best Leather Jackets? - Weekly grammar worksheet apostrophes julie faulkner answers page 8 - Phasefale temperature and alarm control - Probiolite golden after 50 - Pymble ladies college portal - +91-8890675453 vashikaran specialist IN Thrissur - Discussion and Assignment - Yogurt fermentation process ppt - Life on the goldfields - Comparing two data sets independent practice worksheet answers - Ypo harvard president's program - Capsim getting started answers - Curved mirrors and the law of reflection worksheet answers - Guide to computer forensics and investigations bill nelson pdf - Facility condition assessment report template - Harveys copper beech sherry - 5 examples of mise en place - EP Wk4 - Essay on use of mobile phones in campus - Chalk and vinegar reaction - Research papar for submission - Discussion - Heriot watt exam results - Liberty by julia alvarez full story - Labor Relations - Accommodation mount baw baw - Which css property configures the font typeface - Best horror movies on crave - Frye standard vs daubert ruling - Http www earthcalendar net index php - Casa analysis - Training and development policy - Winning grants step by step pdf - Bus Cont Plan & Disas Recovery Plan-1 - Essay - 21a rachelle road keilor east - In most spanish speaking countries married women legally - Conclusion of coca cola company - How deserts were formed - Discussion: Military Personnel and Suicide-wk4-Dis6411 - A little water clears us of this deed - Read the following material and write an evaluator pitch - Security Admin security Plan - How to create a project network diagram in excel - Personal Moral Theory- APA format 3-4 pages( A paper and an oral presentation using a PowerPoint narrated slideshow) - Risk Management Week 3 Discussion - Harrods sporting goods case study - Communications between cultures 9th edition pdf - Comptia a+ exam objectives 1001 - Apollo shoes case solution free download - Bus tie circuit breaker - 62.50 euros in pounds - HSCI 430 assignment - Business law - Visual Studio Coding (R) - What is the yeast activity at the following temperatures - Content writing - Find the endpoint given the midpoint - Three phase motor control circuit diagram - Coperion k tron manual - Helmar h4000 silicone spray msds - A knight's tale movie questions and answers - What does aco stand for in healthcare - Marriage and Family - Who moved my cheese questions - Nh4cl + h2o enthalpy - Arduino motor shield sketch - 48 bridgewood drive beaumont hills - Emirates airlines strategic objectives - Family planning clinic felixstowe - Hazing - Stress concentration factor v notch - What is sr2 in multiple regression - Breeding macaws in captivity - Case study on capital budgeting with solution - Public health policies L1 - Valpak case study - I nedd help - Case study 1 green computing research project part 1 - Below are the questions based on the Blue Eyes/Brown Eyes Video. Please answer all of them. (You may wish to print out these questions for quick reference for when you go to write your paper) Students: please read all of the following questions. Think about what is being asked in each question. Then formulate in your mind what your answers to those questions would be. ER/SR Evaluate the significance of how Elliott used this exercise to teach the meaning of brotherhood and moral/ethical reasoning for overcoming stereotypes and relating to people who are different. CT/TR Discuss your overall reaction to “A Class Divided.” Respond to this thinking routine: Before viewing “A Class Divided” I Used to Think . . . After viewing “But Now I think . . . “ This change of mind is because? . . . SD Have you ever personally experienced discrimination? If so, what were the circumstances? How did you cope with stress? SR If not, what will you do in the future when you see or experience disc - Blue collar brilliance summary and response