Course

Advanced Databases

Advanced database management with SQL, integrity, and practical applications

of video
8.3 h
lectures
136
sections
22

$99.97one payment

Lifetime access. 15-day money-back guarantee.

Want a mentor as well? The Academy gives you every course on Amigoscode plus code reviews, daily live calls and interview prep, for $129/month. Compare →

What you'll learn

By the end of this course

  • Master Advanced Data Types - Work with JSONB, UUIDs, arrays, enums, and other data types to design versatile and modern databases.
  • Optimize Query Performance - Dive deep into indexes, query plans, and explain-analyze techniques to write efficient and lightning-fast queries.
  • Harness the Power of Transactions - Understand ACID properties, isolation levels, savepoints, and how to manage transactions for robust data consistency.
  • Unlock Subqueries and Common Table Expressions (CTEs) - Simplify complex queries and enhance maintainability using advanced SQL features.
  • Leverage Functions, Stored Procedures, and Triggers - Automate tasks and implement business logic directly within the database for seamless operations.
  • Manage Roles, Privileges, and Security - Explore advanced techniques for access control, row-level security, and safeguarding sensitive data.
  • Work with Views and Materialized Views - Gain insights into simplifying data access and improving performance for complex queries.
  • Backup and Restore Strategies - Implement reliable database backup and restore practices to protect your data from unforeseen events.

Curriculum

22 sections, 136 lectures

8.3 h of video. Open any section to see its lectures.

1Intro1 min
  1. 1Welcome1 min
  2. 2Recommended Courses
  3. 3Slides
2Schemas19 min
  1. 1What Are Schemas4 min
  2. 2Understanding Schemas And Search Path4 min
  3. 3Create Schema3 min
  4. 4Set Search Path7 min
  5. 5How I Am Using Schemas2 min
  6. 6Schemas Quiz
3Advanced data types51 min
  1. 1Adavanced Data Types1 min
  2. 2Casting
  3. 3Quiz
  4. 4Working With Sequences7 min
  5. 5Arrays11 min
  6. 6Serial And Bigserial7 min
  7. 7Jsonb7 min
  8. 8Enum7 min
  9. 9UUID (Universally Unique Identifier)7 min
  10. 10Other Data Types1 min
  11. 11Extensions And Hstore3 min
4Working with dates15 min
  1. 1Dates And Date Data Types5 min
  2. 2Adding Subtracting Dates4 min
  3. 3Age And Extract Functions2 min
  4. 4Date and Time Documentation3 min
  5. 5Quiz
5Constraints42 min
  1. 1Contraints And Types4 min
  2. 2The Problem Without Constraints4 min
  3. 3Alter Table And Add Primary Key Connstraint6 min
  4. 4Alter Table And Add Pk, Fk And Check Constraints8 min
  5. 5Remove Constraints4 min
  6. 6Clean Up Data Your Data First4 min
  7. 7Create Table With Constraints7 min
  8. 8Name Constraints6 min
  9. 9Quiz
6Foreign keys19 min
  1. 1Intro To Foreign Keys2 min
  2. 2Updating Foreign Keys8 min
  3. 3On Cascade Delete9 min
7Manage tables1 min
  1. 1Manage Tables
  2. 2Quiz
8Indexes1 h 0 min
  1. 1Intro To Indexes4 min
  2. 2Create Index Cuncurrently7 min
  3. 3Visual Representation Of Indexes5 min
  4. 4Quiz
  5. 5Employee Table With 1M Records2 min
  6. 6Indexes In Action5 min
  7. 7Index Size, Create And Drop Index7 min
  8. 8Partial Indexes6 min
  9. 9Multi Column Index5 min
  10. 10Unique Indexes11 min
  11. 11Index Types4 min
  12. 12Index Data Structures4 min
9Analyse queries15 min
  1. 1Explain Analyse2 min
  2. 2Query Plans6 min
  3. 3Reading Query Plans3 min
  4. 4Why Explain Analyse Is Important1 min
  5. 5Why Explain Analyse Is Important1 min
  6. 6Explain Analyse Cheatsheet1 min
  7. 7Quiz
10Conditional expressions13 min
  1. 1Conditional Expressions1 min
  2. 2Coalesce5 min
  3. 3Nullif3 min
  4. 4Case4 min
  5. 5Quiz
11Dealing with conflicts13 min
  1. 1Section SQL
  2. 2Dealing With Conflicts4 min
  3. 3On Coflict Do Nothing4 min
  4. 4On Conflict Do Update Aka Upsert6 min
  5. 5Quiz
12Sub queries18 min
  1. 1Section SQL
  2. 2What Are Sub Queries3 min
  3. 3Using Sub Queries5 min
  4. 4Where Exists6 min
  5. 5Any5 min
  6. 6Section SQL
  7. 7Exercises
  8. 8Quiz
