[{"data":1,"prerenderedAt":135},["ShallowReactive",2],{"term-v\u002Fview":3,"related-v\u002Fview":120},{"id":4,"title":5,"acronym":6,"body":7,"category":102,"description":103,"difficulty":104,"extension":105,"letter":106,"meta":107,"navigation":71,"path":108,"related":109,"seo":114,"sitemap":115,"stem":118,"subcategory":6,"__hash__":119},"terms\u002Fterms\u002Fv\u002Fview.md","View",null,{"type":8,"value":9,"toc":96},"minimark",[10,15,19,23,26,30,85,89,92],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"A view is a saved query that looks and acts like a table. You write a complex SELECT once, save it as a view, and then just SELECT from the view like it is a real table. No data is duplicated — it is just a named shortcut.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"A view is a virtual table defined by a stored SELECT statement. It does not store data itself (unless it is a materialized view). Views simplify complex queries, enforce column-level security, and provide a stable interface even when the underlying table structure changes.",[11,27,29],{"id":28},"show-me-the-code","Show Me The Code",[31,32,37],"pre",{"className":33,"code":34,"language":35,"meta":36,"style":36},"language-sql shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","CREATE VIEW active_users AS\n  SELECT id, name, email\n  FROM users\n  WHERE active = true;\n\n-- Now use it like a table:\nSELECT * FROM active_users;\n","sql","",[38,39,40,48,54,60,66,73,79],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,47],{},"CREATE VIEW active_users AS\n",[41,49,51],{"class":43,"line":50},2,[41,52,53],{},"  SELECT id, name, email\n",[41,55,57],{"class":43,"line":56},3,[41,58,59],{},"  FROM users\n",[41,61,63],{"class":43,"line":62},4,[41,64,65],{},"  WHERE active = true;\n",[41,67,69],{"class":43,"line":68},5,[41,70,72],{"emptyLinePlaceholder":71},true,"\n",[41,74,76],{"class":43,"line":75},6,[41,77,78],{},"-- Now use it like a table:\n",[41,80,82],{"class":43,"line":81},7,[41,83,84],{},"SELECT * FROM active_users;\n",[11,86,88],{"id":87},"when-youll-hear-this","When You'll Hear This",[16,90,91],{},"\"Create a view to encapsulate the complex join so other queries can use it simply.\" \u002F \"Views are great for access control — expose only what users need to see.\"",[93,94,95],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":36,"searchDepth":50,"depth":50,"links":97},[98,99,100,101],{"id":13,"depth":50,"text":14},{"id":21,"depth":50,"text":22},{"id":28,"depth":50,"text":29},{"id":87,"depth":50,"text":88},"database","A view is a saved query that looks and acts like a table.","intermediate","md","v",{},"\u002Fterms\u002Fv\u002Fview",[110,111,112,113],"SELECT","Stored Procedure","Table","Normalization",{"title":5,"description":103},{"changefreq":116,"priority":117},"weekly",0.7,"terms\u002Fv\u002Fview","b2zcQ8PgJSuiPvn65XAM1NuQEUWJeTA0ijg329TfIHw",[121,124,128,132],{"title":113,"path":122,"acronym":6,"category":102,"difficulty":104,"description":123},"\u002Fterms\u002Fn\u002Fnormalization","Normalization is the process of organizing your database to reduce data duplication.",{"title":110,"path":125,"acronym":6,"category":102,"difficulty":126,"description":127},"\u002Fterms\u002Fs\u002Fselect","beginner","SELECT is how you ask a database to give you data. It is the 'Read' in CRUD.",{"title":111,"path":129,"acronym":6,"category":102,"difficulty":130,"description":131},"\u002Fterms\u002Fs\u002Fstored-procedure","advanced","A stored procedure is a named program you write in SQL (and sometimes a procedural language) that lives inside the database.",{"title":112,"path":133,"acronym":6,"category":102,"difficulty":126,"description":134},"\u002Fterms\u002Ft\u002Ftable","A database table is exactly like a spreadsheet tab. It has columns across the top (name, email, age) and rows going down (one per person).",1776518322912]