0
0
Hadoopdata~5 mins

Creating databases and tables in Hadoop - Quick Revision & Summary

Choose your learning style9 modes available
Recall & Review
beginner
What is a database in Hadoop's Hive?
A database in Hive is a namespace that organizes tables. It helps keep data organized like folders on your computer.
Click to reveal answer
beginner
How do you create a new database in Hive?
Use the command: <br>CREATE DATABASE database_name;<br>This makes a new space to store tables.
Click to reveal answer
beginner
What is a table in Hive?
A table is like a spreadsheet with rows and columns where data is stored inside a database.
Click to reveal answer
beginner
How do you create a table in Hive?
Use the command:<br>CREATE TABLE table_name (column1 TYPE, column2 TYPE, ...);<br>This sets up a table with columns and their data types.
Click to reveal answer
beginner
What data types can you use when creating tables in Hive?
Common types include INT (numbers), STRING (text), FLOAT (decimal numbers), and BOOLEAN (true/false).
Click to reveal answer
Which command creates a new database in Hive?
ACREATE DATABASE mydb;
BMAKE DATABASE mydb;
CNEW DATABASE mydb;
DCREATE TABLE mydb;
What does a table in Hive represent?
AA folder to store files
BA spreadsheet-like structure with rows and columns
CA programming function
DA type of database
Which data type is used for text in Hive tables?
AFLOAT
BBOOLEAN
CINT
DSTRING
How do you specify columns when creating a table in Hive?
AList column names only
BList data types only
CList column names with data types
DNo need to specify columns
What is the purpose of a database in Hive?
ATo organize tables into groups
BTo store files
CTo run queries
DTo create users
Explain how to create a database and a table in Hive, including the syntax and purpose of each.
Think about how folders and files work on your computer.
You got /5 concepts.
    Describe common data types used when creating tables in Hive and why choosing the right type matters.
    Consider how you choose the right container for different items.
    You got /3 concepts.