国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

COMP2400 代做、代寫 SQL 語言程序
COMP2400 代做、代寫 SQL 語言程序

時間:2024-08-31  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



COMP2400/6240 - Relational Databases
Assignment 1 (SQL)
Due date: 5:00pm, Friday, August 30, 2024
Instructions
 This assignment must be done individually.
Do not share your solutions, or partial solutions, with anyone. Do no post
any idea/partial solution/result related to the assignment on the course
discussion forum, or anywhere else where it can be read by other students.
You may of course ask clarification questions, but make sure you phrase your questions
so that they do not give away what you think the answer or solution is. If you have
technical problems with accessing the moviedb database then you should ask for help.
If you are not sure if a question is ok to post to the forum then ask your tutor during
a lab or come to a drop-in session instead.
You must not use generative tools (ChatGPT or similar) to create your answers to the
assignment. Your answers should be your answers. You can (and indeed should) use
documentation, tutorials and other resources you can find on the web to learn SQL, and
use what you learn to answer the assignment questions. Reference all resources that
you have used in completing this assignment (by writing comments in your submitted
SQL file).
You must submit your solutions through Wattle before the assignment
deadline. There will be an Assignment activity on the course Wattle page where you
should upload your solution file. You can submit more than once, but we can only see,
and will only mark, the last file that you submit.
Late submissions will not be accepted. Submissions made outside the Assignment
activity on Wattle (for example, files sent by email) will not be accepted under any
circumstance. You will be marked on what you have submitted at the time of the
deadline.
 This assignment will count for 18% of the final course mark. There are 9 questions
and each contributes to 2% of the final course mark.
A copy of the moviedb database is available in the PostgreSQL DBMS in the CSIT
lab environment (including via partch). You can connect to the moviedb database by
entering the following in a Terminal:
psql moviedb
 You must submit one file: myqueries.sql containing your solutions to all the ques-
tions. The file must be submitted through Wattle before the due date. Please down-
load the template file from the folder “Assignment 1 (SQL)” on Wattle.
You must enter your queries into the template file, and your submitted file
myqueries.sql must be executable in the given database moviedb.
moviedb=> \i myqueries.sql
You can also test your queries against the moviedb database one by one following
previous lab instructions.
Please write each of your answers below the comment indicating the cor-
responding question (-- Q1 through -- Q9), and leave these comments un-
changed.
 The correctness of queries should not depend on the database state, i.e., the content of
the tables in the database. The current content in moviedb is provided to help you to
get familiar with the database schema. To be fully correct, your SQL queries should
produce the correct answer when tested against other databases that have the same
schema, but different content. Partial marks may be given if a query only has minor
issues.
1
 Please write your SQL queries in a clear, well-formatted style, and use SQL comments
(lines starting with --) to explain your thinking behind the crafting of a complex query.
We will inspect queries that are not fully correct to determine if the flaw is minor (i.e.,
the question is mostly correct, or on the right track) or significant. If your queries
are well documented and easy to read and understand, this increases the chances that
we will be able to find them partially correct. A well-documented and well-reasoned
comments for each question you provide will also increase the chances of partial marks.
Plagiarism, collusion, and the use of disallowed tools will attract academic
penalties in accordance with the ANU guidelines. Every student in this
course is expected to be able to explain and defend any submitted assess-
ment item. The course conveners can conduct or initiate an additional
interview about any submitted assessment item for any student. If there
is a significant discrepancy between the two forms of assessment, this will
be seen as a case of potential academic misconduct.
The Movie Database
The schema of the relational database moviedb is shown in Figure 1.
There are five different categories of awards: movie awards, crew awards, director awards,
writer awards and actor awards. A movie can only win an award after being nominated for
the award.
2
Figure 1: The moviedb schema.
3
Questions
Your task is to write SQL queries that answer the following questions. For each question,
your answer must be a single SQL query (that may contain subqueries). Remember that
your answers should not depend on the example database state. (For example, the answer to
Question 2 below is not “2”; it is an SQL query that evaluates to 2 on the example database,
but may evaluate to different number if the database state is different.)
You must write all your answers into the template file myqueries.sql.
1. How many movies were categorised in the ‘R’ restriction in the USA? List that number.
2. How many writers were born after 1960 (inclusive)? List that number.
3. How many restriction categories each country has? List the countries and the corre-
sponding numbers of restriction categories. Order your result in the ascending order
of the number of restriction categories.
4. How many directors have never directed any action movies (i.e., the major genre of
the movie is action)? List that number.
5. What is the percentage of Australian action movies (i.e., action movies produced in
Australia) among all Australian movies in this database? List the percentage as a
decimal (round to two decimal places).
6. Which movie(s) won the largest number of crew awards in a single year? List their
title(s) and production year(s).
7. How many movies have won at least one award (any award in the databases)? List
that number.
8. Which writers always wrote a movie with other writer(s), i.e., every movie written by
such a writer has at least two writers? List their ids, first and last names. Order your
results in the descending order of their last names.
9. List all the pairs of movies which have won any award in the same year. List the pairs
of their title and production year. Note that the result should not contain duplicated
pairs of title and production year, e.g., (title1, production year1), (title2, produc-
tion year2) and (title2, production year2), (title1, production year1) are considered as
duplicated pairs and your query should only produce one of them in the result. Hint:
in PostgreSQL, the function CONCAT(A1,A2,...,An) can be used to combine selected
attributes.
All done? Well done! Before you submit:
 Check that your myqueries.sql file is syntatically correct SQL, by running it in psql:
