DBMS Homework Help

Search for question

Questions & Answers

Assignment 4 This assignment builds upon Assignment 3. In the previous assignment you were introduced to the change management process for the Microsoft SQL database, the entire process led to additional questions being asked about reducing downtime for future changes or perhaps another way to access the data during these changes. Your supervisor comes to you and asks you to investigate and plan out using a cloud-based database service. For simplicity, your environment is using Microsoft Azure as it’s cloud platform. Your task is to come up with a plan on how you are going to plan this type of integration. Key Items to include in your plan: Which method do you prefer to deploy? A cloud hosted MS SQL server or using the Azure SQL service? Please explain your decision and provide supporting material in your decision. How will you plan out data -synchronization between the on-premise databases to the cloud-bases databases? What will be your process in the event to have the business users point to the cloud-based solution when the on-premises environment is down due to updates, or due to an outage? Please develop your answers in written format no longer than 8 pages and indicate how you are going to address the above criteria. Please also ensure you are using APA formatting for any references you are using. You should provide as much detail as possible when answering.


ASSIGNMENT 03.1: Normalize a Schema Start Assignment Due Sunday by 11:59pm Points 100 Submitting a file upload File Types pdf Available until Jul 15 at 11:59pm Format: Individual Normalize the following relational schema into at least Third Normal Form (3NF) and show that all entities are in at least 3NF. Make a copy of the diagram Normalization-ERD E, in LucidChart and then modify that copy (use File/Duplicate in LucidChart -- do not ask for edit access as we cannot have you edit a shared document, for obvious reasons). The ERD is reproduced below for reference but you must open the link , and copy the diagram and then modify that copy. Module PK |mid integer name text contains A complTime time FK cid integer Lesson contains A PK lid text Course PK cid title text CK url text integer to aTime numeric difficulty numeric instructorName text instructorEmail text instructorFee numeric . You may collaborate and discuss this problem with up to two peers in private and you may post questions on the course forum but you may not seek the assistance of anyone outside the course. . You must make an individual submission, i.e., you and your discussion partner cannot submit the same diagram. . Add additional entities (tables) as required to the above model to accommodate requirements that are not correctly represented in the model that we provide. . Resolve any many-to-many relationships. Submission Submit a PDF that contains the revised ERD (in Crow's Foot Notation) and your "proofs" of 3NF compliance. You do not need to (but should) update the glossary or sample tables. By "proof" we mean that you need to show that each table is in 3NF by listing the functional dependencies and explain that the list of FDs meet the requirements of 3NF. . You may collaborate and discuss this problem with up to two peers in private and you may post questions on the course forum but you may not seek the assistance of anyone outside the course. · You must make an individual submission, i.e., you and your discussion partner cannot submit the same diagram. . Add additional entities (tables) as required to the above model to accommodate requirements that are not correctly represented in the model that we provide. · Resolve any many-to-many relationships. Submission Submit a PDF that contains the revised ERD (in Crow's Foot Notation) and your "proofs" of 3NF compliance. You do not need to (but should) update the glossary or sample tables. By "proof" we mean that you need to show that each table is in 3NF by listing the functional dependencies and explain that the list of FDs meet the requirements of 3NF. CS5200.A2.Rubric.SuF24 Criteria Ratings Pts ERD uses IE/Crow's Foot notation correctly. 10 pts Full Marks 0 pts No Marks 10 pts Work is clean and professional; easy to read. 5 pts Full Marks 0 pts No Marks 5 pts Schema is in 3NF 60 pts Full Marks 50 pts Mostly correct 0 pts No Marks 60 pts "Proof" on 3NF listing FDs 25 pts Full Marks 20 pts Mostly correct 10 pts Acceptable 0 pts No Marks 25 pts Total Points: 100


Before trying this assignment, you need to read the assigned reading materials carefully and watch the following video up to 12:12 minutes (ignore the rest). https://www.youtube.com/watch?v=pSR bvhRiJY Instruction: In this HW, you need to create a database in MySQL workbench. Before starting this HW, you need to watch the above video. If you dont have MySQL Workbenck on your computer: Use https://www.w3schools.com/sql/trysql.asp?filename=trysql_select all , then copy each command to a .txt file to submit to D2L. Hint: In this website (w3School), you CAN'T create a database, but you can create tables. In this assignment, you need to create a simple database. Before starting this homework, make sure to watch the introduction to MySQL video. Here, we want to create a simple database with two tables for the following entities: 1- Authors 2- Books We know that each author may publish one or more books. the attributes of the authors are as follows. 1) AID represents the Author's ID and its an integer number (INT data type). This column is the primary key of the table. 2) AFName represents the Author's First Name and its data type is a string (varchar(32) data type). 3) ALName represents the Author's Last Name and its data type is a string (varchar(32) data type). 4) AStAddress represents the Author's street address and its data type is a string (varchar(32) data type). 5) ACity that represents the Author's City and its data type is a string (varchar(32) data type). 6) AState that represents the Author's state and its data type is a string (varchar(32) data type). 7) AZipcode that represents the Author's zip code and its data type is an integer. 8) ADOB represents the Author's date of birth and its data type is the date (date data type). the attributes of the Book are as follows. 1) BID (Book ID, integer data type). This column is the primary key of the table. 2) BName (Book Name, varchar(32) data type) 3) BISBN (Book ISBN, varchar(13) data type) 4) BPDate (Book published date, date data type) 5) AID (Author's ID) and its foreign key. Now answer the following questions, and write your answers with an SQL statement for each question. 1. create a database called MyTestDb. 2. create the table of Authors. 3. create the table of Books. 4. add at least two authors to the table of Authors 5. add at least four Books to the table of Books


