# SQL write and execution[¶](https://doc.dataiku.com/dss/latest/sql/write_and_execute.html#sql-write-and-execution "Permalink to this headline")

* Writing in SQL table datasets

* Executing SQL queries

## Writing in SQL table datasets[¶](https://doc.dataiku.com/dss/latest/sql/write_and_execute.html#writing-in-sql-table-datasets "Permalink to this headline")

* You can write to SQL table datasets (external table datasets and managed SQL datasets) but not to external query datasets. See SQL datasets for more information.

## Executing SQL queries[¶](https://doc.dataiku.com/dss/latest/sql/write_and_execute.html#executing-sql-queries "Permalink to this headline")

* You can write code recipes that create datasets using the results of a SQL query on existing SQL datasets. See SQL recipes for more information about SQL recipes.

* You can also use the SQL Notebook for interactive querying.
