Describe partitioning and bucketing in HIVE with the help of relevant example.
Example: partition and bucketing code in hive
CREATE TABLE mytable (
name string,
city string,
employee_id int )
PARTITIONED BY (year STRING, month STRING, day STRING)
CLUSTERED BY (employee_id) INTO 256 BUCKETS