Upon completion of this lab you should be able to: 1. Run basic scripts to install a MySQL database 2. Learn how to record output from a database. 3. Run a few basic commands. Module 3 Lab Assignment: Finding your way around in SQL The purpose of this assignment is twofold: • To introduce you to using MySQL on faure; • To help you become familiar with some common SQL commands; (You might also wish to download MySQL for your own machine, and run this program there as well.) Overview of Task For this project you will learn how to access our department MySQL server(faure) and work with a sample database provided below. The database implements a simple employees file and consists of several simple tables for organizing departments, managers, and employees. A copy of the schema for this database can be found here Links to an external site. Details Part 1: Bringing up mysql on faure 1. Log into one of the department machines, either by working in one of the CS labs, or by ssh from home. 2. run mysql by executing the following command: mysql -u loginname -D loginname -h faure -p (loginname is your NetID) 3. This should drop you into mysql and request a password. 4. Once you have entered the password (initially your CSU id), you can begin to nose around. 5. Remember that if you are using faure, you do not have permissions to create a database. Instead, one by the same name as your user id has been made available for you to use. Part 2: Create and/or use a provided database. You need to find a way to solve Questions 4-9. 1. Common mysql commands. Before you start your operation on mysql database, it's good to know the following mysql commands. Refer to the tutorial in the documentation for more detailed information. Don't forget to terminate every command with a semicolon, otherwise you will get the mysql command continuation prompt: "->". If this happens and you're done entering your command, simply enter a ";" and the command will execute. О show databases; This command shows all of the databases that your mysql server is managing. If you are running on faure, this will show your personal database available there. Database in this sense refers to a collection of tables (relations) for supporting a complete conceptual model of the world. use <database>; This command changes the current database to <database>. For security reasons, on faure we do not allow databases to be created, so you must use the database of your own name here. • show tables; This command shows all of the tables (relations) for the current database (refer to the use command for changing the current database). describe <table>; This command describes the field names, types, and values for the table named <table>. • select * from <table>; This command shows all of the data within the table named <table>. 2. OK, now lets get to the assignment. 3. Use the tee command to put your output in a text file to submit 。 Use? at the MariaDB prompt for help 4. type in use [your database's name]; [your database's name] should be your existing database whose name is your cs department login name (NetID). Caps aren't important but spelling is. Type in show tables;" and you should see nothing. 5. Create the employees tables in the new database. First think about what kind of information you would need to create a employee database. Would you put all of it in a single table or separate it into multiple tables? A script file 6. Links to an external site. 7. is provided that you can run with mysql in batch mode to create the necessary database Run it by using the source command from within mysql. HINT: source file_name.sql in mysql prompt. 8. Examine the tables. Use the "describe" command to look at the structure of each table. Use the documentation to help understand data types, syntax, etc. Yes, you are being thrown into the deep end and having to swim, so start paddling. 9. Load the database with some data, specifically the data provided in this script file 10. Links to an external site. 11.. Execute it the same way as you did in creating the tables. The data files necessary must be local to your account and can be found in this tar file can be found here. 12. Links to an external site. 13. 14. Run some queries against the database. Here is a script file 15. Links to an external site. 16. that contains some sample queries. Examine the output to see if it makes sense. What is the difference between the first and second query? Why? What is the difference between the second and third query? Why? 9. Type in notee to stop the tee command./n ssh into the department machines. open the terminal and connect to maria db using the command I have provided in the assignment's instruction. The lab assignment introduces you to working with a MySQL database system and focuses on understanding how to navigate and query data. Here's a breakdown of the key points: Learning Objectives: • • • Install a MySQL database (not required for this lab). Record database output. Use basic SQL commands. Assignment Purpose: • • Access the department's MySQL server (faure). Practice common SQL operations on a sample employees database. Tasks: 1. Connecting to MySQL: o Login to a department machine or SSH from home. o Run mysql -u loginname -D loginname -h faure -p (replace loginname with your NetID). o Enter your password (initially your CSU ID) to connect. 2. Using the Provided Database: o Since creating databases isn't allowed on faure, you'll use a database named after your NetID. 3. Common MySQL Commands: o show databases;: Lists all databases on the server. o use ;: Selects the specified database. o show tables;: Lists all tables within the current database. o describe ;: Shows details about a specific table (structure, data types). o select * from ; Retrieves all data from a table. 4. Creating the Employee Database: o Consider what information is needed for an employee database (separate tables might be helpful). o Use the provided script file (source file_name.sql) to create the tables in your database. 5. Examining the Tables: o Use describe to view the structure of each table. o Refer to documentation for data types and syntax. 6. Loading Sample Data: o Execute the provided data script file (similar to creating tables). o The data files are located in the provided archive. 7. Running Sample Queries: o Analyze the provided script containing sample queries and their output. Explanation: Specific Questions: The prompt asks you to analyze the differences between the first three queries in the provided script but doesn't include the queries themselves. Here's a general approach to understanding the difference between SQL queries: • Identify the SELECT clause: This specifies which data you want to retrieve. • Check for FROM clause: This indicates the tables involved in the query. • Look for WHERE clause (optional): This filters data based on specific conditions. Consider ORDER BY clause (optional): This sorts the results based on a column. By comparing these elements across the queries, you can identify how they differ in terms of data selection, filtering, or sorting. Net id: C837367532 CSU id: 837367532 password: Goldentemple22!!/n Additional Notes: In the department machines. open the terminal and connect to maria db using the command I have provided in the assignment's instruction. After login into one of the department machines, open the terminal and write this command mysql -u loginname -D loginname -h faure -p using your NETID in the place of loginname Go to SNA's website and follow the instructions in how to remotely access CS machines. Once you have the access open the terminal and follow the command I provided in LAB3 to connect to MariaDB. You need to use globalProtect to get access. Look at the website about vpn.- C8373675329:51 pm Goldentemple22!!


7:07 Ill 4G 41 Samples-2 1. A library consists of many books. Books in the library can be classified into educational books and recreational books. A library user with a library card can borrow books from the library. The user can take books to a computer auto-librarian to check out the books. The auto-librarian scans the user's card and records the user's id in the books' records on the computer. From the above description, identify the classes and draw association, aggregation, dependency, and generalization relationships with multiplicity in UML between the classes. Briefly explain each multiplicity. 2. Using the library system, a user can reserve a library book for a period of time through the Internet. There are two ways for a user to find a book to be reserved, by browsing the library catalogs, or by searching with adequate information such as book title, author, and ISBN number. Using the system, a librarian can check reservation information and prepare books to be picked up on the starting days of reservations. Identify actors and use cases of the system and draw a use case diagram. If there is a relationship between two use cases in the diagram, show that it is an <<include>> or <<extend>> relationship. 3. Choose one use case of the diagram obatine din 2 and draw an activity diagram for it. 4. Draw a sequence diagram for the use case that allows the user to search for a book. Stream Courses Calendar More/nexplainction Sample 2 Liberay UML - Diagram Liberaung and book (agingction) Liberary - name: Book title: -cuther: -isbn: String 4 edualand Books a baberg Cantun multiple Bak objects Liberty Card Multiphaly ... Cone Libery Mary Backs Libery User -id String -name: String ↓ autoLiberam -id: String ②Library User and Library (and (asconha) abibrang has one cand Recreticul Bak Multiphots: 1..I' (one Libray User and ca Librang User and autothiran & (asscudo) A Liberary user interes with the audiban Muthehet: '\..\' (OLU with an aL) W Book, ednatel Book and Devachal Dack (Generelation) eduetial Book and Reendral Back and Steadet form of Books (Intentane Relation) at the top/nS 1 1 2 T 3 r 4 E 5 o 6 Q W- E R T Y 7 V 8 19 - 3 ص と ع A S 3 3 ی D ي F G Z X CO V B J HT J INI J b 3 د ر fn control option command ' A 9 ۹ O • P ] { t こ [ K L ت ن e ; ك " ' M V > 9 ? $ / х command option Sample 2 Use Case diagram for Libray Use Cape Diagram <ader>> Library User Wentify actors 10 Library User Libra Jalify Use cus Brouse Calg Search Book Reserve Book Check Resend Information Brad Prepase Book for Pickup Rokken Stup Sarch Back Broware calling @ Reserve Book <<ader>> Librainh Bruse cally & Sarch bak (Independant Use Cases) Resene Back on be what the after Brause Calalay the we use cc includes on Search Bak Preure Books for Packing is dependent on the check Reseruny lafend It is an extension of checkin reauton jeleht so we use Cc fxland >> Velchu ship achaly dagoaner Login Search/Bak Check Reservation Information Prefore Book for Pickne Select Book to reme Check aubly <<extend >> Cundabley Реди d Back Inform User abut Unadilly Confirm Resende to User


Part 1 E-Commerce Project: Design Purpose: To design an E-commerce marketplace using ERD and Logical modeling Skills Used: ERD modeling. Knowledge Goals: ERD modeling, Logical design modeling, and relational design Design the DB for an Online Marketplace for a company you choose the name of. The DB should be able to track products, current inventory, transactions, reviews for products, and users who have signed up for an account on our website. Go through the Analysis (collect and analyze requirements) and Logical modeling (implement ERD of entities, relationships, and attributes), and normalization phases of your DB design (part of Logical modeling). Create the following: The ER diagrams using the notation discussed in class / the book, that can be done in a tool of your choice. I recommend Lucid Chart. Models created in MySQL ER diagram creator will not be accepted. In the future, you will need to answer questions from this DB like: • List which products we currently have in inventory. • Create new products. ● Modify the amount of a particular product that we have in inventory. Delete a product from the inventory Get a list of the most popular products for a given time range Get a list of the least popular products for a given time range Get a list of users who haven't purchased something in a few months to send promotional emails to This should also include products that these users normally purchase Required/Suggested items: • Have a minimum of 6 entities Crows feet notation must be used Cardinality must be defined, including relationship and attribute minimums and maximums. Unique values should be indicated for Attributes. Include documentation explaining which entities Strong and which entities are are Weak. Do not replace your crows feet notation with the diamond notation. Also, if you have any Supertype and Subtype entities, explain these in the documentation. I would like to see at least one supertype/subtype relationship. • Alternative option to documentation is to create a separate ER diagram with the diamond notation and supertype/subtype entities format. Appendix ER Diagram Example: • Imagine a diagram for a simple library system. Entities could include Book, Author, and Member. Book could have attributes like BookID, Title, and Genre. • Author might have AuthorID, Name, and Bio. • Member could include MemberID, Name, and Email. Relationships could show that a Book is written by an Author and borrowed by a Member. Normalization (Boyce-Codd Normal Form): • ● • Entities might be split into Books, Authors, and Members with primary keys. Books entity could have a foreign key linking to the Authors table to establish the relationship without redundancy. Additional entities might be used for many-to-many relationships (e.g., if a book can have multiple authors), such as an AuthorBook junction entity with foreign keys linking to both Authors and Books. Part 2: E-Commerce Project: Implementation Purpose: To implement an E-commerce marketplace using SQL DDL and DML Skills Used: SQL DDL and DML, DBMS operation Knowledge Goals: Translating design into implementation through DDL and DML Summary For this assignment, you will create the Database Schema for the Online Marketplace DB for your company Create the following: You will modify your data model design to normalize your database into Boyce-Codd NF from the Design phase and then implement it. While you are not required to create a new diagram for the database design, it would be helpful if you did, especially with many-to-many relationships. For each normalized relation write a SQL CREATE TABLE statement. Your tables should implement the PRIMARY KEY and FOREIGN KEY constraints of your normalized design. You should also insert some data into each table. The amount of data should be such that the need for the database is clear. In other words, provide enough examples to demonstrate why a database was required in the first place. Be sure your database can be used to complete these tasks: • List which products we currently have in inventory • • Create new products Modify the amount of a particular product that we have in inventory Delete a product from the inventory Get a list of the most popular products for a given time range • Get a list of the least popular products for a given time range Get a list of users who haven't purchased something in a few months to send promotional emails to This should also include products that these users normally purchase Be careful and consider what constraints may need to be put in place to ensure referential integrity. Part 3: E-Commerce Project: Application Creation Purpose: To create an application using Python or Java that will allow API access and manipulation of your database Skills Used: Using Python or Java APIs to access a MySQL database Knowledge Goals: Python, Java, API access, manipulation, Triggers, Stored Procedures/Functions Summary For this assignment, you will create a Java or Python application which can call into the locally running Online Marketplace DB, as well as create stored procedures/functions and triggers in your database Create the following: Use the Java or Python APIs to create an application that can access manipulate and query the database you created in the last project. Create at least 2 Stored Procedures/Functions and 1 Trigger. This application should be able to do the following: • List which products we currently have in inventory Create new products • Modify the amount of a particular product that we have in inventory • Delete a product from inventory • Get a list of the most popular products for a given time range Get a list of the least popular products for a given time range • • Get a list of users who haven't purchased something in a few months to send promotional emails to This should also include products that these users normally purchase For least and most popular, this can be calculated based on the number of items sold over the given range. Include the rating score for these items in your calculation, and weight those two values. This don't have to make any fancy GUI for this application it can just be text menus. But provide a meaningful interface that is robust and helpful to a person wishing to use this database to query the E-Commerce database. Format Requirements Please use Java or Python to complete this project. Assessment Your code will be assessed according to quality and correctness. I will test the functions above and your stored procedures/functions and triggers. Deliverables Please be sure the SQL code that contains your database creation, insertion, stored procedures/functions and triggers are all in the Github repo, along with your Java or Python code for the application. Appendix • ER Diagram Example: Imagine a diagram for a simple library system. Entities could include Book, Author, and Member. • Book could have attributes like BookID, Title, and Genre. • Author might have AuthorID, Name, and Bio. • Member could include MemberID, Name, and Email. Relationships could show that a Book is written by an Author and borrowed by a Member. Non-Normalized Logical Design Diagram: This could be a table representation showing how data is initially laid out. A single table for the library system might include columns for all book, author, and member attributes, leading to redundancy (e.g., the same author details repeated for multiple books). Normalized Logical Design Diagram (Boyce-Codd Normal Form): • • This would refine the non-normalized diagram by eliminating redundancy. Tables might be split into Books, Authors, and Members with primary keys. Books table could have a foreign key linking to the Authors table to establish the relationship without redundancy. Additional tables might be used for many-to-many relationships (e.g., if a book can have multiple authors), such as an AuthorBook junction table with foreign keys linking to both Authors and Books./n first part we have to design, second we will implement and third we will use java or python we just have to create everything by ourself . something creative and interesting Needs code+comment for part 3


We have to design the database for the UTAS CIMS system for advising and registration of courses. Do the following tasks:. 1. Write the case study for the above-given scenario based on your understanding. [1 mark] 2. Create an ER diagram with at least 3 entities, different types of attributes, and 3 relationships based on the case study you have created in step 1. [3 Marks] 3. Convert the ER diagram created in step 2 to relational tables with primary and foreign keys. [3 Marks] 4. Normalize the tables created in steps 2-3 upto 3 normal form. [3 Marks]


Assignment Instructions Need To Make Code, Report and 6 PPT Slides with Speaker Notes watch the video Explanation of Assignment https://youtu.be/utL_yBxn11E?si=mv5186Uq2QSZRUĠE D Gy Tower Ele 10 8 act the hynot neturtinam part 1 When you go to the ner and typurhat you will be able to time you wit at mga ngit, that a 10 points. servatinine, matata, speciallegata), compints the wethide 3 by servin dataline tale. A Please Into the tation the official sys within/au/content-sythip-and-hit bing news/Python Merify that. It worked by chenking the wee platom table how sin jealo00/ In your weeke e to rem sttary fiction the Link, 2011 Worke ctly that is (20 points) chips if you plete the adpoola Peq finantation, alam) Maturen restaurantbetianey 18 points 5, on it you suplet the methods with statery 10 points each) home at yes piete and plent the Publishing (15 points) 14 pointal 1.tita i wpasning e code and saving hevit 4. Uplot jos sorptie with y citur in alle impositary, pantal Treshers in the ax OONWID AUE PA/n Final Project - Restaurant Portal Professor Yanilda Peralta Ramos Project Description: Finalize the web platform for Restaurant Managers to manage reservation schedules and dining experiences. • You are given a started code in Python with a platform that runs on a Python HTTP Server. Your task will be to connect to the MySQL server and complete the Database class so that the platform functions smoothly. Once complete, the Restaurant Managers will be able to access the platform to add, modify, or cancel reservations, as well as update dining preferences for regular customers. Create a Report explaining the code. Upload your source code (public), with the report in PDF to GitHub, and submit the link to Blackboard. Make a presentation in person. Guidelines: Link to starter code: https://github.com/synac1/CIS344/tree/main/spring2024 You can download the files. • The platform must handle checking whether a customer already exists in the Customers table before making a reservation. If not, the customer should be added. A new customer can be added either through a direct addition to the Customers table or during the reservation process if they do not already exist. Integration of customer data across the platform enhances the ability to track and manage customer interactions comprehensively, from reservations to dining preferences. MySQL to-do list (40 points): 1. (5 points) Create a database named restaurant reservations. 2. Use the previously created database. Final Project - Restaurant Portal Professor Yanilda Peralta Ramos MySQL Tables and Relationships 1. Customers Table (5 points): customerId INT NOT NULL UNIQUE AUTO INCREMENT 。 customerName VARCHAR(45) NOT NULL o contactInfo VARCHAR (200) // Stores email or phone number Primary Key: customerId 2. Reservations Table (5 points): О reservationId INT NOT NULL UNIQUE AUTO INCREMENT 。 customerId INT NOT NULL o reservationTime DATETIME NOT NULL 。 numberOfGuests INT NOT NULL ○ specialRequests VARCHAR (200) Primary Key: reservationId Foreign Key: customerId references Customers (customerId) 3. DiningPreferences Table (5 points): ○ preferenceId INT NOT NULL UNIQUE AUTO INCREMENT 。 customerId INT NOT NULL о О favoriteTable VARCHAR(45) dietaryRestrictions VARCHAR (200) Primary Key: preferenceId Foreign Key: customerId references Customers (customerId) MySQL Procedures and Modifications 1. Stored Procedures and Relationships: О ○ find Reservations (customerId) (5 points): Retrieves all reservations for a specific customer using the customerId. addSpecialRequest(reservationId, requests) (5 points): Updates the specialRequests field in the reservations table. addReservation (5 points): Now includes a check or creation of a customer in the Customers table before adding a reservation. Final Project - Restaurant Portal Professor Yanilda Peralta Ramos Populate the tables with at least three tuples per table. (5 points). Python MySQL (30 Points) + Extra (20 points): 1. Open the restaurantDatabase.py file in your editor and change the default parameter values to match your MySQL server information in the constructor. 2. Run restaurantServer.py on your machine. if you completed all the MySQL instructions from part 1. When you go to the browser and type: localhost:8000/ you will be able to see this: If you accomplish running and getting results, that's 10 points. 3. Go back to your source code file restaurantDatabase.py and go to method addReservation (self, customerName, reservationTime, numberOfGuests, specialRequests), complete the method so it successfully insert a new Reservation to the database table. a. Please follow the documentation on the official mysql website: https://dev.mysql.com/doc/connector- python/en/connector-python-examples.html b. Using Connector/Python Verify that it worked by checking the web platform table home link: localhost:8000/ in your browser. Make sure to re-run after every modification to the files. If it worked correctly that is (20 points) 4. bonus: if you complete the addSpecialRequest(), find Reservations (), delete Reservation(), searchPreferences () methods in restaurant Database.py (8 points) 5. bonus: if you implement the bonus methods with restaurantServer.py (8 points each). 6. bonus: if you complete and implement the viewAllReservations () method (4 points). Publishing (15 points) 3. Write a report explaining the code and showing how it works. 4. Upload your source code and SQL script file with MySQL queries to GitHub in a public repository. (5 points) 5. Provide the links to your repository in the report. Put the extra screenshots in the appendix. Final Project - Restaurant Portal Professor Yanilda Peralta Ramos Deadline 5/16/2024 - 5/23/2024 6. The report is worth (10 points) Submit the report in PDF to the blackboard. 7. Presentation In Person (15 points). Present your work on the date of the presentation in person. Please for the presentation it should be in PowerPoint with Speakers Note and You have to present the demo of you working product ( like write what the speakers have to say during presentation as if you are the one presenting it this message goes to the expert doing my work)


IEE 305 Homework #3 Implement the relational model of the following project into a database using Microsoft Access. The relational model is given below (Page 2). The report should include screenshots of the following information. (25 points) The datasheet view of every table in your Access database о ○ ○ Name the tables using the relation names in the solution. Create and show at least five data records for each table. Put the screenshots in alphabetical order of the table names, or points will be deducted. (15 points) The Relationships view of the Access database. ○ Show the primary key(s) and the foreign key(s) of each table (if any). о Show the relationships between the tables. (60 points) The design view and the query result of every query in the Access database Implement the queries given below (Page 3). о ○ For the design view of each query, present the Table pane and the Design grid. ○ The screenshots must be legible and clearly show your work. ○ Please place the screenshots in the same order of the queries, or points will be deducted. You MUST submit a Word/PDF that includes all screenshots necessary for grading. You also MUST submit your Access file. Relational Model: Instructor InstructorID Name Address Department College Specialty Student StudentID Name Address Birthday Gender Department College Course CourseNo InstructorID Course Title Prerequisites CreditHours CourseLevel NewOffer Register CourseNo StudentID Room RoomNo Location Capacity Featured Desprition Period PeriodNo StartTime EndTime Assign PeriodNo RoomNo CourseNo Queries: 1. Professors are interested to know their weekly schedule. Create a query that prompts for the professors' name and returns their weekly schedule. 2. Create a query that prompts for students' identification numbers and returns their timetables for the current semester. 3. Create a query that prompts for the name of a course and returns its current schedule. 4. For each course offered in the current semester, present the total number of students registered, the classroom capacity, and the classroom description. This query will help to identify possible changes to the timetable due to the class capacity or equipment (computers, video, etc.) availability. 5. Every semester there are a number of new courses offered that have to be assigned to a period/room. a. List all the courses offered for the first time. b. List the eligible periods/classrooms for an unassigned course. This list should adhere to all the business rules given above. 6. For each time period, list the addresses of the classrooms that are available. This list will be given to the professors. In the case that professors do not like their current schedules, they can re-allocate the class in one of the available period/classroom combinations. 7. Create a query that prompts for the name of a department and course level (freshmen, ..., senior) and returns the timetable of the courses for this particular group. The results from this query are used to check whether the courses belonging to this particular group are assigned to the same class period.


32741 4 Assessment Information/Brief for Semester Two Module title CRN Level Database Systems Assessment title DBS Semester Two Coursework Weighting within module This assessment is worth 50% of the overall module mark. • How to Submit • You must submit a single document, in PDF format. Zero (0) marks will be awarded for supplementary files or files in other formats. Do not submit a zip file. • The name of your PDF file must include your student roll number and your User ID. Please do not include your name because the University will mark assessments anonymously where this is possible. Student roll numbers usually comprise the @ symbol followed by eight digits. User IDs usually comprise three characters followed by three digits. You must submit through Blackboard. It is your responsibility to ensure that your work is submitted successfully to the correct folder and that the correct version has been submitted. If you find that you have submitted the wrong version, you can contact Digital IT Service Desk before the submission deadline. They will be able to withdraw an incorrect submission, enabling you to make a new submission. Once the submission deadline has passed, no further action can be taken and work which has been submitted cannot be withdrawn. You can find the contact details of the Digital IT Service Desk in Chapter 2 of the module's exercise booklet. Database Systems (CRN 32741, UMC G400 10045) Semester Two Coursework 1 Assessment Task Details and Instructions • This is an individual assessment. You must not work in a team. The whole of your submission must be your own work. • You are reminded that penalties will be applied to late submissions, in accordance with the regulations and policies. • At the start of your document, you must include your student roll number, your User ID, the assessment's title, and the module's title and the CRN. Please do not include your name because the University will mark assessments anonymously where this is possible. • You must answer all the questions. • Do not include the questions in your submission. • The order of your answers must correspond to the order of the questions in this briefing. • Your submission must be typed (rather than hand-written) in, at least, font size 12pt. Do not use the colours red or green anywhere in your submission. • Do not include diagrams in your submission that are illegible, blurred or require the reader to use a magnifying glass. This briefing does not place any constraints on how you prepare your diagrams, but you are encouraged to learn how to use a digital drawing tool because it is a useful skill that may be useful during the remainder of your studies and career. There is a wide range of drawing software available. The university provides you with a wide range of support for developing your digital skills, see: http://www.salford.ac.uk/skills/ • Citations and references must conform to the APA 7 th (Harvard) style. Assessed Intended Learning Outcomes This coursework assesses the student's ability to: 1. describe the process of database query processing and evaluation; 2. explain the concepts of transaction management and concurrency control; 3. discuss database security and recovery. Employability Skills to be Developed/Demonstrated Communication? Yes Critical Thinking and Problem Solving? Yes • • • Data Literacy? Yes • Digital Literacy? Yes • Industry Awareness? No • Innovation and Creativity? Yes • Proactive Leadership? No • Reflection and Life-Long Learning? Yes • Self-management and Organisation? Yes • Team Working? No Word Count There are four questions. Your answer for each question must not exceed seven hundred and fifty (750) words. Zero marks will be awarded for parts of your submission beyond the word limits. Feedback Arrangements Database Systems (CRN 32741, UMC G400 10045) Semester Two Coursework 2 Your mark will be made available via Blackboard. An announcement will be made on Blackboard (and emailed to you) when the mark has been released. Academic Integrity and Referencing Students are expected to learn and demonstrate skills associated with good academic conduct (academic integrity). Good academic conduct includes the use of clear and correct referencing of source materials. You can find out more about the skills which students need at • • https://www.salford.ac.uk/skills/academic-integrity-referencing ; https://www.salford.ac.uk/skills/referencing. Academic misconduct is an action which may give you an unfair advantage in your academic work. This includes plagiarism, asking someone else to write your assessment for you or taking notes into an exam. The University takes all forms of academic misconduct seriously. Support arrangements There will be a verbal briefing on the contents of this document and some question and answer sessions during scheduled class times. You can obtain further support for this assessment by attending Dr Bryant's surgery. If you send Dr Bryant a query about this assessment via e-mail then he may respond by sending a message (via Blackboard) to all students taking this module so that all students can benefit from his answer. Tips You can find more information about understanding your assessment brief and assessment tips for success at: https://www.salford.ac.uk/skills/university- assessments . Assessment Rules and Processes You can find information about assessment rules and processes in the Assessment Support module in Blackboard. Develop your Academic and Digital Skills Find resources to help you develop your skills at http://www.salford.ac.uk/skills/ . Concerns about Studies or Progress If you have any concerns about your studies, contact your Academic Progress Review Tutor/Personal Tutor or your Student Progression Administrator (SPA). AskUS Services The University offers a range of support services for students through AskUS, including Disability and Learner Support, Wellbeing and Counselling Services (see https://www.salford.ac.uk/askus ). Personal Mitigating Circumstances If personal mitigating circumstances (e.g. illness or other personal circumstances) may have affected your ability to complete this assessment, you can find more information about personal mitigating circumstances procedure at: https://www.salford.ac.uk/askus/admin-essentials/personal-mitigating- circumstances Independent advice about this process is available from the Students' Union Advice Centre (see https://www.salfordstudents.com/advice/centre ). Database Systems (CRN 32741, UMC G400 10045) Semester Two Coursework 3 In Year Retrieval Scheme This assessment is not eligible for in year retrieval. Reassessment If you fail this assessment, and are eligible for reassessment, you will be required to do the same assessment again. The provisional re-sit submission deadline is 26th July 2024. For students with accepted personal mitigating circumstances for absence/non submission, this will be your replacement assessment attempt. We know that having to undergo a reassessment can be challenging however support is available. Have a look at all the sources of support outlined earlier in this brief and refer to the Personal Effectiveness resources at https://www.salford.ac.uk/skills/personal-effectiveness. Assessment Criteria Each part of each question is followed by the number of marks it is worth. Percentage Mark Level of Performance Outstanding 90-100 80-89 Excellent 70-79 Very Good 60-69 Good 50-59 Fair 40-49 30-39 Adequate Unsatisfactory 20-29r Poor 10-19r 0-9 Very Poor Extremely Poor Database Systems (CRN 32741, UMC G400 10045) Semester Two Coursework 4 Questions 1) (a) Suppose that a relation factory(ID, name, street, postcode) contains 800 tuples. Each tuple is comprised of a header (24 bytes) and four attributes: ID (5 bytes), name (10 bytes), street (20 bytes) and postcode (6 bytes). The size of each disc block is 1024 bytes and the size of the header of each disc block size 24 bytes. (i) How many blocks would be required to store the whole of this relation? (3 marks) (ii) How many blocks would be required to store a projection that does not include the attribute street? (3 marks) (iii) Explain why such a projection could be used to optimise a query whose results do not include data for the attribute street. (2 marks) (b) Consider the SQL query shown in Table 1. (i) Draw a near-optimal query tree for the SQL query. (8 marks) (ii) Identify the root and leaf nodes in the tree that you drew for part (i). (1 mark) (iii) Write down a justification for the position of the root node and each of the internal nodes in the tree that you drew for part (i) in terms of the heuristic steps that optimisers apply to reduce the cost of optimisation. Explain why the position of the nodes should make the query efficient. (8 marks) SELECT factory.name FROM factory, order WHERE order.factory_ID=factory.ID AND order.quantity >20 AND order.priority='urgent'; Table 1: An SQL query about orders placed with a factory. Database Systems (CRN 32741, UMC G400 10045) Semester Two Coursework 5


Assessment Information/Brief for Semester Two University of Salford MANCHESTER Module title Database Systems • How to Submit • You must submit a single document, in PDF format. Zero (0) marks will be awarded for supplementary files or files in other formats. Do not submit a zip file. • The name of your PDF file must include your student roll number and your User ID. Please do not include your name because the University will mark assessments anonymously where this is possible. Student roll numbers usually comprise the @ symbol followed by eight digits. User IDs usually comprise three characters followed by three digits. You must submit through Blackboard. It is your responsibility to ensure that your work is submitted successfully to the correct folder and that the correct version has been submitted. If you find that you have submitted the wrong version, you can contact Digital IT Service Desk before the submission deadline. They will be able to withdraw an incorrect submission, enabling you to make a new submission. Once the submission deadline has passed, no further action can be taken and work which has been submitted cannot be withdrawn. You can find the contact details of the Digital IT Service Desk in Chapter 2 of the module's exercise booklet. Database Systems (CRN 32741, UMC G400 10045) Semester Two Coursework 1 Assessment Task Details and Instructions • This is an individual assessment. You must not work in a team. The whole of your submission must be your own work. • You are reminded that penalties will be applied to late submissions, in accordance with the regulations and policies. • At the start of your document, you must include your student roll number, your User ID, the assessment's title, and the module's title and the CRN. Please do not include your name because the University will mark assessments anonymously where this is possible. • You must answer all the questions. • Do not include the questions in your submission. • The order of your answers must correspond to the order of the questions in this briefing. • Your submission must be typed (rather than hand-written) in, at least, font size 12pt. Do not use the colours red or green anywhere in your submission. • Do not include diagrams in your submission that are illegible, blurred or require the reader to use a magnifying glass. This briefing does not place any constraints on how you prepare your diagrams, but you are encouraged to learn how to use a digital drawing tool because it is a useful skill that may be useful during the remainder of your studies and career. There is a wide range of drawing software available. The university provides you with a wide range of support for developing your digital skills, see: http://www.salford.ac.uk/skills/ • Citations and references must conform to the APA 7 th (Harvard) style. Assessed Intended Learning Outcomes This coursework assesses the student's ability to: 1. describe the process of database query processing and evaluation; 2. explain the concepts of transaction management and concurrency control; 3. discuss database security and recovery. Employability Skills to be Developed/Demonstrated Communication? Yes Critical Thinking and Problem Solving? Yes • • • Data Literacy? Yes • Digital Literacy? Yes • Industry Awareness? No • Innovation and Creativity? Yes • Proactive Leadership? No • Reflection and Life-Long Learning? Yes • Self-management and Organisation? Yes • Team Working? No Word Count There are four questions. Your answer for each question must not exceed seven hundred and fifty (750) words. Zero marks will be awarded for parts of your submission beyond the word limits. Feedback Arrangements Database Systems (CRN 32741, UMC G400 10045) Semester Two Coursework 2 Your mark will be made available via Blackboard. An announcement will be made on Blackboard (and emailed to you) when the mark has been released. Academic Integrity and Referencing Students are expected to learn and demonstrate skills associated with good academic conduct (academic integrity). Good academic conduct includes the use of clear and correct referencing of source materials. You can find out more about the skills which students need at • • https://www.salford.ac.uk/skills/academic-integrity-referencing ; https://www.salford.ac.uk/skills/referencing. Academic misconduct is an action which may give you an unfair advantage in your academic work. This includes plagiarism, asking someone else to write your assessment for you or taking notes into an exam. The University takes all forms of academic misconduct seriously. Support arrangements There will be a verbal briefing on the contents of this document and some question and answer sessions during scheduled class times. You can obtain further support for this assessment by attending Dr Bryant's surgery. If you send Dr Bryant a query about this assessment via e-mail then he may respond by sending a message (via Blackboard) to all students taking this module so that all students can benefit from his answer. Tips You can find more information about understanding your assessment brief and assessment tips for success at: https://www.salford.ac.uk/skills/university- assessments . Assessment Rules and Processes You can find information about assessment rules and processes in the Assessment Support module in Blackboard. Develop your Academic and Digital Skills Find resources to help you develop your skills at http://www.salford.ac.uk/skills/ . Concerns about Studies or Progress If you have any concerns about your studies, contact your Academic Progress Review Tutor/Personal Tutor or your Student Progression Administrator (SPA). AskUS Services The University offers a range of support services for students through AskUS, including Disability and Learner Support, Wellbeing and Counselling Services (see https://www.salford.ac.uk/askus ). Personal Mitigating Circumstances If personal mitigating circumstances (e.g. illness or other personal circumstances) may have affected your ability to complete this assessment, you can find more information about personal mitigating circumstances procedure at: https://www.salford.ac.uk/askus/admin-essentials/personal-mitigating- circumstances Independent advice about this process is available from the Students' Union Advice Centre (see https://www.salfordstudents.com/advice/centre ). Database Systems (CRN 32741, UMC G400 10045) Semester Two Coursework 3 In Year Retrieval Scheme This assessment is not eligible for in year retrieval. Reassessment If you fail this assessment, and are eligible for reassessment, you will be required to do the same assessment again. The provisional re-sit submission deadline is 26th July 2024. For students with accepted personal mitigating circumstances for absence/non submission, this will be your replacement assessment attempt. We know that having to undergo a reassessment can be challenging however support is available. Have a look at all the sources of support outlined earlier in this brief and refer to the Personal Effectiveness resources at https://www.salford.ac.uk/skills/personal-effectiveness. Assessment Criteria Each part of each question is followed by the number of marks it is worth. Percentage Mark Level of Performance Outstanding 90-100 80-89 Excellent 70-79 Very Good 60-69 Good 50-59 Fair 40-49 30-39 Adequate Unsatisfactory 20-29r Poor 10-19r 0-9 Very Poor Extremely Poor Database Systems (CRN 32741, UMC G400 10045) Semester Two Coursework 4 Questions 1) (a) Suppose that a relation factory(ID, name, street, postcode) contains 800 tuples. Each tuple is comprised of a header (24 bytes) and four attributes: ID (5 bytes), name (10 bytes), street (20 bytes) and postcode (6 bytes). The size of each disc block is 1024 bytes and the size of the header of each disc block size 24 bytes. (i) How many blocks would be required to store the whole of this relation? (3 marks) (ii) How many blocks would be required to store a projection that does not include the attribute street? (3 marks) (iii) Explain why such a projection could be used to optimise a query whose results do not include data for the attribute street. (2 marks) (b) Consider the SQL query shown in Table 1. (i) Draw a near-optimal query tree for the SQL query. (8 marks) (ii) Identify the root and leaf nodes in the tree that you drew for part (i). (1 mark) (iii) Write down a justification for the position of the root node and each of the internal nodes in the tree that you drew for part (i) in terms of the heuristic steps that optimisers apply to reduce the cost of optimisation. Explain why the position of the nodes should make the query efficient. (8 marks) SELECT factory.name FROM factory, order WHERE order.factory_ID=factory.ID AND order.quantity >20 AND order.priority='urgent'; Table 1: An SQL query about orders placed with a factory. Database Systems (CRN 32741, UMC G400 10045) Semester Two Coursework 5


2.1 Raw data The data used to build the tables for this assignment are based on the 2023 Walt Disney World Marathon's Military members participation. The results are based on the PDFs in the files. However, the data from the PDFs have been updated and are described below. Date: 2/21/2023 Time: 5:29:41 P Dw Place Name MEN-MILITARY 1 JOSEPH CRAIG 2 GARRETT GROVE Date: 2/21/2023 Time: 5:29:41 P DN Place Name File Preview WARATHON WEDNESDA WOMEN-MILITARY 1 ABIGAIL BAHLAU 2 JESSICA ANDERSON 3 CHRISTINE KENDZIOR 2023 Walt Disney World Marathon Race Num Age 30012 26 State Far 11 78 29 73 2023 Walt Disney World Marathon Hace Num Age Place Gender Clock Net Place Time Time 101 20 193 20406 33 473 41 383 11 2:48.50 2:48:48 Space Force 64 3:20:34 3:18:01 Air Force Place Gender Clock Place Time Matary Branch 35 51 94 Net Mitary Time Dranch 3.34.25 3.34.00 Navy 3.43.34 3.41.22 Coast Guard 3:51:31 3:49.16 Army The raw data in the input file, wdwM-military-23.csv, has CSV data separated with a semi- colon (;) in the following order with the corresponding data types. One participant's data will be on each row of data in the input file. NB: The first row of the CSV contains the name or description for every field in all the following rows. label name place gender first name last name bib # age place gender place clock time net time branch distance Table 2.1: Input data:Raw data field names & their data types data type integer character character character character integer integer integer comments HH:MM:SS Official start of the race aka gun time HH:MM:SS Time that the sensor recognizes racer crossing the start line character Army, Navy, Marines, Air Force, Space Force, Coast Guard USA, USN, USMC, USAF, USSF, USCG marathon, half marathon, 5K, 10K, 17.75K, etc. character Notes: 1. The data types are recognizable for most languages. However, there are SQL Specific data types appropriate to the types listed above. Make sure to use the appropriate SQL data types. This is especially true for time. 2. The data fields, branch and distance must be in another appropriately named data table. • branch could be represented using the following acronyms: USAF, USN, USMC, USCG, USSĘ, USA. The branch could be the primary key, and would contain the full name in the record. (This would minimize table sizes of the user data. As a side note there are over 30,000 participants in this race. Hint: This database may be used in future topics and assignments.) • distance could be represented in a table containing the acronym or nickname, the distance in both metric and English numerical units of measure. For example, the marathon is 26.2 miles or 42.195 kilometers. This will facilitate calculations of minutes per mile or kilometer. 3. Make sure to create the database for this assignment to be used for your NID MySQL account. 2.2 Tables Given the input text file contains all the individual competitors user data, it should be organized to optimize the overall table size and to enable quick queries and calculations. The structures for the tables should follow the following outline: 1. Competitor specific data, i.e. place, gender, first name, last name, bib #, age on race day, overall place, gender place, clock time, net time, branch, & distance 2. A table containing the race distance name, metric & English distances. 3. A table containing the military branch acronym and full name, i.e., USN corresponding to US Navy, USA for US Army, etc. It is required that an Entity-Relationship Diagram be submitted as part of the assignment. (It might be helpful to pencil a quick diagram showing the ERD and then use the MySQL EEF tools to generate a more polished ERD.) This database may be used in future topics and assignments. 2.2.1 Relationships There are only two relationships required for this database, as discussed previously, they are described below. The data fields, branch and distance must be in another appropriately named data table. • branch could be represented using the following acronyms: USAF, USN, USMC, USCG, USSF, USA. The branch could be the primary key, and would contain the full name in the record. (This would minimize table sizes.) • distance could be represented in a table containing the acronym or nickname, the distance in both metric and English numerical units of measure. For example, the marathon is 26.2 miles or 42.195 kilometers. This will facilitate calculations of minutes per mile or kilometer. 2.3 Exercises 2.3.1 Queries The following queries need to be written. 1. The 10 fastest females in this race, based on net time. 2. The 10 fastest males in this race, based on net time. 3. The 5 fastest in each gender for each of the military branches. (If there aren't 5 females (or males) in the USCG, then only report the ones in the database.) 4. The 10 runners, regardless of gender or branch, who had the longest wait from the beginning based on a calculation of the difference between clock time to net time. Sorted from longest to shortest time. 5. The top 10, regardless of gender, based on their average minute per mile. The minuter per mile can be calculated in SQL with a bit of research. 3 Documenting the steps Each of the five queries outline above can be run from the MySQL command line. And a screenshot of the results will be sufficient proof of query completion. 3.1 Screenshots 1. Make sure to take a screenshot of the final results of each of the queries, from 1 thru 5. 2. Save the screenshot in a file named YourNID-QryX where QryX is the query number. Submit the screen shots from each step identified above as part of your assignment. The following queries need to be screenshot. 1. The 10 fastest females in this race, based on net time. 2. The 10 fastest males in this race, based on net time. 3. The 5 fastest in each gender for each of the military branches. (For example, if there aren't 5 females (or males) in the USCG, then only report the ones in the database.) 4. The 10 runners, regardless of gender or branch, who had the longest wait from the beginning based on a calculation of the difference between clock time to net time. Sorted from longest to shortest time. 5. The top 10, regardless of gender, based on their average minute per mile. The minuter per mile can be calculated in SQL with a bit of research. 4 Submission instructions You must submit this assignment in Webcourses as file uploads. Note that all submissions will be via Webcourses. Be sure to include the five query result screenshots and the MySQL EER screenshot of the ERD. It is preferred to ZIP your submissions. 5 Grading Scoring will be based on the following rubric:/n


UNIVERSITY of BRADFORD Faculty of Engineering and Informatics Department of Computer Science Enterprise Pro - Coursework: Part A Requirements, specifications and prototype implementation Hand out: Monday 19th February (Week 4) Hand in: Friday, 15th March (Week 8) Assignment weight is 50% of the overall mark. Assignment Description: I. Projects Each team will work for a project with a client (industry sponsor). Based on the preferences expressed by the teams and the brief justification evaluated by the industry sponsors, the projects are allocated to the teams. The clients are interviewed by the teams, and the Requirements and Specifications documents will be produced by the above mentioned deadline. The iterative process of producing the software products will include two (interim and final) delivery stages when the clients and supervisor(s) will provide feedback to each team. Staff members (supervisors) and industry sponsors will assess regularly the progress made by the teams providing feedback. The final product and the associated documentation will be finally delivered and demonstrated in the last week (12) of the semester. II. Activities Each team will produce and deliver project documentation – requirements document; project plan (e.g., Gantt chart), generate meeting minutes with the tasks and responsibilities; and a software system reflecting the requirements and the client's needs. In each case, there is a group activity component and an individual one as well. The marks of individuals might be different in the same group when different measurable outputs have been produced. III. Deliverables Based on the brief description of the systems and the additional information obtained during the interview session each team is expected to submit, by the above mentioned deadline, the following: A. Requirements document: This document must be submitted via Canvas. A.1. Requirements Specifications and (Interim) Prototype Implementation documentation following the structure discussed in lectures and lab notes (weeks 3 and 4): It will include the following: introduction, team expertise, the rationale (reasons) of topic choice, literature review (e.g. simi existing solutions, tools, equipment), functional (and non- functional) requirements, data description, interface, work plan, and reflections on legal, social, ethical and professional issues (LSEPI) and other risk and economic aspects for your project. A.2. Peer-review. You should include a peer-review summarising the contribution of each team member by describing the tasks allocated, achievements, and scoring the contribution (with a grade in the range 1..10, where 1 means minimal contribution and 10 an outstanding one). If a team member does not contribute to the work, a mark of 0 will be given. If the contribution is not partial, then a partial mark will be given. B. The code associated with the interim prototype system resulted from the first iteration: accessible via GitHub (under the Software directory of your GitHub folder). The prototype and code progress to date will be demonstrated to the academic supervisor / the industry sponsor in week 8. C. Weekly meeting minutes of team's activity (presenting task allocations, and progress on tasks both team-level and individual), NDA, and an optional video recording of the prototype functionalities (implemented to date) demonstration (as an optional back-up for the prototype demonstration to the industry sponsor): These must be stored in the Minutes, NDA, Videos folders of your Github repository, respectively). IV. Remarks. The following will be made available by the date indicated above: 1. Names of the deliverables (submitted documents) will be of the form: Requirements Tx (where x is your Team number). 2. The documentation will contain a cover page with team's id (name, number, and flag); members list (full name, UoB#, UoB email address) and project choice. 3. All requested assignment documents must be submitted by only ONE team member on Canvas Assignments section for marking and feedback. V. Marking scheme. A mark out of 100% for CW1 will be made of marks for components A-C with the following weights: CW1= A + B + C A. Requirements Specifications and (Interim) Prototype Implementation (50 marks): 1.1 The following marks will be assigned on quality and meaningfulness for each of: project brief (2.5 marks) introduction of team expertise and rationale of topic choice (2.5 marks) work plan (2.5 marks) peer review (2.5 marks) 1.2 Adequate structure and layout (title; authors; chapters on functions, use cases, data, interface, non-functional aspects/constraints; formatting used consistently): (5 marks) 1.3 Coherent description of the requirements, specifications, functions, non-functional requirements or any constraints captured so far: (10 marks) 1.4 Coherent description of the data (10 marks) 1.5 Coherent description of interfaces design in correlation with functions (5 marks) 1.6 Reflection on legal, social, ethical, security, professional issues of the project, risk and economic aspects, environment awareness (10 marks) B. Interim Prototype (35 marks) 2.1 Significant functionality implemented – either front-end or back-end, or a combination of both; fully functional (30 marks) 2.2 Code well-structured, with comments, OO where is the case; clear separation back-end and front-end (5 marks) C. Team Activity: NDAs, and meeting minutes (15 marks) 3.1 Adequate structure and style of the minutes (as presented in lectures) including task allocation and systematic meeting notes: (12.5 marks) 3.2. NDA (2.5 marks) Remark: The following grading will be used (based on 10-scale): [0-3 marks]: [no/lack of] relevant content [4-5 marks]: satisfactory content lacking consistent details though [6-7 marks]: good consistent content and level of detail [8-10 marks]: significant level of consistency and high level quality of detail 3 Enterprise Pro Learning Outcomes and how these will be achieved: LO1. Demonstrate a sound theoretical understanding of software project development through team work and the practical ability to implement, document and test a relatively complex software product, and reflect on professional, legal and ethical issues. LO2. Contribute to the design and development of a good quality software application through team work. LO3. Work collaboratively to solve problems and develop adequate communication skills. Students work in teams (as mentioned in all LOs), demonstrating 'sound theoretical understanding of software project development '(LO1) by applying software engineering methods to the project development life cycle (illustrated by the requirements – this stage- and testing – next stage- documents, software coding - both stages- and story cards - next stage). Reflection on Legal, Social, Ethical and Professional Issues (LSEPI) and other risk and economic aspects (LO1) should be present in the Requirements and Planning document - this stage. The quality of the software application (LO2) is checked on a regular basis through supervision meetings and assessed by clients and staff members, at the end of each of the two stages. The collaborative work (LO3) is consistently described by team meeting minutes, where project planning - this stage - and task allocation - both stages - are also presented. All these achievements are assessed, as reflected by the assessment marking schemes.


Initial Post DAD 220 For your initial post, address the following: Consider your role as a professional. Use what you have you've learned in this course and this week's supplemental resources to support your answer and guide you as you discuss the following: ● Which database role would you like best for your professional career, and why? What personality traits do you believe will be necessary for that role? What role or career path are you hoping to pursue, and how do you plan on using the skills you've learned in that role? o Which specific skills from this course do you believe will be the most beneficial? o What resources from the course, either supplemental or primary, will you continue to reference? Rubic Directions Overview Your active participation in the discussions is essential to your overall success this term. Discussion questions will help you make meaningful connections between the course content and the larger concepts of the course. These discussions give you a chance to express your own thoughts, ask questions, and gain insight from your peers and instructor. Directions For each discussion, you must create one initial post and follow up with at least two response posts. For your initial post, do the following: • Write a post of 1 to 2 paragraphs. ● Consider content from other parts of the course where appropriate. Use proper citation methods for your discipline when referencing scholarly or popular sources. Criteria Comprehension Discussion Rubric Exemplary Develops an initial post with an organized, clear point of view or idea using rich and significant detail (100%) Proficient Develops an initial post with a point of view or idea using adequate organization and detail Needs Improvement Develops an initial post with a point of view or idea but with some gaps in organization and detail (55%) Not Evident Does not develop an initial post with an organized point of view or idea (0%) Criteria Timeliness Engagement Writing (Mechanics) N/A Exemplary Provides relevant and meaningful response posts with clarifying explanation and detail (100%) Writes posts that are easily understood, clear, and concise using proper citation methods where applicable with no errors in citations (100%) Proficient (85%) Submits initial post on time Submits initial post one day (100%) late (55%) Provides relevant response posts with some explanation and detail (85%) Needs Improvement Writes posts that are easily understood using proper citation methods where applicable with few errors in citations (85%) Provides somewhat relevant response posts with some explanation and detail (55%) Writes posts that are understandable using proper citation methods where applicable with a number of errors in citations (55%) Not Evident Submits initial post two or more days late (0%) Provides response posts that are generic with little explanation or detail (0%) Writes posts that others are not able to understand and does not use proper citation methods where applicable (0%) Total


Respond to at least two of your classmates' posts. Address the following when responding: How can you continue to grow as a professional? Be specific in your answer. What types of professional resources do you find important that you can share with your classmates? Include a URL when possible. ● 8-1 Response Post Directions DADC 220 Your responses should show that you've given thought to what your peers' initial posts stated. Your responses should continue the conversation, offer insights, and ask clarifying questions if necessary. ● Rubic Directions For your response posts, do the following: Reply to at least two classmates outside of your own initial post thread. • In Module One, complete your two response posts by Sunday at 11:59 p.m. Eastern. ● • In Modules Two through Eight, complete your two response posts by Sunday at 11:59 p.m. of your local time zone. • Demonstrate more depth and thought than saying things like "I agree" or "You are wrong." Guidance is provided for you in the discussion prompt. Criteria Comprehension Timeliness Engagement Writing (Mechanics) Discussion Rubric Proficient Exemplary Develops an initial post with an organized, clear point of view or idea using rich and significant detail (100%) N/A Provides relevant and meaningful response posts with clarifying explanation and detail (100%) Writes posts that are easily understood, clear, and concise using proper citation methods where applicable with no errors in citations (100%) Develops an initial post with a point of view or idea using adequate organization and detail (85%) Submits initial post on time Submits initial post one day (100%) late (55%) Provides relevant response posts with some explanation and detail (85%) Writes posts that are easily understood using proper citation methods where applicable with few errors in citations (85%) Needs Improvement Develops an initial post with a point of view or idea but with some gaps in organization and detail (55%) 1st Response Provides somewhat relevant response posts with some explanation and detail (55%) Writes posts that are understandable using proper citation methods where applicable with a number of errors in citations (55%) Not Evident Does not develop an initial post with an organized point of view or idea (0%) Submits initial post two or more days late (0%) Provides response posts that are generic with little explanation or detail (0%) Writes posts that others are not able to understand and does not use proper citation methods where applicable (0%) Total Discussion 8-1 Nicole Salamon As far as my professional career is concerned, I believe I would choose the role of Data Analyst. I would like to get into the Clinical Applications Analyst for EPIC. My background is in radiology, and I currently work with the EPIC Radiant EHR. One would typically work in clinical settings such as healthcare organizations and would also perform troubleshooting, maintenance, and optimization of existing software applications. Having good analytical skills, technical skills, communication skills, and creativity are personality traits that would help within this role. I believe learning sql language will greatly help me to attain my goal professionally. This class has helped me to broaden my analytical skills and my attention to detail. One must pay close attention to the commands they are using in sql language to make sure the commands are correctly entered. Using the Codio testing environment and the reference manual helped me greatly with this course. I used the reference manual several times throughout this course when commands wouldn't work to try to figure out what I was missing. Although it was not easy, I feel I learned a lot in this class. Good luck all. Response 2 8-1 Discussion: Database Professional Roles Steven Clingler If I were to pick a job that works with databases, I would probably choose data analytics. Trying to find information and patterns by running queries in the database doesn't sound like a bad job to have. A person in this field would need to be attentive, calculative and focused to sit and run queries all day and formulate reports. I am looking forward to having a future as a network administrator. This role will likely not require a lot of work with databases as that usually falls under the jurisdiction of a database administrator. However, an understanding of databases is still useful knowledge to have no matter what field of IT you are going into. Understanding how to run commands in SQL is also useful even for an network administrator because that can actually be used when checking networking issues through command prompts. I would like to think that I will still at least use SQL in my future in networking and hopefully the knowledge I have learned in this class will be put to good use.


Lab 4 ADBC2 - Database Design Review Animations Functional Dependencies To access the Database Design Module, go to: http://adbc2.kennesaw.edu/ Normalization Anomalies Functional Dependencies In this section go through the following in the Scenarios section: ► Introduction Help (Read instruction on how to use this sub module) Hospital scenario University scenario Stocks scenario Normalization In this section go through the following in the Scenarios section: Introduction Help (Read instructions on how to create tables and designate Primary Keys) Employee scenario Auto Theft Scenario Property scenario Customer scenario Medicine scenario Anomalies In this section go through the following in the Scenarios section: Introduction Help (Read instruction on how to use this sub module) Insert 1 scenario Insert 2 scenario Update 1 scenario Update 2 scenario Delete 1 scenario Delete 2 scenario Lab 4 ***Submit as a Microsoft Word document in Dropbox area of D2L titled Lab 4 submission *** Functional Dependencies Determine functional dependencies of the follow tables. When stating your answers use standard notation for showing functional dependencies. Example: SKU → SKU_Description, Department, Buyer 1. Consider the table: STAFF MEETING (EmployeeName, ProjectName, Date) The rows of this table record the fact that an employee from a particular project attended a meeting on the given date. Assume that a project meets at most once per day. Also, assume that only one employee represents a given project, but that employees can be assigned to multiple projects. State the functional dependencies only. 2. Consider the table: STUDENT (Number, Name, Dorm, RoomType, DormCost, Club, ClubCost, Sibling, Nickname) Assume that students pay different dorm costs, depending on the type of room they have, but that all members of a club pay the same cost. Assume that students can have multiple nicknames. State the functional dependencies only. 3. Normalize the following table into a set of tables that puts them into 3NF. Write your answer in the standard format: Example of Standard format - STUDENT(Stid, Sname,Classid) 4. The data provided below is in one table. Put the data in this table into 3rd normal form (3NF). [Note: Eid = Employee id, Pid = project id, Mid Manager id] A 1 PetName 2 Kino 3 Teddy 4 Filo 5 AJ 6 Cedro 7 Woolley 8 Buster Eid E01 Type Dog Cat Dog Dog Cat E02 E03 E04 B Cat Dog Ename John p2 p2 p3 a) Identify functional dependencies. Mary Mark Travis b) Normalize the listing into 3NF. Normalization C Breed Std. Poodle Cashmier Std. Poodle Collie Mix Unknown Unknown Border Collie DOB Pid pl ??? Normalize the Veterinary Office List shown in the figure below. D E Owner 27-Feb-05 Marsha Downs 1-Feb-04 Richard James 17-Jul-06 Marsha Downs 5-May-05 Liz Frier 6-Jun-01 Richard James Richard James 11-Dec-00 Miles Trent a) Identify functional dependencies. Pname Eco DBMS Admin Admin Educ. b) Normalize the listing into 3NF. Mid m1 F OwnerPhone 555-123-6788 555-444-0098 555-123-6788 555-444-5596 555-444-0098 555-444-0098 555-999-8861 m2 m2 m1 = G Mname Becky Joe Joe Becky OwnerEmail MD@somewhere.com RJ@somewhere.com MD@somewhere.com LF@somewhere.com RJ@somewhere.com RJ@somewhere.com MT@somewhere.com H Service Ear Infection Nail Clip One year shots Nail Clip Skin Infection Laceration Repair J Date Charge 17-Aug-06 $ 65.00 5-Sep-06 $ 27.50 5-May-06 $ 5-Sep-06 $ 3-Oct-06 $ 5-Oct-06 $ 42.50 27.50 35.00 127.00 5. Normalization Matching. Indicate which normal form, each of the following conditions represents. [1NF, 2NF, 3NF, 4NF] 1) No Partial Dependencies 2) No multi-value attributes 3) No dependency between non-key attributes 4) All attributes are dependent on the key 5) All attributes are dependent on the whole key 6) All attributes are dependent on nothing but the key 7) Similar to BCNF 8) No transitive dependencies 9) For a table to be considered a relation, it must at least satisfy 6. For the following, answer whether Tables are in 3NF? If No, State the normalization rule that is violated. Rules can be: A) No multi-valued attribute B) Not dependent on the whole primary key C) Dependencies between non-key attributes. 1) Employee (ssn, Name, Salary, Address, ListOfSkills) Yes No Violates Rule: 2) Vehicle (LicensePlate, Brand, Model, PurchasePrice, Year, OwnerSSN, OwnerName) Yes No Violates Rule: 3) Employee (ssn, Name, Salary, did) Yes No Violates Rule: Normal Form 4) Customer (Cust_Id, Name, Salesperson, Region) where Salesperson determines Region. Yes No Violates Rule: 5) Component (ItemNo, ComponentNo, ItemName, Quantity) where ItemNo -> ItemName No Violates Rule: Yes


Description: The goal is develop a database for the Wedgewood Pacific Corporation using MS SQL Server. 1. In MS SQL Server, create a new database called WPC. 2. Create the DEPARTMENT and EMPLOYEE tables shown below along with the PROJECT and ASSIGNMENT tables shown on the next page, and set the relationships between the tables explained below: DEPARTMENT Column Name DepartmentName BudgetCode OfficeNumber Phone EMPLOYEE Column Name EmployeeNumber FirstName LastName Department Assignment #4: SQL Statements Phone Email Type nvarchar(35) nvarchar(30) nvarchar(15) No Key Primary Key Type bigint: Identity nvarchar(12) No No nvarchar(35) Key Primary Key nvarchar(25) No nvarchar(25) No Foreign Key nvarchar(12) nvarchar(100) No No Required Yes Yes Yes Yes Required Yes Yes Yes Yes No Yes Remarks Remarks Surrogate Key A. To set a column to be a Primary Key, right-click on the column name (while in the design mode) and select Set Primary Key. B. To set a column as a Foreign Key, right-click on the column name (while in the design mode) and select Relationship. Click the Add button and then click on "Tables and Columns Specification" and then click on the button next to it (with three dots) and complete the relationship by selecting the Primary Key table and under that pick its column name, and match that with the Foreign Key column name in the current table. C. The Department column in the EMPLOYEE and PROJECT tables are both a Foreign Key of the DepartmentName column from the DEPARTMENT table. ProjectID in the ASSIGNMENT table is a Foreign Key of ProjectID in the PROJECT table, and EmployeeNumber in the ASSIGNMENT table is a Foreign Key of EmployeeNumber in the EMPLOYEE table. Notice that ProjectID and EmployeeNumber are also Primary Keys in the ASSIGNMENT table. D. The EmployeeNumber column in the EMPLOYEE table is an Identity column, which means its value will be automatically assigned (AutoNumber). To set it as an Identity column, click on the column name, then go into the properties window below it and scroll to "Identity Specification" and open that property line and click on “(Is Identity)” and then click on the down arrow on the right side and select "Yes". 3. Now create the PROJECT and ASSIGNMENT tables as shown here. Note the Foreign Key relationships in these tables and set them up as explained above. PROJECT Column Name ProjectID Name Department MaxHours StartDate EndDate ASSIGNMENT Column Name ProjectID EmployeeNumber HoursWorked Administration Legal Accounting Finance Production Marketing InfoSystems [AutoNumber] [AutoNumber] [AutoNumber] [AutoNumber] [AutoNumber] [AutoNumber] [AutoNumber] [AutoNumber] [AutoNumber] [AutoNumber] [AutoNumber] [AutoNumber] Type DEPARTMENT Data DepartmentName BudgetCode bigint nvarchar(50) nvarchar(35) float datetime datetime Type bigint bigint BC-100-10 BC-200-10 Human Resources BC-500-10 float BC-300-10 Tom BC-400-10 Mary BC-600-10 Tom BC-700-10 BC-800-10 Ken Rick Rosalie Richard Heather Mary George George 4. Populate the DEPARTMENT and EMPLOYEE tables with the same exact data provided here: James Jacobs Jones Smith Key Primary Key Jones No Foreign Key Nestor No Jackson Brown No No Key Primary Key, Foreign Key Primary Key, Foreign Key OfficeNumber No BLDG01-300 Jackson BLDG01-200 EMPLOYEE Data EmployeeNumber FirstName LastName Department Administration BLDG01-100 Numoto BLDG01-140 BLDG01-180 BLDG02-100 BLDG02-200 BLDG02-270 Abernathy Bandalone Legal Caruthers Accounting Accounting Required Yes Finance Yes Yes Production Yes Production No No Required Yes Yes Administration No Phone Marketing InfoSystems InfoSystems Remarks Long Integer Double Remarks Long Integer Long Integer Do 360-285-8100 360-285-8200 Phone 360-285-8300 360-285-8400 360-285-8500 360-287-8600 360-287-8700 360-287-8800 360-285-8110 MJacobs@WPC.com 360-285-8120 RJackson@WPC.com 360-285-8210 360-285-8310 Email Human Resources 360-285-8510 GSmith@WPC.com RBandalone@WPC.com 360-285-8320 HJones@WPC.com TCaruthers@WPC.com 360-285-8410 MAbernathy@WPC.com 360-287-8620 360-287-8710 360-287-8610 TJackson@WPC.com GJones@WPC.com KNumoto@WPC.com JNestor@WPC.com 360-287-8820 RBrown@WPC.com 5. Populate the PROJECT and ASSIGNMENT tables with the following data: PROJECT Data ProjectID Name 1000 1100 1200 1300 1400 1000 1000 1000 ASSIGNMENT Data ProjectID 1100 1100 1100 1200 1200 1200 1300 1300 1300 1400 1400 2008 Q3 Product Plan 1400 2008 Q3 Portfolio Analysis 2008 Q3 Tax Preparation 2008 Q4 Product Plan 2008 Q4 Portfolio Analysis EmployeeNumber 1 8 10 4 6 1 4 5 1 8 10 4 5 6 Department MaxHours Marketing Finance Accounting Marketing Finance HoursWorked 30.0 75.0 55.0 40.0 45.0 25.0 20.0 45.0 40.0 35.0 80.0 50.0 15.0 10.0 27.5 135 120 145 150 140 StartDate 05/10/08 07/05/08 08/10/08 08/10/08 10/05/08 EndDate 06/15/08 07/25/08 10/25/08 09/15/08 6. Develop SQL queries (in one script) to answer the following questions A through L: A. What projects are in the PROJECT table? Show all information for each project. B. What are the ProjectID, Name, StartDate, and EndDate values of projects in the PROJECT table? C. What projects in the PROJECT table started before August 1, 2008? Show all the information for each project. D. What projects in the PROJECT table have not been completed? Show all the information for each project. E. Who are the employees assigned to each project? Show ProjectID, Employee-Number, LastName, FirstName, and Phone. F. Who are the employees assigned to each project? Show the ProjectID, Name, and Department. Show EmployeeNumber, LastName, FirstName, and Phone. G. Who are the employees assigned to each project? Show ProjectID, Name, Department, and Department Phone. Show Employee Number, LastName, FirstName, and Employee Phone. Sort by ProjectID in ascending order. H. Who are the employees assigned to projects run by the marketing department? Show ProjectID, Name, Department, and Department Phone. Show Employee Number, LastName, FirstName, and Employee Phone. Sort by ProjectID in ascending order. I. How many projects are being run by the marketing department? Be sure to assign an appropriate column name to the computed results. J. What is the total MaxHours of projects being run by the marketing department? Be sure to assign an appropriate column name to the computed results. K. What is the average MaxHours of projects being run by the marketing department? Be sure to assign an appropriate column name to the computed results. L. How many projects are being run by each department? Be sure to display each DepartmentName and to assign an appropriate column name to the computed results. Note: Place a comment block at the top of your script file: /* /* Name: /* Class: /* Term: /* Assgn #: /*****. CS3410 Spring 2021 4 *** / * 1 ·1 * </ ·*****/ And before each answer, add a comment line with the question number such as: /* A */ Save the list of answers (A-L) in your script to a .sql file, call it “A4-<Your-last-name>.sql". For example, John Smith's script file would be named “A4-Smith.sql”. Submit .sql file in dropbox area of D2L labled Assignment 4 Submission.


ADMN 873, Structured Data Relational Database Structure & SQL Queries <Edit this document for your submission. Instructions provided with the questions on what to submit.> This assignment uses the classicmodels database, a database maintained by a company that sells scale-model replicas of classic cars. You will be examining this database, addressing some questions, and then writing SQL queries to obtain information from the database. Brief descriptions of the tables follow: ● Customers: stores customer's data. ● Products: stores a list of scale model cars. ProductLines: stores a list of product line categories. Orders: stores sales orders placed by customers. OrderDetails: stores sales order line items for each sales order. ● ● ● ● ● Name: ● Payments: stores payments made by customers based on their accounts. Employees: stores all employee information as well as the organization structure such as who reports to whom. Offices: stores sales office data. Figure 1 shows the ERD; Figure 2 lists the tables. Preparations Go to http://myisba.org/admn873/ and log in using the username and password you were provided via email. This assignment uses the myisba44_rbg_classicmodels database. Submit ● Submit this edited Word file. Please rename to be HW06_lastname_firstname.docx. productlines *productLine textDescription htmlDescription image employees * employeeNumber lastName firstName extension email officeCode reports To job Title offices * officeCode city phone addressLine1 addressLine2 state country postalCode territory Figure 1. ERD for classicmodels Filters Containing the word: Table customers employees offices orderdetails orders payments productlines products 8 tables Action HHH Sum Check all Query With selected: Server: localhost: 3306 » Database: rogerg81_classicmodels_01 Structure SQL Search *productCode productName productLine productScale productVendor product Description quantityInStock buyPrice MSRP Print Data dictionary Figure 2. Listing of tables for classicmodels products customerNumber customerName contactLastName contactFirstName city state phone addressLine1 addressLine2 customers postalCode country salesRepEmployeeNumber creditLimit Export Browse Structure Search Insert Empty Drop Browse Structure Search Insert Empty Drop Browse Structure Search Insert Empty → Drop Browse Structure Search Insert Empty Drop Browse Structure Search Insert Empty Drop Browse Structure Search Insert Empty Drop Browse Structure Search Insert Empty Drop Browse Structure Search Insert Empty Drop Import Operations HH +H +H OH eH Routines orderdetails orderNumber *productCode quantityOrdered priceEach orderLineNumber orders orderNumber orderDate required Date shippedDate status comments customerNumber payments customerNumber * checkNumber paymentDate amount Events Triggers Rows Type Collation Size Overhead 122 InnoDB latin1_swedish_ci 32 KiB 23 InnoDB latin1_swedish_ci 48 KiB 7 InnoDB latin1_swedish_ci 16 KiB 2,996 InnoDB latin1_swedish_ci 32 KiB 326 InnoDB latin1_swedish_ci 64 KiB 273 InnoDB latin1 swedish_ci 16 KiB 7 InnoDB latin1_swedish_ci 16 KiB 110 InnoDB latin1_swedish_ci se KiB 3,864 InnoDB utf8_general_ci 304 KiB 0 B Designer Part 1. Database Structure (assess navigation of database, relational database concepts) Question 1.1. (answer by filling in the table) How many unique products are there? How many units are in inventory of the "1968 Dodge Charger?" What country is the customer "Baane Mini Imports" in? Question 1.2. (answer by filling in the table) What is the cardinality of the productlines to products relationship? Question 1.3. Complete the information about the primary and foreign key(s) of the customers and orderdetails table. Note that a table can have more than one foreign key. You may not need all the space in the table. If you need more space, insert/add rows as required. Primary Key Table customer orderdetails Foreign Key (FK) FK Related Table Part 2. Database (SQL) Queries Instructions: Please add your responses to these questions. For each question, include a) SQL code (as text, not an image); b) total number of rows in the result set (not just what shows on the first screen); and c) a screen shot of the phpMyAdmin window. Keep the question text and the full response on the same page (repaginate as necessary, and note that Ctrl-Enter inserts a page break in Word). Make sure the screen shots include the database name, the SQL query, the number of total rows, and the actual results. For queries resulting in more than 25 results (the default shown on the screen), just take a screen shot of the first page of results and include that). An example is provided. General hints: Keep a text file of your SQL statements separate from MySQL, and copy/paste between the text editor and MySQL. Start each query clause (e.g., SELECT, FROM, WHERE, ...) on a separate line, IN ALL CAPS, and end the query with “;”. When you have finalized the query, copy/paste the correct query back to the text editor and to the place provided in this document. Refer to the ERD often to understand the logical relationships. The question may ask for several conditions. Start out with a basic query, and then add clauses and conditions to the query to match what is being asked for. This incremental approach tends to make building and debugging queries easier, and helps you to verify that what the query is providing as a result is indeed what is being asked. EXAMPLE (to show format for submission) Question 0: List the first name, last name, email address, and extension (in this order of fields) for all employees. Note: I have circled some items on this screen shot; you don't need to do that on yours. SELECT firstName, lastName, email, extension FROM employees; 23 Query Number Rows in Result Server: localhost:3300 Database: rogerg81_classicmodels_01 > Table: employees Browse SQL Search ✓ Showing rows 0-22 (23 total, Query took 0.0051 seconds.) SELECT firstName, lastName, email, extension FROM employees Show all Number of rows: 25 + Options firstName lastName email Diane Murphy Mary Patterson Firrelli Jeff Jeff William Patterson Gerard Bondur Anthony Bow Leslie Jennings Leslie Julie Thompson Firrelli Patterson Tseng Vanauf Bondur Steve Can Foon Yue A Current selection does not contain a unique column. Grid edit, checkbox, Edit, Copy and Delete features are not available. George Dow Loui Gerard Pamela Structure Castillo Bott Bott Larry Barry Jones Andy Fixter Peter Tom extension X5406 X5420 dmurphy@classicmodelcars.com x5800 mpatterso @classicmodelcars.com x4611 jfirrelli@classicmodelcars.com x9273 wpatterson@classicmodelcars.com x4871 gbondur@classicmodelcars.com x5408 abow@classicmodelcars.com x5428 ljennings@classicmodelcars.com x3291 X3291 Ithompson@classicmodelcars.com x4065 jfirrelli@classicmodelcars.com x2173 spatterson@classicmodelcars.com x4334 ftseng@classicmodelcars.com x2248 gvanauf@classicmodelcars.com x4102 6402 Ibondur@classicmodelcars. x6493 Hernandez_ghernande@classicmodelcars.com x2028 il classicmodelcars.com pcastillo@classicmodelcars.com x2759 Ibott@classicmodelcars.com 2311 biones@classicmodelcars.com ✓102 X102 afixter@classicmodelcars.com x101 2249 4402 2759 Marsh pmarsh@classicmodelcars.com X102 x101 x102 tking@classicmodelcars.com x103 mnishi@classicmodelcars.com x101 ykato@classicmodelcars.com x102 mgerard@classicmodelcars.com x2312 King Nishi Mami foshimi Kato Martin Gerard Insert Show all Number of rows: 25 Y Export Filter rows: Search this table Import Filter rows: Search this table Operations 28 Triggers Sort by key: None Sort by key: None One-Table Queries Question 2.1. Similar to above (Question 0), but also show the jobTitle. Name the columns (in this order) "First Name," "Last Name", "Title," "Email", and "Phone Ext". Only show the employees in office number (code) 1. Hint: Use the AS clause to create the aliases. Order the list alphabetically by last name, then first name. Query Number Rows in Result Screenshot (paste below):


No Question Found for“Dbms”

we will make sure available to you as soon as possible.