Question

In: Computer Science

For this assignment, pretend you have been hired by a school district to create an application...

For this assignment, pretend you have been hired by a school district to create an application enabling access to educational videos freely available on the Internet.

For examples of places where these videos are available, check out this page:

https://www.refseek.com/directory/educational_videos.html (Links to an external site.).

For this assignment, you are responsible for developing a database schema (both conceptual and physical) to support this application. The schema must support the following application features:

  1. It should be possible to efficiently search the application for videos, filtering on the following characteristics:
    • Title (required)
    • Keywords (note that a video may have multiple keywords)
    • Length of Video (required)
    • Appropriate Grade Level (optional)
    • Video Source (i.e. which of the sites referenced on the page above houses the video. required.)
  2. It should be possible for teachers to comment on videos. Each comment should have the following fields:
    • Timestamp (required)
    • Name of teacher (optional)
    • Rating (1 to 5 stars, optional)
    • Text of comment (required)

The submission for this assignment should include the following artifacts:

  • An entity-relationship diagram for the conceptual schema. You can do this on paper or whiteboard and submit a photograph, or do it using diagramming software and submit a screen shot or PDF. (Please do not submit a file in the diagramming software's native format.)
  • A physical schema in the form of SQL CREATE TABLE statements. Please submit the SQL and not the database file (or files) itself.
  • SQL INSERT statements creating at least 3 sample video records, each of which should have at least 2 keywords. Note that you will need to insert into multiple tables for each record if the assignment was done correctly.

This assignment can be completed adequately using as few as four tables. Your schema may end up with more tables and that is fine, but if you end up with more than 7-8 tables there is a good chance you are overthinking things.

Solutions

Expert Solution

The query details are given below the ER diagram, you can add sensible data, I just updated some sample data only into the fields.

Following is the ERD diagram

Following is the create table details

Create query for the table SchoolDistProfile(to save the school district details.)

CREATE TABLE SchoolDistProfile (
SchoolDistID int(11) NOT NULL,
SchoolDistName varchar(100) NOT NULL,
PRIMARY KEY (SchoolDistID)
);

Create query for the table VideoProfile (to save the video basic details)
CREATE TABLE VideoProfile (
VideoID int(11) NOT NULL,
SchoolDistID int Not NULL,
VideoTitle varchar(100) Not NULL,
VideoLength Time Not NULL,
AppGradeLevel int DEFAULT NULL,
VideoSource varchar(100) DEFAULT NULL,
PRIMARY KEY (VideoID),
foreign key (SchoolDistID) references SchoolDistProfile(SchoolDistID)
);

Create query for the table VideoKeywordDet (to save the keyword details against the video)

CREATE TABLE VideoKeywordDet (
keywordID int(11) NOT NULL,
VideoID int NOT NULL,
keyword varchar(150) Not NULL,
PRIMARY KEY (keywordID),
foreign key (VideoID) references VideoProfile(VideoID)
);

Create query for the table VideoCommentDet (to save the comment details)
CREATE TABLE VideoCommentDet (
CommentID int(11) NOT NULL,
VideoID int NOT NULL,
CommentText varchar(1000) Not NULL,
CommentTimeStamp Time Not NULL,
TeacherName varchar(100) Not NULL,
Rating1to5 int DEFAULT NULL,
PRIMARY KEY (CommentID),
foreign key (VideoID) references VideoProfile(VideoID)
);

Query for Insert into table SchoolDistProfile:
INSERT INTO
   SchoolDistProfile(SchoolDistID, SchoolDistName)
VALUES
   (1,'Arizona Dist');
  
Query for Insert into table VideoProfile:
INSERT INTO
   VideoProfile( VideoID, SchoolDistID, VideoTitle, VideoLength, AppGradeLevel, VideoSource)
VALUES
   (1,1,'Story Video1','14:00','1','https://videosource.com/video123'),
(2,1,'Story Video2','12:00','5','https://videosource.com/video245'),
(3,1,'Story Video3','11:00','6','https://videosource.com/video689');
  

Query for Insert into table VideoKeywordDet:
INSERT INTO
   VideoKeywordDet(keywordID,VideoID,keyword)
VALUES
   (1,1,'Video1keyword1'),
(2,1,'Video1keyword2'),
(3,2,'Video2keyword1'),
(4,2,'Video2keyword2'),
(5,2,'Video3keyword1'),
(6,2,'Video3keyword2');
  

Query for Insert into table VideoCommentDet:
INSERT INTO
   VideoCommentDet(CommentID, VideoID, CommentText, CommentTimeStamp, TeacherName, Rating1to5)
VALUES
   (1,1,'video for lower grade students', '18:00',null,4),
(2,3,'Nice Video informative', '15:00','b',5);


Related Solutions

Pitch Deck Overview You have been hired to create a website. In this assignment, you will...
Pitch Deck Overview You have been hired to create a website. In this assignment, you will begin to gather the necessary information to complete the work and present your ideas to your client. Instructions You will need to answer the following questions: What kind of domain names will you register (that is .com, .biz, .net, et cetera)? Why do you suggest this kind of domain? (Review the section in Week 1 on domain names.) Will you register the site using...
the leading causes of death in the world. Pretend you have been hired by the WHO...
the leading causes of death in the world. Pretend you have been hired by the WHO to address one of these causes. Write a one-page, typed paper discussing the cause of death you have chosen to address, why you chose it, and three ideas you have for addressing it. You will need to do some additional reading to determine health promoting activities/strategies that reduce the risk of your choice.  
Pretend that you have been put on a committee at school or college that must decide...
Pretend that you have been put on a committee at school or college that must decide whether to start random drug testing at school or college and that students must agree to this in order to remain enrolled. Using information from the text about marijuana, alcohol and opioids, briefly describe how each could affect a student's behavior on campus and also off campus when completing homework. Then write your own opinion as to why you think this could be a...
Pretend that you have been put on a committee at school or college that must decide...
Pretend that you have been put on a committee at school or college that must decide whether to start random drug testing at school or college and that students must agree to this in order to remain enrolled. Using information from the text about marijuana, alcohol and opioids, briefly describe how each could affect a student's behavior on campus and also off campus when completing homework. Then write your own opinion as to why you think this could be a...
IT Consulting Proposal For this assignment, assume you have been hired by Kris Corporation as an...
IT Consulting Proposal For this assignment, assume you have been hired by Kris Corporation as an Information Technology consultant. Kris Corporation manufacturers parts for the automotive industry. Your job is to submit a proposal that meets their criteria (listed below) based on information provided. You may fill in any gaps in the specifications provided by making assumptions. All assumptions should be clearly identified. Current Implementation and Concerns: Parent domain (kris.local) and child domain (corp.kris.local) for the organization's AD infrastructure are...
You are hired as the superintendent in a local student district, and you have to decide...
You are hired as the superintendent in a local student district, and you have to decide how to allocate money between textbooks and computers. A. What is the optimal allocation rule you should follow when deciding how many textbooks and computers to provide? B. Suppose the price of computers decreases. How does the optimal allocation of computers change? Assume that both textbooks and computers have diminishing marginal returns. Use the optimal allocation rule as a guide.
. You have been hired as a food service manager in school cafeteria ,As food service...
. You have been hired as a food service manager in school cafeteria ,As food service manager and dietitian kindly explain how you supervise and fulfill following tasks.  (one paragraph ) a. How you will take Precaution for safe food production b. How you will Evaluating menus for different age group children c. write down any 4 factors you will keep in mind while designing menu for schools
Data Scenario: You have just been hired into a management position which requires the application of...
Data Scenario: You have just been hired into a management position which requires the application of your budgeting skills. You find out that budgeting has not been a priority of the company and that they have been experiencing cash shortages. You have contacted various areas on the organization and have accumulated the information below to assist you in preparing a comprehensive budget.                                                                                                                               The following is actual information that relates to the operations of a merchandiser named Sled Company, a wholesaler...
Data Scenario: You have just been hired into a management position which requires the application of...
Data Scenario: You have just been hired into a management position which requires the application of your budgeting skills. You find out that budgeting has not been a priority of the company. You have contacted various areas on the organization and have accumulated the information below to assist you in preparing a comprehensive budget. Manufacturing Inc. produces a part used in the production of engines. Actual Sales and Projected sales in units: March (Actual) 38,000 April 40,000 May 50,000 June...
You have just been hired into a management position which requires the application of your budgeting...
You have just been hired into a management position which requires the application of your budgeting skills. You find out that budgeting has not been a priority of the company. You have contacted various areas on the organization and have accumulated the information below to assist you in preparing a comprehensive budget. Manufacturing Inc. produces a part used in the production of engines. Actual Sales and Projected Sales in Units: March (Actual) ......... 38,000 April ..........44,000 May ........... 45,000 June...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT