The following is the statement that combines the INSERT and UPDATE statements into one.
INSUPD
MERGE
UPSERT
INUPDATE
To avoid duplication in the table, use -
INSERT IGNORE INTO
IF NOT EXISTS INSERT
INSERT IF NOT EXISTS
IGNORE IF EXISTS
Does ‘Anti Join’ perform better than left join?
Yes
Can't Say
No
Which of the following databases should be used to display built-in functions?
_hive_metastore
Derby
_impala_builtins
_impala_metastore
To print the create table statement for the existing table
DESCRIBE [database_name].table_name
SHOW CREATE TABLE [database_name].table_name
DISPLAY CREATE TABLE [database_name].table_name
PRINT CREATE TABLE [database_name].table_name
The command to refresh the metadata in Impala is-
reload metadata <tablename />
validate metadata <tablename />
refresh metadata <tablename />
Invalidate metadata <tablename />
LOAD DATA INPATH ‘/SampleData.txt’ INTO TABLE; This command is used to copy the file from
Local File System
RDBMS
Hcatalog
HDFS
Equal to, Not Equal to, Less than, Greater than - operators - are categorized as
Arithmetic Operators
Logical Operators
Equation Operators
Comparison Operators
Which of the following is not a complex data type?
BigInt
Array
Map
Struct
Which option allows you to run a single query without having to start the interactive interpreter?
-impalad
run
-q
-i