moviedb=> \i myqueries.sql
Check that your solution (query) for each question is written below the comment line
indicating the corresponding question (“-- Qi”) in your myqueries.sql file.

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp


 

掃一掃在手機打開當前頁
  • 上一篇:代寫 CYBR7001、代做 C++,Python 程序設計
  • 下一篇:代做 COMP3506、代寫 Python 編程設計
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    国产精品久久久久77777| 国产精品美女久久久久av超清 | 欧美精品成人在线| 国产精品免费福利| 国产精品久久网| 国产精品老女人精品视频| 日韩中文字幕在线视频播放 | 欧美成人精品一区| 国产精品丝袜久久久久久消防器材| 国产成人精品免高潮费视频| 精品国产乱码一区二区三区四区| 欧美日韩亚洲免费| 欧美午夜性视频| 麻豆中文字幕在线观看| 粉嫩av四季av绯色av第一区| 99精品一区二区三区的区别| 国产成人97精品免费看片| 久久久久久久久久久久久久久久久久av| 久久久久天天天天| 中文字幕日韩精品无码内射 | 北条麻妃在线一区| www.色综合| 中文字幕一区综合| 欧美一级二级三级| 成人a视频在线观看| 久草视频国产在线| 国产a∨精品一区二区三区不卡| 午夜精品一区二区三区在线视| 日本午夜在线亚洲.国产| 国产日产欧美视频| 久久精品久久久久久国产 免费| 久久夜色精品国产亚洲aⅴ| 亚洲精品久久区二区三区蜜桃臀 | 亚洲精品女av网站| 精品视频在线观看一区| 久久精品综合一区| 中文字幕欧美人妻精品一区| 欧美午夜小视频| 久久综合伊人77777麻豆| 欧美精品在线免费| 欧美一区二区三区图| 国产免费一区二区视频| 国产精品久久av| 欧美国产亚洲一区| 久久久久久久有限公司| 亚洲区一区二区三区| 欧美日韩精品免费观看| 久久一区二区精品| 成人国产一区二区| 欧美日韩喷水| 色综合天天综合网国产成人网| 欧美亚洲在线观看| 久久久久久免费精品| 99热国产免费| 精品视频无码一区二区三区| 国产精品久久久久av福利动漫| 国产欧美 在线欧美| 精品免费二区三区三区高中清不卡| 国产精品一区二区三区不卡| 午夜精品视频网站| 午夜一区二区三视频在线观看| 九九热精品在线| 欧美日韩国产第一页| 99久re热视频这里只有精品6| 黄色大片在线免费看| 久久久久北条麻妃免费看| 人妻无码一区二区三区四区| 久久综合伊人77777尤物| 久久久久久久久久福利| 久久黄色免费看| 久久最新资源网| 99精彩视频在线观看免费| 国产欧美日韩综合一区在线观看| 综合一区中文字幕| 亚洲一区二区三区在线观看视频| 国产av无码专区亚洲精品| 精品一区二区不卡| 久久精品99| 久久国产精品99国产精| 国产乱子伦农村叉叉叉| 久久久久久亚洲精品中文字幕| 最新av网址在线观看| 欧美一区观看| 久热国产精品视频一区二区三区| 欧美激情精品久久久久久久变态| 欧美一区二视频在线免费观看| 国产精品av网站| 性欧美激情精品| 热久久精品免费视频| 久久久爽爽爽美女图片| 日本久久91av| 国产精品免费一区二区三区| 国精产品一区一区三区有限在线| 久久久久久高潮国产精品视| 国产精品第一区| 91观看网站| 国产免费一区二区三区视频| 秋霞久久久久久一区二区| 午夜精品久久久久久久99热浪潮 | 中文字幕日本最新乱码视频| 国产精品欧美一区二区三区奶水| 久久国产成人精品国产成人亚洲 | 久久久久国产精品免费网站| 国产精品第七十二页| 国产精品久久一区主播| 国产精品视频区| 国产精品手机在线| 国产成人无码a区在线观看视频| 久久精品二区| 久久精品99久久久香蕉| xxxx性欧美| 国产精品福利在线观看| 久久亚洲精品毛片| 亚洲综合精品伊人久久| 亚洲v国产v在线观看| 少妇高潮喷水久久久久久久久久| 性高潮久久久久久久久| 欧美亚洲免费高清在线观看| 欧美精品第三页| 国产美女久久精品| 久久精品午夜福利| 久久久精品影院| 超碰91人人草人人干| 国产又黄又爽免费视频| 99精品一级欧美片免费播放| 久久国产精品久久| 欧美久久精品午夜青青大伊人| 亚洲免费在线精品一区| 欧美婷婷久久| 中文精品视频一区二区在线观看| 日本一区二区三区免费观看| 国内精品久久国产| 国产精品99久久久久久大便| 国产精品久久一区二区三区| 色综合电影网| 国产精品中文字幕在线| 国产成人精品999| 国产精品久久久av| 日韩暖暖在线视频| 91精品中国老女人| 精品国产综合| 欧美成人一区二区在线| 久久资源av| 亚洲最大福利网站| 国产日韩欧美在线看| 久久色精品视频| 日韩av综合在线观看| 91久久久在线| 一本色道久久88亚洲精品综合| 黄色片视频在线免费观看| 国产suv精品一区二区三区88区 | 国产精品视频在线观看| 少妇人妻互换不带套| 91精品国产99| 亚洲日本精品国产第一区| 成人免费xxxxx在线观看| 欧美成人全部免费| 国产日韩欧美亚洲一区| 国产精品久久久久久av福利| 极品美女扒开粉嫩小泬| 国产精品视频区| 国产三区二区一区久久| 久久国产精品久久国产精品| 毛葺葺老太做受视频| 久久久国产一区二区| 国产一区二区在线视频播放| 国产精品高潮呻吟久久av野狼| 国产一区二区视频免费在线观看| 国产精品久久久亚洲| 国产欧美综合一区| 亚洲国产精品久久久久爰色欲| 68精品久久久久久欧美| 任我爽在线视频精品一| 国产精品乱码一区二区三区| 国产精品影院在线观看| 日本精品一区二区| 国产精品久久中文字幕| 99视频在线免费播放| 秋霞在线一区二区| 国产精品免费在线| 国产一区二区高清视频| 午夜免费久久久久| 久久精品免费电影| 97久久精品视频| 欧美一二三不卡| 亚洲xxxx视频| 久热精品视频在线免费观看| 91精品国产综合久久男男| 欧美在线视频a| 久久久久久999| 国产精品视频内| 国产成人精品久久久| 国产一区二区不卡视频| 欧美一区二区三区四区夜夜大片| 国产成人午夜视频网址| 99国产视频在线| 国产在线观看精品一区二区三区| 岛国视频一区免费观看| 国产精品二区二区三区| 久久久久久久久久久久久久国产 |