[{"data":1,"prerenderedAt":67},["ShallowReactive",2],{"term-p\u002Fpivot-table":3,"related-p\u002Fpivot-table":57},{"id":4,"title":5,"acronym":6,"body":7,"category":40,"description":41,"difficulty":42,"extension":43,"letter":16,"meta":44,"navigation":45,"path":46,"related":47,"seo":51,"sitemap":52,"stem":55,"subcategory":6,"__hash__":56},"terms\u002Fterms\u002Fp\u002Fpivot-table.md","Pivot Table",null,{"type":8,"value":9,"toc":33},"minimark",[10,15,19,23,26,30],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"Pivot Table means two different things. In Laravel\u002FPHP it is just another name for a junction table. In analytics\u002FExcel it means rotating rows into columns to summarize data. Context matters — in databases, people usually mean the junction table version.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"In relational database contexts (especially Laravel's Eloquent ORM), a pivot table is a synonym for a junction table in a many-to-many relationship. In data analysis, pivot tables reorganize and summarize data by rotating unique values from one column into multiple columns.",[11,27,29],{"id":28},"when-youll-hear-this","When You'll Hear This",[16,31,32],{},"\"In Laravel, the pivot table stores the many-to-many relationship data.\" \u002F \"The pivot table also stores the 'role' column for the user-team relationship.\"",{"title":34,"searchDepth":35,"depth":35,"links":36},"",2,[37,38,39],{"id":13,"depth":35,"text":14},{"id":21,"depth":35,"text":22},{"id":28,"depth":35,"text":29},"database","Pivot Table means two different things. In Laravel\u002FPHP it is just another name for a junction table.","intermediate","md",{},true,"\u002Fterms\u002Fp\u002Fpivot-table",[48,49,50],"Junction Table","Many-to-Many","Denormalization",{"title":5,"description":41},{"changefreq":53,"priority":54},"weekly",0.7,"terms\u002Fp\u002Fpivot-table","4nXIPG86IhS69bcEofD2R8MGuRyvmBx59CX6CfacaWg",[58,61,64],{"title":50,"path":59,"acronym":6,"category":40,"difficulty":42,"description":60},"\u002Fterms\u002Fd\u002Fdenormalization","Denormalization is the intentional opposite of normalization — you duplicate data to make queries faster.",{"title":48,"path":62,"acronym":6,"category":40,"difficulty":42,"description":63},"\u002Fterms\u002Fj\u002Fjunction-table","A junction table (also called a join table) is the middle table you create to represent a many-to-many relationship.",{"title":49,"path":65,"acronym":6,"category":40,"difficulty":42,"description":66},"\u002Fterms\u002Fm\u002Fmany-to-many","Many-to-Many means rows on both sides can relate to many rows on the other side. Students can enroll in many courses, and courses can have many students.",1776518302031]