Go ProSign in

This Lesson is for Members

Subscribe today and get access to all lessons! Plus direct HD download for offline use, enhances transcripts, member comment forums, and iTunes "podcast" RSS feed. Level up your skills now!

Unlock This Lesson

Already subscribed? Sign In

Hide playlist

    Create a one to many relationship in Python using SQLAlchemy

    Will ButtonWill Button

    In this lesson, you will learn how to create a one to many relationship between two database tables using SQLAlchemy. Tasks covered include:

    • creating a child table
    • defining a foreign key in the child table
    • creating the relationship between the parent and child table
    • demonstrate usage in Python
    • view the data created in a local sqlite database

    You must be a Member to view code