Posts

Featured Post

SQL Interview Success: Unlocking the Top 5 Frequently Asked Queries

Image
 Here are the five top commonly asked SQL queries in the interviews. These you can expect in Data Analyst, or, Data Engineer interviews. Top SQL Queries for Interviews 01. Joins The commonly asked question pertains to providing two tables, determining the number of rows that will return on various join types, and the resultant. Table1 -------- id ---- 1 1 2 3 Table2 -------- id ---- 1 3 1 NULL Output ------- Inner join --------------- 5 rows will return The result will be: =============== 1  1 1   1 1   1 1    1 3    3 02. Substring and Concat Here, we need to write an SQL query to make the upper case of the first letter and the small case of the remaining letter. Table1 ------ ename ===== raJu venKat kRIshna Solution: ========== SELECT CONCAT(UPPER(SUBSTRING(name, 1, 1)), LOWER(SUBSTRING(name, 2))) AS capitalized_name FROM Table1; 03. Case statement SQL Query ========= SELECT Code1, Code2,      CASE         WHEN Code1 = 'A' AND Code2 = 'AA' THEN "A" | "A

How to Find Factorial in Python for Any Number

Image
I have explained how to find factorial for a given number in Python using my own script fact.fy. A module is created as a script file, which contains function definitions that can be called in two ways: From the interpreter From another script file or from another function How to import a Script from Linux to Python Console I have written a script  fact.fy # This program illustrates the designing/creation of a module def factorial (n): "This module computes factorial" f=1; for i in range (1, n+1): f=f*i; print(f) return   In interpreter... >>>  import fact        ==> Import from Linux >>> fact.factorial(5) 120 What is script reloading? The Python interpreter imports a module only once in a session.  If some modifications are performed in the script, then it must be reloaded (imported) again in the interpreter for future use. A script is a reusable component and you can add n number of

10 Top Blockchain Advantages for Finance Projects

Image
In the business world, the transactions are — orders, payments, account tracking and much more. Often, each participant has his or her own ledger — and, thus, a version of the truth that may differ from other participants. Top Blockchain Features   You can avoid fraud... These multiple ledgers can be a recipe for error, fraud, and inefficiency. But because members on a blockchain share a common view of the truth, it’s now possible to see all details of a transaction end-to-end, reducing those vulnerabilities . Ordinary ledger Vs Shared Ledger Each participant has his own, separate ledger — increasing the possibility of human error or fraud. Reliance on intermediaries for validation creates inefficiencies. Can become a paper-laden process, resulting in frequent delays and potential losses for all stakeholders. How to Avoid the Complexity Single, shared, tamper-evident ledger — once recorded, transactions cannot be altered. All parties must give consensus before a new transactio

How to Create UDF in Python Example

Image
In Python,user-defined function usage is to avoid repeated work. The UDFs in Python are not like C/C++/JAVA. I am sharing ideas on how to create UDF in Python.

Hadoop 2x vs 3x top differences

Image
In many interviews, the first question for Hadoop developers is what are the differences between Hadoop 2 and 3. You already know that Hadoop upgraded from version 1. The below list is useful to know the differences. I have given Hadoop details in the form of questions and answers so that beginners can understand. Hadoop 2.x Vs 3.x The major change in hadoop 3 is no storage overhead. So, you may be curious about how Hadoop 3 is managing storage. My plan is for you is first to go through the list of differences and check the references section, to learn more about Hadoop storage management. References Real story of storage management in Hadoop Follow me on twitter Applyanalytics

Telecom Domain Knowledge Useful For a Data Analyst

Image
Telecom companies provide five kinds of services. Those are Voice, Data, Toll-free, internet, and wireless. The given Telecom domain knowledge helpful for data analysis projects. 5 Top Telecom Services. Voice Toll-free Data service Internet Wireless  Telecom Domain Knowledge Useful for IT developers, Data Analysts, and Software Testers   In addition to the above, the latest services are Internet and wireless. Domain knowledge is crucial to design and develop the code. 1. Voice service This is the standard phone service that you have been using since the first time you called your Grandma to thank her for a birthday present. You need voice service. 2. Toll-free service A toll-free number is a special-number; that enables calls to come in from anywhere without incurring a charge to the caller. The called party pays a toll tariff for the Call. How much the called party pays for a call depends on the arrangements made with the long-distance carrier.  If you look at all of your voice

HBASE: Top Features in Storing Big data

Image
In this post explained top features added in HBase to handle the data. The Java implementation of Google's Big Table you can call it as HBASE.  In HBase, the data store as two parts. Row Key : 00001 Column : (Column Qualifier:Version:Value) Features of HBASE HBase data stores consist of one or more tables, which are indexed by row keys. Data is stored in rows with columns, and rows can have multiple versions. By default, data versioning for rows is implemented with time stamps. Columns are grouped into column families, which must be defined upfront during table creation. Column families are stored together on disk, which is why HBase is referred to as a column-oriented datastore New features of HBASE check now In addition... HBase is a distributed data store, which leverages a network-attached cluster of low-cost commodity servers to store and persist data. HBase architecture is a little trick to know. Region Servers... RegionServers are the software p

Python: How to Write Logic to Print Triangle

Image
Here's an example to print Triangle in Python. It's the best interview question. You can expect this type of question in your interview. So this is useful to practice it. How to Print Triangle Logic to Print Trianagle max = 8 for x in range(1, max + 1): for y in range(1, x + 1): print y, print Result 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 1 2 3 4 5 6 1 2 3 4 5 6 7 1 2 3 4 5 6 7 8   Also, Read Python while loop Python for loop example