Join Brad Wheeler for an in-depth discussion in this video Calculations, part of Database Clinic: MySQL.
- New programmers often make the mistake…of pulling a selection from a database…then, performing calculations in an external language.…Here's an example of this mistake with PHP and MySQL.…Here, we're connecting to a MySQL database in PHP.…MySQL returns a full table of IDs,…first names, and last names.…Then, in PHP, we could go through each row of that data…and calculate some values based on each row.…
An average, or perhaps, a count of unique entries.…But in the case of MySQL, it's much more efficient…to perform that operation inside the database.…Here's an example with MySQL.…All database languages provide rudimentary data…aggregation commands, such as sum,…average, or count.…In this challenge, each instructor is being asked…to forecast the educational demand…for California, up to the year of 2060.…We will provide them with two data sets.…
The California Educational Attainment…and Personal Income will provide…education information.…And California Population Projection…by county, age, gender, and ethnicity…will provide population forecasts up to 2060.…
- Strengths and weaknesses of MySQL
- Creating a database
- Joining data sets
- Integrating Python with MySQL
- Searching a database
- CRUD operations
- Performing calculations
Skill Level Appropriate for all
1. Data and MySQL in under Five Minutes
2. Create a Database
3. Join Two Datasets
4. Search a Database
Searching a database1m 51s
5. Create, Read, Update, and Delete Operations
6. Averages and Calculations
Next steps1m 1s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.