Question: You are tasked with performing various operations on an HBase Assume that the table has the following schema: Table Name: employee _ data Row _

You are tasked with performing various operations on an HBase Assume that the table has the following schema: Table Name: employee_data
Row_Key - emp_id
Column Family:info - Name , Department , Salary
1.Create Table: Create the employee_data table with the given schema.
2. Insert Records: Insert the following records into the table:
Row Key: 1001, Name: John Doe, Department: Engineering, Salary: 80000
Row Key: 1002, Name: Alice Smith, Department: HR, Salary: 60000
Row Key: 1003, Name: Bob Johnson, Department: Finance, Salary: 75000
3. Display All Records: Fetch and display all records from the employee_data table.
4. Delete Record: Remove the record with emp_id equal to 1002 from the table.
5. Update Salary: Increase the salary of the employee with emp_id equal to 1001 by 10000.
6. Display Individual Column: Display only the name and salary columns for the employee with emp id equal to 1003.
7. Delete individual column : Remove the department column for the employee with employment emp_id equal to 1001

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!