🤑 Join the Treehouse affiliate program and earn 25% recurring commission!

New No-Code Track! 🚀 New videos dropping every week—start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Community Projects
    • Live Sessions
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Community Projects Live Sessions Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
  • Jeff Styles
    Jeff Styles
    2,784 Points

    Is there a shorter way to write a condition such as "where id = 8 or id = 9 or id = 16"?

    Posted January 25, 2017 7:38pm by Jeff Styles
    Jeff Styles
    2,784 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    1 Answer

  • Miguel Nunez
    Miguel Nunez
    3,266 Points

    Help! Foreign Keys!

    Posted November 26, 2016 6:14am by Miguel Nunez
    Miguel Nunez
    3,266 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    1 Answer

  • Miguel Nunez
    Miguel Nunez
    3,266 Points

    Can you have a primary key and a unique key in the same table in MySQL?

    Posted November 24, 2016 8:52am by Miguel Nunez
    Miguel Nunez
    3,266 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    1 Answer

  • Miguel Nunez
    Miguel Nunez
    3,266 Points

    Different types of keys in each row in a MySQL table. Is it possible?

    Posted November 22, 2016 4:30am by Miguel Nunez
    Miguel Nunez
    3,266 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    1 Answer

  • Miguel Nunez
    Miguel Nunez
    3,266 Points

    How is it that you can combine Primary keys n unique keys together I thought they r different keys dat r used on 1 table

    Posted November 20, 2016 10:21am by Miguel Nunez
    Miguel Nunez
    3,266 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    2 Answers

  • Mayur Pande
    PLUS
    Mayur Pande
    Courses Plus Student 11,711 Points

    Getting error code 1005

    Posted May 23, 2016 2:51pm by Mayur Pande
    Mayur Pande
    Courses Plus Student 11,711 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    0 Answers

  • frank martinez
    frank martinez
    8,858 Points

    " . . so we need to use the keyword 'REFERENCES' and then . . "

    Posted January 13, 2016 10:57am by frank martinez
    frank martinez
    8,858 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    1 Answer

  • Elena Paraschiv
    Elena Paraschiv
    9,938 Points

    Unique key_ can or cannot be NULL?

    Posted November 10, 2015 2:13pm by Elena Paraschiv
    Elena Paraschiv
    9,938 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    1 Answer

  • Rogelio Valdez
    Rogelio Valdez
    6,244 Points

    Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column

    Posted October 21, 2015 7:52am by Rogelio Valdez
    Rogelio Valdez
    6,244 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    1 Answer

  • Thanitsak Leuangsupornpong
    Thanitsak Leuangsupornpong
    7,490 Points

    Why the column that we referencing is genre(id)? Why not just (id)

    Posted October 13, 2015 3:51pm by Thanitsak Leuangsupornpong
    Thanitsak Leuangsupornpong
    7,490 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    1 Answer

  • Álvaro Massana
    Álvaro Massana
    14,142 Points

    Challenge Task 1

    Posted August 24, 2015 10:55am by Álvaro Massana
    Álvaro Massana
    14,142 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    2 Answers

  • gregsmith5
    gregsmith5
    32,615 Points

    movies_db download link

    Posted July 16, 2015 8:22pm by gregsmith5
    gregsmith5
    32,615 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    0 Answers

  • Geoffrey Neal
    Geoffrey Neal
    30,298 Points

    PRIMARY KEY returning null.

    Posted July 3, 2015 3:44pm by Geoffrey Neal
    Geoffrey Neal
    30,298 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    1 Answer

  • Leigh Maher
    Leigh Maher
    21,830 Points

    Can't get it to create genre_id in the movies table?

    Posted June 26, 2015 11:34am by Leigh Maher
    Leigh Maher
    21,830 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    1 Answer

  • Alan Guevara
    Alan Guevara
    7,247 Points

    Why do we have to add a constraint when adding a FOREIGN KEY but not when adding a PRIMARY KEY?

    Posted June 24, 2015 6:36pm by Alan Guevara
    Alan Guevara
    7,247 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    1 Answer

  • ahmed saleh
    ahmed saleh
    2,754 Points

    still cant understand what the point from linking tables?

    Posted April 19, 2015 1:02am by ahmed saleh
    ahmed saleh
    2,754 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    1 Answer

  • rigzin norboo
    rigzin norboo
    11,059 Points

    Create a genres table called "t_genres" with an auto incrementing primary key called "pk_id" and a unique column .......

    Posted February 1, 2015 7:55am by rigzin norboo
    rigzin norboo
    11,059 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    2 Answers

  • Jim Withington
    Jim Withington
    12,025 Points

    Quiz Question #1 clarification (parentheses in MySQL)

    Posted November 20, 2014 9:57pm by Jim Withington
    Jim Withington
    12,025 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    1 Answer

  • Jason Dittmer
    Jason Dittmer
    8,273 Points

    Challenge Task 2, Missing the 'pk_id' Column

    Posted October 21, 2014 12:18pm by Jason Dittmer
    Jason Dittmer
    8,273 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    3 Answers

  • Kelvin Latif
    Kelvin Latif
    9,955 Points

    Quiz question one error.

    Posted October 5, 2014 6:46am by Kelvin Latif
    Kelvin Latif
    9,955 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    1 Answer

  • Marcia Haledjian
    Marcia Haledjian
    7,562 Points

    Answer for challenge task 3

    Posted September 22, 2014 6:25pm by Marcia Haledjian
    Marcia Haledjian
    7,562 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    4 Answers

  • Rishi Shah
    Rishi Shah
    5,298 Points

    Having trouble adding a constraint

    Posted June 30, 2014 12:24am by Rishi Shah
    Rishi Shah
    5,298 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    1 Answer

  • Wilner Charles
    Wilner Charles
    874 Points

    I'm a little confused with the Keys and Auto-Incrementing Values part.

    Posted June 8, 2014 11:13pm by Wilner Charles
    Wilner Charles
    874 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    1 Answer

  • Josh Jacobsen
    Josh Jacobsen
    2,445 Points

    Trouble w/ Challenge Task in "Keys & Auto Incrementing Values" within "Joining Relational Data Between Tables in SQL"

    Posted June 2, 2014 7:21pm by Josh Jacobsen
    Josh Jacobsen
    2,445 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    1 Answer

  • Toni Caktas
    Toni Caktas
    16,957 Points

    3/3

    Posted May 25, 2014 10:14am by Toni Caktas
    Toni Caktas
    16,957 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    0 Answers

  • Toni Caktas
    Toni Caktas
    16,957 Points

    1/3

    Posted May 24, 2014 10:14pm by Toni Caktas
    Toni Caktas
    16,957 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    0 Answers

  • . Ali
    . Ali
    9,799 Points

    OK THIS IS WEIRD

    Posted March 15, 2014 5:58am by . Ali
    . Ali
    9,799 Points
    • Development Tools
    • Database Foundations
    • Joining Relational Data Between Tables in SQL
    • Keys and Auto-Incrementing Values

    1 Answer

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

    Treehouse

  • About
  • Blog
  • Careers
  • Community
  • Stories
  • Shop
  • Contact
  • Gift Card

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.