Two students

Get Ready for Exams

Learn how to create secure exams, prevent cheating and more!

web assignment 2

LMS Integration Update!

This fall, you’ll be able to push a button and send a 0 to your LMS gradebook for un-attempted student work in WebAssign .

Get the Details

web assignment 2

New Instructor Experience

We're making teaching in WebAssign easier with instructor experience improvements, including a more intuitive site navigation and assignment-creation process.

webassign

Boost Student Motivation & Engagement

Do your students need motivation? Find new ways to engage them in your classroom with active learning.

Two students

The New Instructor Experience is Coming!

Teaching will be easier this fall with instructor experience improvements including a more intuitive site navigation and assignment-creation process. Learn More

Create the Path to Student Success

In the spotlight.

Superhero cartoon drawing

Stats Personality Quiz

Are you a Meanie, Super Anova, or a Bootstrapper? Find out your Stats personality and which title is right for you! Take Quiz

EVENTS

Events & Recordings

Get the most out of your course in WebAssign with live and recorded webinars that provide peers tips and best practices. Explore More

Cengage unlimited logo

Cengage Unlimited

Unlimited access to quality, affordable course materials.

Join a Community Of Your Peers

Two females and one male profile picture inside circle

Become a Power User

Learn new tips and stay-in-the know with   expert advice , platform updates and current news on the WebAssign blog.   CHECK IT OUT

Students with flags

Stand Out as a Student Ambassador

Make an impact on campus and in your community—while standing out to future employers—by becoming a Student Ambassador. LEARN MORE

Ready to Get Started?

Contact Us Sign In

  • WebAssign/Cengage
  • Centennial Campus, 1791 Varsity Dr., Suite 200
  • Terms of Use
  • Our Partners

Subscribe to our Newsletter

Get the latest tips, news, and developments.

CSE 340 Banner Image

Assignment 2

This assignment has two tasks. Task one asks you to practice writing and running SQL statements that involve CRUD interactions. Task two is to practice building a database, with types and tables and populating the tables with data.

When done you will have created...

  • A sql file containing six queries as described in Task One.
  • A sql file containing all the code to create a PostgreSQL type, three tables and insert statements to populate two of the tables, built during the activities.

This video demonstrates and describes what the Task Two video could look like. This is the Transcript of the video.

Assumptions

This assignment assumes:

  • you successfully completed the lesson activities.
  • you created and saved the SQL file of CREATE, ALTER and INSERT statements for the course database.

Task One - Write SQL Statements

The Introduction to SQL reading activity contains sample SQL statements for Selecting, Inserting, Updating and Deleting data from database table(s), you should have carefully reviewed these as part of this week's preparations. Based on the reading:

  • Create a new assignment2.sql file inside the database folder of your project.
  • Build and test your SQL statements in pgAdmin or SQLTools using the course database.
  • Whenever writing a SELECT, UPDATE or DELETE query for a single record, use the primary key value in the "WHERE" clause to avoid changing or selecting the incorrect record.
  • When your statements are working correctly, store them into the assignment2.sql file.
  • Insert the following new record to the account table Note: The account_id and account_type fields should handle their own values and do not need to be part of this query. : Tony, Stark, [email protected], Iam1ronM@n
  • Modify the Tony Stark record to change the account_type to " Admin ".
  • Delete the Tony Stark record from the database.
  • Modify the "GM Hummer" record to read "a huge interior" rather than "small interiors" using a single query. Explore the PostgreSQL Replace function Do NOT retype the entire description as part of the query. . It needs to be part of an Update query as shown in the code examples of the SQL Reading - Read Ch. 1, section 3.
  • Use an inner join to select the make and model fields from the inventory table and the classification name field from the classification table for inventory items that belong to the "Sport" category. These resources may help you: https://www.postgresqltutorial.com/postgresql-tutorial/postgresql-joins/ . Two records should be returned as a result of the query.
  • Update all records in the inventory table to add "/vehicles" to the middle of the file path in the inv_image and inv_thumbnail columns using a single query. This reference may prove helpful - https://www.postgresqltutorial.com/postgresql-string-functions/postgresql-replace/ . When done the path for both inv_image and inv_thumbnail should resemble this example: /images/vehicles/a-car-name.jpg
  • When done with the six queries, copy and paste queries 4 and 6 from the assignment 2 file to the database rebuild file, at the bottom of that file. Make sure these two queries are the last thing to run when the rebuild file is complete. By the end you should have two files - one with the 6 queries from Task 1, and the second with all the queries to rebuild your database, along with copies of the 4th and 6th queries from Task 1.

