首页 > 其他分享 >QHE5701 – Database Systems

QHE5701 – Database Systems

时间:2024-12-01 19:44:23浏览次数:4  
标签:Task database QHE5701 Database Lab Systems data

QHE5701 – Database Systems 2024 Lab – 51

Lab 5: Designing Database and Generating sample data (using data generator tool) In this lab you’ll use MySQL to design and implement a database from user requirement.

Database Specification Details: In a company that manages a big chain of doughnut-selling shops, there is a need tocreate a database for the data accumulated through the last years. Consider that the datayou have available is:

  • List of menus which can be regular or seasonal (for example Christmas menu),they have a name and start and end date in case of a seasonal menu. Additionally,we also have a specific colour palette they must follow used by each menu.
  • List of products available for each menu we know names, prices, calories, sugarcontent, protein, and salt.For the same sales, we know the buyer if they have scanned their loyalty app. Abuyer has some data saved like first name, last name, gender, age and occupation.Employees can have diTerent contracts (full-time, part-time) with additional totalworking hours (overtime). We also account for the years of experience of every onof them.The branch is a location of our company that has an address and a size. Size is anindex that describes how big is the branch.List of ingredients used for every product (name, country of origin, unitspurchased, price, name of the supplier)
  • Each sale must be stored with the exact time and date of sale and price.NOTE: Assume that size is a parameter denoting roughly the cost of running that branch.Task: Design a database for this problem, which involves:
  1. i) Create an ER model for this problem
  2. ii) Perform the mapping to the logical modelQHE5701 – Database Systems 202Lab – 5iv) Create sample data for your database (to make it easier use a generator

like: https://extendsclass.com/csv-generator.html )Lab Submission Guidelines: Complete the task in Lab-5 as this will also be used in next lab. Details on Week-3submission will be provided with Lab-6 description.

HE5701 – Database Systems 2024

Lab – 61Lab 6: Data Warehouse Design and SQL Query Development for Business Insights In this lab you’ll use MySQL to create queries for the database provided in sql script.

Database Specification:

In Lab – 5, you created a company that manages a big chain of doughnut-selling shops.The client needed a database for the data accumulated through the last few years.The client has now provided additional data for your reference. 代写 QHE5701 – Database Systems For your ease, this data isin the form of a database. SQL script for the database is provided, use Lab6.sql However, the data provided is much more than you will need so you will have to considerwhat to include. The company wants a data warehouse which allows them to answer thequestions (or at least as many as possible for these) for which you need to write SQLqueries.

Task Description:

Task BASIC:

As a requirement from the client, you need to provided solution for these basic questionsas part of the data analysis. You are required to create queries for all BASIC questions.

  1. i) List the branches in Asia.
  2. ii) Create a list of full-time Employeeiii) What is the average number of sales in each month?
  1. iv) What is the total revenue of the company (sum of prices associated with eachale)?
  1. v) What is the percentage of registered sales, which originate from police oTicers?
  2. vi) What is the distribution of gender among registered Customers?

Task – MEDIUM: Client wants you to create solution for the following questions to help the client in

analysis oftheir sales and revenue. From the followingMEDIUMquestions, you can select

any 3 of the following questions to create SQL queries.QHE5701 – Database Systems 202Lab – 62

  1. i) Which is the branch that generates the most revenue (sum of price based onsales)?
  1. ii) Which ingredients are generating the most salesiii) What size of the branch performs the best (in terms of revenue generated)?
  1. iv) Find the worst 5 part-time employees according to sales.
  2. v) Which continent generates the least sales?

Task – ADVANCED: Create SQL queries that to answer the following business insight queries to help thclient in their business expansion. From the following ADVANCED questions, you canselect any 1 of the following questions to create SQL query.

  1. i) Find the country, that if it would be sanctioned, would mean the biggest disruptioto the supply chain (consider both most products and sales aTected separately)ii) What is the most profitable ingredient? Remember to consider the price of thatingredient.ii) Find the best menu. Consider: Volume of sales of specific menu * (the price of a

given pastry - the cost of production of it)NOTE: Use the provided SQL script (Lab6.sql) to generate an example Data Warehousefor this exercise.

