<?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>question How to see a table belong to which database? or what all tables exists in a perticular database? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-see-a-table-belong-to-which-database-or-what-all/m-p/131412#M94096</link>
    <description>&lt;P&gt;'Show tables' displays all the tables within Hive. Show databases displays all the database name.&lt;/P&gt;&lt;P&gt;How can I see database and tables exists inside same database?&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;Database, table&lt;/P&gt;&lt;P&gt;db1, table1&lt;/P&gt;&lt;P&gt;db1,table2&lt;/P&gt;&lt;P&gt;db2,table1&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 11:10:39 GMT</pubDate>
    <dc:creator>kuldeep_dwh</dc:creator>
    <dc:date>2022-09-16T11:10:39Z</dc:date>
    <item>
      <title>How to see a table belong to which database? or what all tables exists in a perticular database?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-see-a-table-belong-to-which-database-or-what-all/m-p/131412#M94096</link>
      <description>&lt;P&gt;'Show tables' displays all the tables within Hive. Show databases displays all the database name.&lt;/P&gt;&lt;P&gt;How can I see database and tables exists inside same database?&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;Database, table&lt;/P&gt;&lt;P&gt;db1, table1&lt;/P&gt;&lt;P&gt;db1,table2&lt;/P&gt;&lt;P&gt;db2,table1&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:10:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-see-a-table-belong-to-which-database-or-what-all/m-p/131412#M94096</guid>
      <dc:creator>kuldeep_dwh</dc:creator>
      <dc:date>2022-09-16T11:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to see a table belong to which database? or what all tables exists in a perticular database?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-see-a-table-belong-to-which-database-or-what-all/m-p/131413#M94097</link>
      <description>&lt;P&gt;
	If you have permissions to query the Hive metastore database directly, you could:&lt;/P&gt;&lt;PRE&gt;[root@hadoop01 ~]# mysql -u hive -p
Enter password: 
mysql&amp;gt; USE hive;
Database changed
mysql&amp;gt; SELECT
    -&amp;gt;     name AS db_name,
    -&amp;gt;     tbl_name
    -&amp;gt; FROM TBLS
    -&amp;gt; INNER JOIN DBS
    -&amp;gt; ON TBLS.DB_ID = DBS.DB_ID;
+----------+-------------------+
| db_name  | tbl_name          |
+----------+-------------------+
| medicaid | physician_compare |
| medicaid | sample            |
| medicaid | sample_orc        |
+----------+-------------------+
3 rows in set (0.00 sec)&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Mar 2017 13:01:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-see-a-table-belong-to-which-database-or-what-all/m-p/131413#M94097</guid>
      <dc:creator>awoolford</dc:creator>
      <dc:date>2017-03-01T13:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to see a table belong to which database? or what all tables exists in a perticular database?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-see-a-table-belong-to-which-database-or-what-all/m-p/131414#M94098</link>
      <description>&lt;PRE&gt;hive&amp;gt; USE DB1; &lt;/PRE&gt;&lt;P&gt;Now, commands such as SHOW TABLES, will list the tables in this database DB1&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2017 13:06:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-see-a-table-belong-to-which-database-or-what-all/m-p/131414#M94098</guid>
      <dc:creator>namaheshwari</dc:creator>
      <dc:date>2017-03-01T13:06:54Z</dc:date>
    </item>
  </channel>
</rss>

