Posts

Showing posts from August, 2018

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

10 Complex UX interview Questions

Image
In this post, I have shared complex UX design interview questions that are useful for your next interview. The term user experience popularly call it as UX. If any question difficult to answer in the interviews, you can say it as ' complex'. I am sure, the listed questions boost your knowledge. 10 Complex UX interview Questions 1) What is UX and what to ensure? A). Good UX can ensure that customers use and actually enjoy the experiences you design.  If you've ever used a website, software application, or product interface that confused you, you've probably experienced a design process that did not leverage UX best practices.  In addition, UX can be a key component in establishing customer loyalty and goodwill. 2) What are the top 3 promises of good UX design? A). The three promises are a) Usable, b) Useful and c) Desirable 3) What are the four elements in information architecture? A). The 4 elements are : a) Navigation b) Content organization c

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.