Lab Submission Guidelines:

  • Include a title page with your full name, module name, QMUL ID Number, BUPT IDNumber, Class Number, and lab number.
  • Use a clear and organized layout.
  • Clearly label each task (e.g., Lab 5 – Task (i), Lab 5 – Task (ii), Lab 6 – Task Basic (i),Lab 6 – Medium (i), etc.)QHE5701 – Database Systems 2024Lab – 
  • Provide SQL code, outputs (screenshots), and any explanation (includingassumptions) where necessary especially in case of designing ER Model ormapping ER to logical model (Lab – 5).
  • Create a folder and place all your database files (check where you saved yourdatabase in your laptop) along with the solution document (pdf) within the folder.
  • Compress this folder and rename it with your QMUL ID number.
  • Upload the compressed file on the QMPlus module page in Assessment Section.You are allowed to resubmit before the deadline. In case you face any issues, email me(a.masood@qmul.ac.uk). NOTE: Submit both labs (Lab 5 and Lab 6) in a single report (Week - 3).

标签:Task,database,QHE5701,Database,Lab,Systems,data
From: https://www.cnblogs.com/CSE231/p/18579753

相关文章

  • Cloud Mongodb中organization和project和cluster和databases的关系。
    一个集群(cluster)是多个数据库的集合,这多个数据库的集合共同服务于一个项目。本质上就是把需要的数据按照类别划分成不同的部分,然后分别存储在不同的数据库中。集群虽然是多个数据库的集合,但集群本身就是一个数据库,可以理解为一个服务器程序。但在使用时,可以把一个集群中的一个数据......
  • FUSE File Systems
    A5:FUSEFileSystemsDueDec3by11:59p.m.Points9AvailableafterNov12at12a.m.IntroductionYouwillbeimplementingaversionoftheVerySimpleFileSystem(https://pages.cs.wisc.edu/~remzi/OSTEP/file-implementation.pdf)(VSFS)fromtheOSTEPte......
  • CS 551 Systems Programming
    CS551SystemsProgramming,Fall2024ProgrammingProject2nthisprojectwearegoingtosimulatetheMapReduceframeworkonasinglemachineusingmulti-processprogramming.1IntroductionIn2004,Google(thepaper“MapReduce:SimplifiedDataProcessin......
  • k8s问题记录-etcdserver: mvcc: database space exceeded异常处理
    报错截图如下查看etcd,发现超过默认值2G了解决参考链接https://cloud.tencent.com/developer/article/2360418执行过程PS:高可用集群需要在所有master执行#1、获取当前的版本$rev=$(ETCDCTL_API=3etcdctl--endpoints=https://127.0.0.1:2379--cacert=/etc/kubernete......
  • c# sqlite "unable to open database file"错误
    我这个问题是开发环境正常,打安装包后运行报错,记录一下一、解决连接的问题App.config<connectionStrings><addname="sqliteConnection"connectionString="DataSource=|DataDirectory|\UpperMaterial.db;Pooling=true;FailIfMissing=false"providerName="System......
  • 出现WrongArgumentException: Malformed database URL, failed to parse the connecti
    目录1.问题所示2.原理分析3.解决方法1.问题所示编辑数据源的时候,后端出现如下BugThelastpacketsentsuccessfullytotheserverwas0millisecondsago.Thedriverhasnotreceivedanypacketsfromtheserver.com.mysql.cj.jdbc.exceptions.Com......
  • 【YashanDB知识库】如何配置jdbc驱动使getDatabaseProductName()返回Oracle
    本文转自YashanDB官网,具体内容请见https://www.yashandb.com/newsinfo/7352676.html?templateId=1718516问题现象某些三方件,例如工作流引擎activiti,暂未适配yashandb,使用中会出现如下异常:问题的风险及影响影响客户业务无法进行。问题影响的版本所有的yashandbjdbc驱动版本。问题......
  • web.database() 创建的数据库对象线程安全吗?
    免责声明:尝试谷歌,一无所获,我管理我可能谷歌搜索得不好,但我没有想法。我有一个web.py应用程序,我需要定期运行一些数据库维护任务,并且我'我希望使用线程来完成此操作,以便Python应用程序完全独立。我的问题是:为了做到这一点,我必须采取什么样的预防措施(如果有的话)?计划是在调......
  • SQLSyntaxErrorException: Unknown database ‘server‘ ---数据库相关报错解决方案
    java.sql.SQLSyntaxErrorException:Unknowndatabase'server'这个错误通常表示你尝试连接的数据库名称(在这个例子中是server)在你的数据库服务器上不存在。这可能是由于以下几种原因之一:数据库名称拼写错误:检查你在连接字符串中指定的数据库名称是否正确,确保没有拼写错......
  • 访问WordPress网站提示“建立数据库连接时出错”或者“Error establishing a database
    当访问WordPress网站时出现“建立数据库连接时出错”或“Errorestablishingadatabaseconnection”的提示时,这通常表示WordPress无法成功连接到数据库。以下是几个可能的原因及解决方法:原因数据库连接信息错误:WordPress配置文件中的数据库连接信息(如用户名、密码、主机名)不......