HBASE Vs. RDBMS Top Differences You can Unlock Now

HBASE in the Big data context has a lot of benefits over RDBMS. The listed differences below make you understandable why HBASE is popular in Hadoop (or Bigdata) platform. Let us check one by one quickly. HBASE Vs. RDBMS Differences Random Accessing HBase handles a large amount of data that is store in a distributed manner in the column-oriented format while RDBMS is systematic storage of a database that cannot support a random manner for accessing the database. Database Rules RDBMS strictly follow Codd's 12 rules with fixed schemas and row-oriented manner of database and also follow ACID properties. HBase follows BASE properties and implement complex queries. Secondary indexes, complex inner and outer joins, count, sum, sort, group, and data of page and table can easily be accessible by RDBMS. Storage From small to medium storage application there is the use of RDBMS that provide the solution with MySQL and PostgreSQL whose size increase with concurrency and performance.  Codd'

How to Find Max, Min Values By Using Function

Here's a logic to find maximum and minimum values with a function in Python. The purpose of the function is you can improve productivity and accuracy. 

How to Find Max, Min Values

  1. Write a Function
  2. Execute Function
  3. Get the result

Python Function to find Maximum and Minimum Easily

1. Logic to Write a Function

Below logic you can use to create an user-defined function. The reserved word "DEF" says you're going to create a function.

The max(), min() are two built-in functions, for simplicity, these used here.

The other variables you can use as-you-wish. Below variables, you can see in the actual code that mentioned in the section just below of this.

def findmaxmin(data): 
ax = max(data) 
by = min(data) 
data = (109, 98, 88, 7) 
(maximum, minimum) = findmaxmin (data) 
print("Maximum Marks = ", maximum) 
print("Minimum Marks = ", minimum)

2. Use vim editor to code logic

Here as the first step, I have written the maxmin.py file in Ubuntu. The function name is  "findmaxmin ".

define function using input arguments

2. Execute Python Function

Below command to enter Python. This command, you can issue in Ubuntu where python3 is installed

$ python3

You enter to Python3

>>> import maxmin

Imported successfully without any syntax errors.

3. Result Maximum and Minimum Values

How to import python script and run

Below commands issued.

>>> data = (109, 98, 88, 7)
>>> maxmin.findmaxmin(data)

The result is (109, 7)



Popular posts from this blog

7 AWS Interview Questions asked in Infosys, TCS

HBASE Vs. RDBMS Top Differences You can Unlock Now

Hyperledger Fabric: 20 Real Interview Questions

Python 'getsizeof' Command the Real Purpose