Introduction to Structured Query Language (SQL)
COLLABORATOR CHANNELS
YOUCOURSE - COURSES FROM BEST UNIVERSITYS IN THE WORLD - https://www.youtube.com/@YouCourse
ARQUITECTURAS - ARCHITECTURE CHANNEL, DOCUMENTALS AND MORE - https://www.youtube.com/@ArquitecturasYT
CADESIGNERS - SOFTWARE CHANNEL AND MODELS - https://www.youtube.com/@CADesigners
UNDERGROUND - Subscribe! Free Music - Creative Commons - https://www.youtube.com/@UndergroundMC
FACEBOOK GROUPS
ARQUITECTURAS - ARCHITECTURE CHANNEL - https://www.facebook.com/groups/arquitecturasyt
YOUCOURSE - COURSES FROM BEST UNIVERSITYS IN THE WORLD - https://www.facebook.com/groups/youcourse/
CADESIGNERS - SOFTWARE DESIGN CHANNEL - https://www.facebook.com/groups/cadesignersyt
UNDERGROUND - Free Music - Creative Commons - https://www.facebook.com/groups/undergroundyt
Facebook - https://www.facebook.com/YouCourseYT
Twitter - https://twitter.com/YouCourseYT
Tik Tok - https://www.tiktok.com/@youcourseyt
Kwai - YouCourse - @yourcourse
Thank's For Support!
University of Michigan
The mission of the University of Michigan is to serve the people of Michigan and the world through preeminence in creating, communicating, preserving and applying knowledge, art, and academic values, and in developing leaders and citizens who will challenge the present and enrich the future.
About this Specialization
This Specialization is an introduction to building web applications for anybody who already has a basic understanding of responsive web design with JavaScript, HTML, and CSS. Web Applications for Everybody is your introduction to web application development. You will develop web and database applications in PHP, using SQL for database creation, as well as functionality in JavaScript, jQuery, and JSON.
Over the course of this Specialization, you will create several web apps to add to your developer portfolio. This Specialization (and its prerequisites) will prepare you, even if you have little to no experience in programming or technology, for entry level web developer jobs in PHP.
You’ll demonstrate basic concepts, like database design, while working on assignments that require the development of increasing challenging web apps. From installing a text editor to understanding how a web browser interacts with a web server to handling events with JQuery, you’ll gain a complete introductory overview of web application development.
About this Course
In this course, you'll walk through installation steps for installing a text editor, installing MAMP or XAMPP (or equivalent) and creating a MySql Database. You'll learn about single table queries and the basic syntax of the SQL language, as well as database design with multiple tables, foreign keys, and the JOIN operation. Lastly, you'll learn to model many-to-many relationships like those needed to represent users, roles, and courses.
Installation Handouts
In this page, you will install a programmer text editor, install a bundled all-in-one PHP/MySql application, and explore that application briefly.
We have separate pages for each of the commonly used Operating Systems:
- Setting up the MAMP PHP/MySql Environment on a Macintosh
- Setting up the MAMP PHP/MySql Environment on a Windows
- Setting up the XAMPP PHP/MySql Environment in Microsoft Windows
Please note, MySQL Workbench is not supported for this specialization.
Note - You only need to install one of MAMP or XAMPP. Do not install both as they use the same port settings. They are both all-in-one installers for the same thing - Apache Web Server, MySQL, PHP, phpMyAdmin.
https://milneopentextbooks.org/the-missing-link-an-introduction-to-web-development-and-programming/
Please utilize the Resources section for downloadable slides, web links, and other resources by module.
A simple approach is to search for "How to install LAMP on Ubuntu" - You should find lots of pages. If we find good guides, we will list them here:
Ask Ubuntu: How to set up a LAMP stack
If you follow the instructions carefully and look at the handouts and watch the podcasts, this assignment should be pretty straightforward and take less than an hour.
Note: As you install on Windows, you may be asked for permission to open ports or to allow an application through the firewall - say 'yes' to these dialog boxes if they are popping up when you first install or first start your PHP environment.
If you get stuck on this assignment - feel free to get assistance from anyone who can help. All we want is that you have successfully installed the software and can use it on your system. This is not intended as a difficult or challenging assignment.
You should practice taking a few screen shots on your computer and saving them as PNG or JPG files.
Install a programming text editor if you don't already have one. I recommend Atom, but you can use NotePad++ (Windows) or TextWrangler (Macintosh). You can use any editor you like but TextEdit (Mac), NotePad(Win), and Microsoft Word are *not* acceptable as program editors.
I suggest XAMPP for Windows and MAMP for Macintosh. They all function very similar. But all the course examples will be with MAMP and the course staff will be most familiar with problem arising when you use MAMP so if you choose another environment you should be prepared to do your own tech support.
Navigate to the phpMyAdmin application select the "SQL" tab and type
SELECT 'January 3, 2017'
Replace the example date with the current date, press the "GO" button and then take a screen shot of the resulting page.
Following the instructions in the installation documents, make sure that display_errors = On in your php.ini file. Make the screen shot to show you did it as follows:
- For MAMP, go to the phpinfo page in your environment and scroll down until you can take a screen shot showing that your php.ini is correct and take a screen shot
- For XAMPP, go to Apache / Config and open the php.ini file and scroll down to show that display_errors = On and take a screen shot.
- For Linux, use any editor to open your php.ini file and take a screen shot showing display_errors = On.
The first screen shot for the peer-graded portion of the assignment is the phpMyAdmin as follows:
Here a sample of the second screen shot in the peer-graded portion is to verify that display_errors is On in your PHP configuration:Here is a sample of a screenshot if you are using XAMPP:
SQL Handout (Week 2 Basic SQL Operations)
- Elizabeth Fong: Creating the SQL Database Standards
- http://dev.mysql.com/doc/refman/5.0/en/string-functions.html
- http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html
Perform the instructions below and enter the code you get into the following assignment. (Hint: starts with 493)
First, create a MySql database or use an existing database (make sure to use a UTF8 character set) and then create a table in the database called "Ages":
Sample Data
Once the inserts are done, run the following SQL command:
Sample data output:
- SQL Handout (Week 3 Building a Physical Data Schema)
Then you must construct and run some queries on your data and then take screen shots of those queries and submit the screen shots as your assignment.
Submitting Your Assignment
For this assignment you will hand in:
- Screen shot (JPG or PNG) of data in the Track table
- Screen shot (JPG or PNG) of all the data joined up sorted in ascending order by the album title
- Screen shot (JPG or PNG) of all of the genres for a particular artist. Hint - use JOIN, DISTINCT and WHERE
This is a relatively simple assignment. Don't take off points for little mistakes. If your peers seem to have done the assignment give them full credit. Feel free to make suggestions if there are small mistakes. Please keep your comments positive and useful. If you do not take grading seriously, the instructors may delete your response and you will lose points.
Sample Screen Shots
This section is entirely optional and is here in case you want to explore a bit more deeply and expand your code skillz. There is nothing to hand in for this challenge.
Come up with a query using GROUP BY to show the number of tracks an Artist has in each Genre. You do not need to hand in a screen shot of this query.
In this assignment, you will build a copy of the Music database covered in lecture. You will populate your database with tracks, artists and albums that are different from the ones used in class. You must include three artists, five albums, and 20 tracks in your data. Your tables need to normalized as described in lecture.
Assignment: https://www.wa4e.com/assn/sql-tracks/
Perform the instructions below and upload your JSON export of the resulting database in your individual assignment page.
Tables for the Assignment
Create the following tables in a database named "roster". Make sure that your database and tables are named exactly as follows including matching case.
You will normalize the following data (each user gets different data on the autograder page), and insert the following data items into your database, creating and linking all the foreign keys properly. Encode instructor with a role of 1 and a learner with a role of 0.
The order of the data and number of rows that comes back from this query should be the same as above. There should be no missing or extra data in your query.
Submitting Your Assignment
When you have the data all inserted, use phpMyAdmin to Export the data as follows:
- Select the database (do not select a table within the database)
- Select the Export Tab
- Select "Custom - display all possible options"
- Select "Save output to a file"
- Set the format to JSON
- Do not select "pretty print" the output
- Leave everything else as default and run the export.
It is a somewhat strange format - it is one bit of JSON for each table. You don't need to edit or even look at this file. Simply upload it above.






No hay comentarios:
Publicar un comentario