Task Two - Destroy and Rebuild the Database

You should already be aware that Render.com removes free-tier databases after 90 days. Therefore, it is critical that you know how to restore your database when that happens. Task two requires you to go through the entire process manually, so you know how to do it again when the time comes. This is entirely for your benefit. Be sure you do the process on your own.

  • Destroy the database service in the Render.com dashboard by clicking on the database service, scrolling to the bottom and clicking "Delete Database" and following the provided directions.
  • Create a new database following the directions from this unit as needed. The database name cannot be the same as the old one, but can be similar.
  • Delete the existing connection to the remote database in the local tool: pgAdmin or SQLTools.
  • Create a new connection between the database and one of the local tools: pgAdmin or SQLTools.
  • Run the SQL code (you should already have all these queries stored in the database folder of your project), as a set of queries, run at the same time, to build the Type object, the three tables, and populate the classification and inventory tables. And, the copies of queries 4 and 6 from Task 1, should be run as the last items in the restore file.
  • Test that the structures and data exist.
  • Work with your learning team to help one another to accomplish each task and post to and read the weekly discussion board to help one another. Remember that each individual is responsible for her or his own work, this is not a group project.
  • Check your work to ensure that it meets all the expectations listed.
  • Upload the project to your GitHub repository and copy the URL to the repository.
  • Submit the production URL AND the GitHub repository URL as a comment in the assignment submission.
  • Note: Even though the production server does not change with this assignment, submit the production URL for consistency.

Grading Matrix

Objective 4.

  • All Task 1 SQL statements are in a single file, named assignment2.sql within a folder named database .
  • The Tony Stark insert SQL statement works.
  • The Tony Stark update SQL statement works.
  • The delete Tony Stark SQL statement works.
  • The description update SQL statement works.
  • The select query using a JOIN SQL statement works.
  • The inv_image and inv_thumbnail update query works.
  • The SQL file containing all queries to build the type, tables and insert data is present and works.
  • Obj. 4 value: Refer to grade book

Objective 6

  • The GitHub and production URL's must be present and correct for assignment 2 to be graded.
  • The files for Tasks 1 and 2 are both present and complete in the "database" folder within the GitHub repository.
  • Obj. 6 value: Refer to grade book

Two students

Mastery in WebAssign

Build student confidence with multiple opportunities to practice course topics with the latest WebAssign improvement: Mastery .

web assignment 2

Join the Summer of Learning

Join us for a variety of sessions on July 16 - 18, 2024, where you’ll gain valuable insights and best practices to address your top teaching challenges such as readiness gaps, Artificial Intelligence, and student engagement with WebAssign.

Register Now

webassign

Boost Student Motivation & Engagement

Do your students need motivation? Find new ways to engage them in your classroom with active learning.

Two students

The New Instructor Experience is Coming!

Teaching will be easier this fall with instructor experience improvements including a more intuitive site navigation and assignment-creation process. Learn More

Create the Path to Student Success

In the spotlight.

web assignment 2

New in WebAssign

Make the most out of your WebAssign experience with new platform features and content. Explore Updates

EVENTS

Events & Recordings

Get the most out of your course in WebAssign with live and recorded webinars that provide peers tips and best practices. Explore More

