{"title":"Explore and query","description":"Explore tables in SQL Explorer or query from applications, DuckDB, and DataFrames using the same lakehouse namespace and access permissions.","order":300,"askSuggestions":["How do I join managed tables with connected sources?","How do I run a SQL query over HTTP?","How do I query Altertable from DuckDB?"],"navigation":true,"routeId":"queryData","body":{"code":"var Component=(()=>{var p=Object.create;var a=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var m=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty;var D=(o,e)=>()=>(e||o((e={exports:{}}).exports,e),e.exports),w=(o,e)=>{for(var n in e)a(o,n,{get:e[n],enumerable:!0})},i=(o,e,n,s)=>{if(e&&typeof e==\"object\"||typeof e==\"function\")for(let t of x(e))!y.call(o,t)&&t!==n&&a(o,t,{get:()=>e[t],enumerable:!(s=f(e,t))||s.enumerable});return o};var q=(o,e,n)=>(n=o!=null?p(m(o)):{},i(e||!o||!o.__esModule?a(n,\"default\",{value:o,enumerable:!0}):n,o)),k=o=>i(a({},\"__esModule\",{value:!0}),o);var d=D((j,l)=>{l.exports=_jsx_runtime});var S={};w(S,{default:()=>h,frontmatter:()=>g});var r=q(d()),g={title:\"Explore and query\",routeId:\"queryData\",description:\"Explore tables in SQL Explorer or query from applications, DuckDB, and DataFrames using the same lakehouse namespace and access permissions.\",order:300,askSuggestions:[\"How do I join managed tables with connected sources?\",\"How do I run a SQL query over HTTP?\",\"How do I query Altertable from DuckDB?\"]};function u(o){let e={a:\"a\",code:\"code\",h1:\"h1\",p:\"p\",...o.components},{DocsPreviewDocument:n,DocsPreviewSection:s,DocsSectionCards:t}=e;return n||c(\"DocsPreviewDocument\",!0),s||c(\"DocsPreviewSection\",!0),t||c(\"DocsSectionCards\",!0),(0,r.jsx)(n,{anchors:\"explore-and-query\",children:(0,r.jsxs)(s,{sectionId:\"explore-and-query\",sectionTitle:\"Explore and query\",anchors:\"\",ancestors:\"\",index:\"0\",children:[(0,r.jsx)(e.h1,{id:\"explore-and-query\",children:\"Explore and query\"}),`\n`,(0,r.jsxs)(e.p,{children:[\"Use \",(0,r.jsx)(e.a,{href:\"/docs/lakehouse/query/sql-explorer\",children:\"SQL Explorer\"}),\" to inspect tables and run a first query. Use \",(0,r.jsx)(e.a,{href:\"/docs/agents/ask\",children:\"Ask Altertable\"}),\" when you want to explore a question with an agent.\"]}),`\n`,(0,r.jsxs)(e.p,{children:[\"Queries run with \",(0,r.jsx)(e.a,{href:\"/docs/lakehouse/sql-engine\",children:\"DuckDB SQL\"}),\". Qualify tables as \",(0,r.jsx)(e.code,{children:\"catalog.schema.table\"}),\" to join managed tables with connected sources.\"]}),`\n`,(0,r.jsxs)(e.p,{children:[\"For application code, use the \",(0,r.jsx)(e.a,{href:\"/docs/lakehouse/query/http-api\",children:\"HTTP API or SDK\"}),\". For terminal workflows, use the \",(0,r.jsx)(e.a,{href:\"/docs/lakehouse/clients/cli\",children:\"CLI\"}),\". To connect a BI tool, choose a \",(0,r.jsx)(e.a,{href:\"/docs/lakehouse/clients\",children:\"SQL client interface\"}),\".\"]}),`\n`,(0,r.jsx)(t,{path:\"lakehouse/query\"})]})})}function h(o={}){let{wrapper:e}=o.components||{};return e?(0,r.jsx)(e,{...o,children:(0,r.jsx)(u,{...o})}):u(o)}function c(o,e){throw new Error(\"Expected \"+(e?\"component\":\"object\")+\" `\"+o+\"` to be defined: you likely forgot to import, pass, or provide it.\")}return k(S);})();\n;return Component;"},"_id":"docs/lakehouse/query/index.mdx","_raw":{"sourceFilePath":"docs/lakehouse/query/index.mdx","sourceFileName":"index.mdx","sourceFileDir":"docs/lakehouse/query","contentType":"mdx","flattenedPath":"docs/lakehouse/query"},"type":"Docs","path":"/lakehouse/query","level":3,"parent":"lakehouse/query"}