About 334,000 results
Open links in new tab
  1. Code examples for Databricks Connect for Python

    View code examples that use Databricks Connect for Python. Databricks Connect allows you to connect popular applications to Databricks clusters.

  2. Get started with data warehousing using Databricks SQL

    Nov 15, 2024 · If you’re a data analyst who works primarily with SQL queries and your favorite BI tools, Databricks SQL provides an intuitive environment for running ad-hoc queries and creating dashboards on data stored in your data lake. These articles can help you get started.

  3. SQL language reference | Databricks Documentation

    Mar 11, 2025 · For information about using SQL with DLT, see DLT SQL language reference. This general reference describes data types, functions, identifiers, literals, and semantics: You use data definition statements to create or modify the structure of database objects in a database:

  4. Query snippets - Azure Databricks - Databricks SQL | Microsoft …

    Apr 4, 2025 · Query snippets are segments of queries that you can share and trigger using auto complete. Use query snippets for: Complicated clauses like WITH or CASE. Here are examples of snippets: Follow these steps to create a query snippet: Click SQL Editor in the sidebar to open the SQL editor. You cannot access query snippets from the new SQL editor.

  5. 10 Best Practices for writing SQL in Databricks - Medium

    Mar 17, 2023 · Here are the top 10 best practices for crafting SQL in Databricks SQL for efficiency and scale. SELECT * FROM this_table; will return all the columns and rows of a table, which if you don't...

  6. GitHub - Azure-Samples/azure-sql-db-databricks: Azure SQL and ...

    Azure Databricks and Azure SQL database can be used amazingly well together. This repo will help you to use the latest connector to load data into Azure SQL as fast as possible, using table partitions and column-store and all the known best-practices.

  7. How to do a for or while loop in Databricks SQL - Stack Overflow

    Nov 13, 2021 · Starting from Databricks Runtime 16.3 FOR, REPEAT and WHILE loops are supported: DECLARE sum INT DEFAULT 0;

  8. Databricks SQL: A Full Guide to Scalable SQL Workloads

    Feb 24, 2025 · In this article, I will explore the components, features, and tools of Databricks SQL and show practical examples of creating and using Databricks SQL warehouse.

  9. Building SQL with SQL: An introduction to EXECUTE ... - Databricks

    Feb 20, 2024 · In Databricks, you have many means to compose and execute queries. You can: In a variation of the above, you can also protect against SQL injection by using spark.sql () to pass different values to a parameterized SQL statement string. All these solutions, however, require you to use a language outside of SQL to build the query.

  10. How to set a variable and use it in a SQL query - Databricks

    Nov 15, 2022 · CJS had the best answer by virtue of it being code-based rather than widget-based. In a notebook where the value of the variable must continually be reset, widgets are suboptimal. That said, the easiest way is to wrap the code in python: %py. var1 = some_value ##string, int, whatever. var2 = some_other_value.

  11. Some results have been removed