Cengage unlimited logo

Cengage Unlimited

Unlimited access to quality, affordable course materials.

Join a Community Of Your Peers

Two females and one male profile picture inside circle

Become a Power User

Learn new tips and stay-in-the know with   expert advice , platform updates and current news on the WebAssign blog.   CHECK IT OUT

Students with flags

Stand Out as a Student Ambassador

Make an impact on campus and in your community—while standing out to future employers—by becoming a Student Ambassador. LEARN MORE

Ready to Get Started?

Contact Us Sign In

  • WebAssign/Cengage
  • Centennial Campus, 1791 Varsity Dr., Suite 200
  • Terms of Use
  • Our Partners

Subscribe to our Newsletter

Get the latest tips, news, and developments.

IMAGES

  1. Web Assignment 2

    web assignment 2

  2. Assignment 2

    web assignment 2

  3. WEB-assignment by NK

    web assignment 2

  4. Solved INFSYS1800 HTML Web Page Assignment 1. Create an HTML

    web assignment 2

  5. Assignment-2

    web assignment 2

  6. HTML Assignments for Beginners

    web assignment 2

COMMENTS

  1. WebAssign

    WebAssign. Learn how to create secure exams, prevent cheating and more! This fall, you'll be able to push a button and send a 0 to your LMS gradebook for un-attempted student work in. We're making teaching in WebAssign easier with instructor experience improvements, including a more intuitive site navigation and assignment-creation process.

  2. Web Assignment 2

    web assignment 2 - Free download as PDF File (.pdf), Text File (.txt) or read online for free. This document provides instructions for designing webpages to practice different HTML tags and attributes. It lists tags like , , and various types to include. It also lists attributes for positioning and styling elements using CSS box model concepts like margin, padding, and border.

  3. Assignment-2

    Assignment-2 - Web assignment 2. Web assignment 2. Course. Principles of Web Programming (WEB222) 104 Documents. Students shared 104 documents in this course. University Seneca College. Academic year: 2022/2023. Uploaded by: Devansh Rajpara. Seneca College. 0 followers. 1 Uploads. 0 upvotes. Follow.

  4. Web Design & Development

    This simplifies communication inside the team and helps keep a clear overview of the improvement proces: e Each issue gets a priority level from urgent to low, which the development team then resolves based on time and people available. Step five: verifying fixes Page 27. Download Assignments - Web Design & Development - Assignment 2 (P&M&D ...

  5. Assignment 2 for Enterprise Web Development module

    WIT HDip Computer Science - Assignment 2 Enterprise Web Development This project demonstrates a simple point of interest (POI) web application. Completed to good standard of marking rubric. Technology stack used: UI - handlebars, uikit. Components - mongoose, dotenv, cloudinary. Framework - hapi, inert, vision, cookie, boom.

  6. Web Assignment 2

    Web Assignment 2. Please note that this assignment is for Section C by Professor Brain. Course. Differential Calculus With Applications To Physical Sciences And Engineering (MATH 100) ... Assignment Webwork-Assignment-2 due 09/29/2022 at 11:59pm PDT. Problem 1. (1 point) Consider the functions.

  7. WEB Assignment 2

    WEB Assignment 2 - Free download as Word Doc (.doc / .docx), PDF File (.pdf), Text File (.txt) or read online for free.

  8. Assignment 2

    When done with the six queries, copy and paste queries 4 and 6 from the assignment 2 file to the database rebuild file, at the bottom of that file. Make sure these two queries are the last thing to run when the rebuild file is complete. By the end you should have two files - one with the 6 queries from Task 1, and the second with all the ...

  9. I-am-Harsh/Using-Python-to-Access-Web-Data

    Contribute to I-am-Harsh/Using-Python-to-Access-Web-Data development by creating an account on GitHub. Coursera Course. Contribute to I-am-Harsh/Using-Python-to-Access-Web-Data development by creating an account on GitHub. ... The answers to each programming assignment and Quiz is uploaded in each week. Instruction to use programming codes -

  10. Web Assignment 2 (Graded 66%) (docx)

    Question #1: Average for Website 1: =AVERAGE (A2:A37) is 10499.97222 Standard deviation for Website 1:=STDEV.S (A2:A37) is 110.2398647 Average for Website 2 is 10977.69444 Standard deviation for Website 2 is 132.6179948 Question #2: Yes, based on the data entered, Website 2 has 17,198 more views in total.

  11. Web Development Assignment 2

    Web Development Assignment 2 What have I been asked to do in this assignment? I have been asked by a small, local business based in Reepham, Norfolk to create a website for them to help expand their online presence and promote the products the company must sell.

  12. WebAssign

    Password Forgot your password? Log In. Trouble Logging In? Students: If your instructor gave you a Class Key, add yourself to that class here. I Have a Class Key. WebAssign/Cengage. Centennial Campus, 1791 Varsity Dr., Suite 200. Raleigh.

  13. PDF Web assignment 2

    AC213: Web Project Assignment #2 Completion Information. A bibliography page consisting of a properly formatted list of six or more works, including at least one book and at least one journal article, that you have identified as potentially useful for your research. This page should be called <bibliography.html>.

  14. WebAssign

    Flexibility at Every Step Build student confidence, problem-solving and critical-thinking skills by customizing the learning experience. Explore Features The Right Content at the Right Time Enable deeper learning with expertly designed, well researched and time-tested content. Learn More Improved Access through Affordability Support student success by choosing from an array of options to ...

  15. assignment-2 ¡ GitHub Topics ¡ GitHub

    Apollo-Level2-Web-Dev / L2-B2-assignment-2 Star 5. Code Issues Pull requests Assignment-2 (Batch-2) assignment assignment-2 assignment2 batch-2 Updated Nov 22, 2023; BestKora / Calculator-II-cs193p-2017- Star 2. Code Issues Pull requests Solution Assignment 2 Calculator Brain CS193P 2017 ...

  16. WEB222 assignment 2 observations file

    WEB222 - Assignment 02; I declare that this assignment is my own work in accordance with; Seneca Academic Policy. No part of this assignment has been; copied manually or electronically from any other source (including web sites) or distributed to other students. Please update the following with your information: Name: <YOUR_NAME>

  17. CS253

    Assignment 2 - Oh What a Tangled Web We Weave 🕸. Points: 75; Due: Friday, October 29 at 5:00pm; Welcome to Assignment 2 for CS 253: Web Security. . Short Answer Questions. Your answers should be concise. Unless otherwise specified, keep answers to 100 words or fewer. Code Injection

  18. CS253

    This assignment is built around Gruyere /ɡruːˈjɛər/ - a small, cheesy web application that allows its users to publish snippets of text and store assorted files. "Unfortunately", Gruyere has multiple security bugs ranging from cross-site scripting and cross-site request forgery, to information disclosure, denial of service, and remote code ...

  19. PDF A s s i gnm e nt 2: C S 106L W i ki R a c e r

    Assignment 2: CS106L WikiRacer. Tuesday, 13th November, 11:59pmIntroduction:Human b. ngs are obsessed with finding patterns. Whether it be in the depths of mathematical study or the playground of hobbies like Chess and Sudoku, it is clear that the human race enjoys engaging with th.

  20. GitHub

    WEB322 - Assignment 2. This project is just a basic demonstration of Node.js. The following is demonstrated with this project: Responding to GET requests with an html file. Responding to GET requests with JSON code. Assignment 3 builds upon this webapp. Go check it out!

  21. Assignments

    Assignments | Coding Assignment 2 | FLEXBOX | NxtWave | CCBP 4.0 Responsive Web Design using Flexbox #pythonprogramming #python #ccbp #nxtwave #foundation #f...