<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Database within a Database in Databricks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/database-within-a-database-in-databricks/m-p/20733#M14031</link>
    <description>&lt;P&gt;The default location of a database will be in the /user/hive/warehouse/&amp;lt;databasename.db&amp;gt;.  Irrespective of the location of the database the tables in the database can have different locations and they can be specified at the time of creation. &lt;/P&gt;&lt;P&gt;Database location and Table location are independent. A table can be created in any location.  So to answer your question, it's possible to create a sub-directory and create tables in that. &lt;/P&gt;</description>
    <pubDate>Thu, 24 Jun 2021 18:02:02 GMT</pubDate>
    <dc:creator>brickster_2018</dc:creator>
    <dc:date>2021-06-24T18:02:02Z</dc:date>
    <item>
      <title>Database within a Database in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/database-within-a-database-in-databricks/m-p/20731#M14029</link>
      <description>&lt;P&gt;Is it possible to have a folder or database with a database in Azure Databricks? I know you can use the "create database if not exists xxx" to get a database, but I want to have folders within that database where I can put tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 15:10:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/database-within-a-database-in-databricks/m-p/20731#M14029</guid>
      <dc:creator>User16790091296</dc:creator>
      <dc:date>2021-06-24T15:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Database within a Database in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/database-within-a-database-in-databricks/m-p/20732#M14030</link>
      <description>&lt;P&gt;I think that you are looking to provide a "LOCATION" for your database on DBFS. When you provide a location for your database all the tables will be created within that folder by default. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See a create table example below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE TABLE [ IF NOT EXISTS ] table_identifier
  [ ( col_name1 col_type1 [ COMMENT col_comment1 ], ... ) ]
  USING data_source
  [ OPTIONS ( key1 [ = ] val1, key2 [ = ] val2, ... ) ]
  [ PARTITIONED BY ( col_name1, col_name2, ... ) ]
  [ CLUSTERED BY ( col_name3, col_name4, ... )
      [ SORTED BY ( col_name [ ASC | DESC ], ... ) ]
      INTO num_buckets BUCKETS ]
  [ LOCATION path ]
  [ COMMENT table_comment ]
  [ TBLPROPERTIES ( key1 [ = ] val1, key2 [ = ] val2, ... ) ]
  [ AS select_statement ]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 15:20:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/database-within-a-database-in-databricks/m-p/20732#M14030</guid>
      <dc:creator>Ryan_Chynoweth</dc:creator>
      <dc:date>2021-06-24T15:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Database within a Database in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/database-within-a-database-in-databricks/m-p/20733#M14031</link>
      <description>&lt;P&gt;The default location of a database will be in the /user/hive/warehouse/&amp;lt;databasename.db&amp;gt;.  Irrespective of the location of the database the tables in the database can have different locations and they can be specified at the time of creation. &lt;/P&gt;&lt;P&gt;Database location and Table location are independent. A table can be created in any location.  So to answer your question, it's possible to create a sub-directory and create tables in that. &lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 18:02:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/database-within-a-database-in-databricks/m-p/20733#M14031</guid>
      <dc:creator>brickster_2018</dc:creator>
      <dc:date>2021-06-24T18:02:02Z</dc:date>
    </item>
  </channel>
</rss>