13Common table expressions15 min
  1. 1Common Table Expressions2 min
  2. 2Cte In Action6 min
  3. 3Multiple Cte7 min
  4. 4Complex CTE Example
  5. 5Quiz
14Window functions31 min
  1. 1Window Functions3 min
  2. 2Quiz
  3. 3Row_number()6 min
  4. 4Rank Dense Rank And Ntile9 min
  5. 5Aggreate Functions7 min
  6. 6Value Functions7 min
  7. 7Real World Example
15Views and materialized views17 min
  1. 1Intro To Views2 min
  2. 2Working With Views8 min
  3. 3Intro To Marerialised Views2 min
  4. 4Working With Materialized Views4 min
  5. 5Quiz
16Transactions23 min
  1. 1Intro To Transactions1 min
  2. 2Acid Properties2 min
  3. 3Begin Commit And Rollback4 min
  4. 4Working With Transacitons Part 14 min
  5. 5Begin Commit And Rollback In Action6 min
  6. 6Isolation Levels5 min
  7. 7Transaction Save Points1 min
  8. 8Quiz
17Functions stored procedures and triggers33 min
  1. 1Intro To Functions2 min
  2. 2Your First Function7 min
  3. 3Intro Stored Procedures2 min
  4. 4Your First Stored Procedure5 min
  5. 5More Complex Procedure12 min
  6. 6Triggers5 min
  7. 7Quiz
18Roles groups and privileges23 min
  1. 1Intro To Roles Groups And Privileges4 min
  2. 2Working With Roles8 min
  3. 3Privileges Aka Permissions6 min
  4. 4Groups5 min
  5. 5Quiz
19Backup and restore27 min
  1. 1Intro To Database Backups2 min
  2. 2Backup Databases12 min
  3. 3Restore Databases7 min
  4. 4Copy And CSV5 min
  5. 5Quiz
20Full text search17 min
  1. 1Intro To Full Text Seach2 min
  2. 2Tsvector5 min
  3. 3Tsquery3 min
  4. 4Searching Vectors5 min
  5. 5Ranking2 min
  6. 6Exercise
  7. 7Quiz
21Row level security47 min
  1. 1Intro To Rls7 min
  2. 2Db Roles And Table Setup6 min
  3. 3Enabling Rsl And Policies9 min
  4. 4Insert Policy9 min
  5. 5Real World Examples4 min
  6. 6Dealing With Recursion7 min
  7. 7Update Rls6 min
  8. 8Quiz
22Next steps1 min
  1. 1Next Steps1 min
  2. 2Feedback
  3. 3Next Steps

Choose how you learn

Learn on your own, or with people who check your work

The course is yours to keep. The Academy is this course and every other one, plus the people who get you hired.

Advanced Databases

The course, on your own

$99.97one payment

  • 136 lectures, 8.3 h of video
  • Subtitles on every video
  • 6 months of IntelliJ IDEA Ultimate
  • Lifetime access to the course and its updates

15-day money-back guarantee

Recommended

The Academy

The courses, plus the people

$129/monthcancel anytime

This course, plus

  • Every course on Amigoscode 50+ in the Zero to Hired Roadmap
  • Daily live calls and 1:1 instructor time
  • Code reviews and pair programming on what you build
  • Interview prep mock interviews, System Design Lab, CV and LinkedIn review
  • Land an interview in 90 days or we coach you 1:1 free until you do.
Join the Academy

7-day money-back guarantee · Secure checkout on Skool

“Nelson was teaching 90% of my job. I was already implementing everything I learnt from it.”
MBMarlon BragaJava Full Stack Software Developer
“I was a totally different person. More confident as a developer, more prepared for my job.”
GabrielaSoftware Engineer at Mercado Livre
“I studied biomedicine and psychology. I found Nelson's Java tutorials while looking for a course for my brother. I was hooked and now here I am, a software engineer at IKEA.”
NajmaSoftware Engineer at IKEA

Read every review →

About this course

Who is this course for?

Level: Mid and Senior Engineers.

How long will it take?

There are about 8 hours of video. Most people finish in 2 weeks at 5 hours a week, plus the time you spend building along.

Do I keep access?

Yes. You pay once and keep the course for life, including updates.

What if it isn't for me?

Email us within 15 days of buying and we'll refund you in full.

Should I buy the course or join the Academy?

Buy the course if you only want this topic and you learn well on your own. Join the Academy if you want to get hired or move up: you get every course on Amigoscode, this one included, plus daily live calls, code reviews and interview prep, for $129/month. The course is $99.97 once.