加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

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

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 編程設計
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

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

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

    黄色亚洲网站| 成人av国产| 久久天天久久| 免费人成黄页网站在线一区二区| www.爱久久| 国一区二区在线观看| 日韩电影免费在线观看| 亚洲精品99| 精品福利网址导航| 国产不卡av一区二区| 国产黄色精品| 98精品久久久久久久| 欧美在线资源| 久久狠狠婷婷| 精品国产三区在线| aa亚洲一区一区三区| 国产精品久久久久久久久久齐齐| 人人狠狠综合久久亚洲| 91九色精品| 91精品国产91久久久久久黑人| 日韩电影免费一区| 9999精品| 日韩精品亚洲专区| 另类中文字幕国产精品| 日韩av片子| 蘑菇福利视频一区播放| 婷婷成人基地| 亚洲a在线视频| 国产成人tv| 蜜桃在线一区| 九九九九九九精品任你躁| 9999精品视频| 久久香蕉网站| 国产精品mm| 国产精品theporn| 日本成人在线不卡视频| 欧美在线高清| 日本在线一区二区| 久久国产日韩欧美精品| 97成人超碰| 日本电影久久久| 欧美成a人国产精品高清乱码在线观看片在线观看久 | 欧美成人基地| 欧美私人啪啪vps| 欧美视频在线观看| 福利在线一区| 麻豆一区二区| 久久精品国产清高在天天线| 另类在线视频| 久久男女视频| 欧美69视频| 一区二区亚洲| 亚洲一区日本| 免费观看日韩电影| 免费看日韩精品| 国产精品久久天天影视| 九色porny自拍视频在线播放| 美女91在线看| 另类中文字幕国产精品| 国产精品伦一区二区| 久久精品三级| 欧美激情无毛| 久久成人av| 一区二区三区视频播放| 成人h动漫精品一区二区器材| 老牛国内精品亚洲成av人片| 久久国产综合| 伊人久久大香线蕉综合热线| 亚洲在线黄色| 日韩高清欧美| 久久中文欧美| 国产欧美日韩视频在线| 视频精品一区二区三区| 91精品综合| 国产一区二区精品| jizzjizz中国精品麻豆| 亚洲精品第一| 亚洲综合婷婷| 国产精品毛片久久久| 欧美不卡高清| 免费在线视频一区| 欧美国产大片| 在线成人超碰| 亚洲精品一二三**| 免费不卡中文字幕在线| 蜜桃视频一区| 深夜福利亚洲| 国产真实有声精品录音| 欧美三级午夜理伦三级在线观看| 五月天激情综合网| 国产精品久久久久一区二区三区厕所 | jizz久久久久久| 99热这里有精品| 欧美日韩天堂| 9久re热视频在线精品| 日本在线高清| 亚洲网站三级| 久久国产精品免费精品3p| 国产一区成人| 亚洲视频二区| 在线精品视频一区| 亚洲美女一区| 国产一区 二区| 欧美人与牛zoz0性行为| 亚洲高清av| 日本免费一区二区三区四区| 亚洲情侣在线| 99久久婷婷国产综合精品电影√| 成人影视亚洲图片在线| 在线观看一区视频| 精品成av人一区二区三区| 男男视频亚洲欧美| 日本系列欧美系列| 精品国产一区探花在线观看 | 美女色狠狠久久| 综合伊思人在钱三区| 欧美久久精品一级c片| 中文字幕在线免费观看视频| 伊人久久大香| 激情欧美亚洲| 成人国产精品入口免费视频| 精品一区视频| 水野朝阳av一区二区三区| 亚洲日韩视频| 亚洲午夜极品| 国产精品66| 精品丝袜久久| 韩日一区二区| 久久a爱视频| 少妇视频在线观看| 日韩在线网址| 欧美独立站高清久久| 国产精品白丝久久av网站| 午夜欧美精品| 日韩精品久久久久久| 欧美综合另类| 99精品免费网| 欧美一区二区麻豆红桃视频| 男人亚洲天堂| 999久久久精品国产| 成人mm视频在线观看| 成人久久综合| 久久综合综合久久综合| 99久久99久久精品国产片果冰| 亚洲一级少妇| 亚洲a一区二区三区| 国产极品一区| 亚洲国产专区| 在线免费高清一区二区三区| 好吊日精品视频| 99综合99| 国产精品久久久乱弄| 日本强好片久久久久久aaa| a天堂资源在线| 99re8这里有精品热视频8在线| av日韩中文| 精品99久久| 国产日韩欧美三级| 欧美天堂亚洲电影院在线观看| 日本sm残虐另类| 国产亚洲高清视频| 亚洲素人在线| 欧美日韩国产v| 99视频精品全国免费| 欧美日韩综合| 日本欧美肥老太交大片| jizz久久精品永久免费| 日韩国产91| 亚洲欧洲一区二区天堂久久| 亚洲伊人春色| 亚洲国产精选| 伊人影院久久| 日本超碰一区二区| 日日夜夜综合| 亚洲综合国产| www.成人网| 国内精品久久久久久久影视麻豆| 久久国产精品久久w女人spa| 中文字幕视频精品一区二区三区| 美女久久久久久| 午夜一区在线| 精品久久影院| 成人免费91| 欧亚一区二区| 国产视频一区三区| 我要色综合中文字幕| 久久精品伊人| 四虎8848精品成人免费网站| 久久精品动漫| 无码日韩精品一区二区免费| 四虎地址8848精品| 热久久一区二区| 欧美日韩一区二区综合 | 超碰精品在线| 伊人亚洲精品| 福利一区在线| 国产精品黑丝在线播放 | 免费不卡中文字幕在线| 日韩不卡一区二区三区| 亚洲区一区二|