Introduces primary keys, foreign keys, indexes, and unique constraints, and demonstrates their uses
- [Emma] Before we start reporting from multiple tables,…we need to take a look at how tables are linked together.…Not all fields are created equal.…Some are optimized for searching on, for example.…Not all tables are created equal, either.…Some are big, some are small.…Some contain reference data and hardly change.…While others are constantly expanding,…such as those containing sales data.…I'm going to use the Sequila database…to demonstrate some of these differences.…And I'm going to look in the Rental Table for this.…
If we look at the Structure Tab,…we can see there are Key symbols against…some of the fields.…We've got one gold one, and several silver.…And if we hover over the gold one,…it says Primary.…A Primary Key is a special kind of field,…which uniquely identifies all the rows in the table.…It can't be set to null and no two rows…can have the same value.…Let's just look at the data quickly.…And we can see these are integers,…and each row appears to be one higher than the row before.…Now, we're not going to check all 16,000…
Join Emma Saunders as she shows you how to design and write simple SQL queries for data reporting and analysis. Review the different types of SQL, and then learn how to filter, group, and sort data, using built-in SQL functions to format or calculate results. Learn a bit about data types and database design. Discover how to perform more complex queries, such as joining data together from different database tables. Last but not least, Emma shows how to save your queries as views, so you can run them again and again.
- Using different versions of SQL
- Retrieving data with SELECT statements
- Filtering and sorting your results
- Transforming results with built-in SQL functions
- Grouping SQL results
- Merging data from multiple tables
- Identifying data types, and how to make sense of your database design
- Saving SQL queries
Skill Level Intermediate
1. Use SQL to Report Data
Data types in SQL databases5m 47s
2. Group your SQL Results
3. Merge Data from Multiple Tables
4. Advanced Features and Taking Your Learning Forwards
- 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.