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 Top NoSQL Database Recently Asked Interview Questions

10 Top NoSQL Database Recently Asked Interview Questions


1) Who is involved in developing NoSQL?


Amazon and Google Papers


2) What is NoSQL?


You can use NoSQL on non-relational databases. Like columnar databases, by using NoSQL, you can query data from non-relational databases.


3) What are the unique features of NoSQL databases?


  • no relationship between records
  • need Un-structural data
  • store data that individual records do not have a relationship with each other


4) How NoSQL-databases are faster than traditional RDBMS?


  • Stores database on multiple servers, rather than storing the whole database in a single server
  • Adding replicas on other servers, we can retrieve data faster even one of the servers crashes


5) What are the UNIQUE features of NoSQL?


  • Opensource
  • ACID complaint


6) What are the characteristics of a good NoSQL product?


  • High availability: Fault tolerance when a single server goes down
  • Disaster recovery: For when a data center goes down, or more likely, someone digs up a network cable just outside the data center
  • Support: Someone to stand behind a product when it goes wrong 
  • Services: Product experts who can advise on best practices and help determine how to use a product to address new or unusual business needs
  • Ecosystem: Availability of partners, experienced developers, and product information — to avoid being locked into a single vendor's expensive support and services contract


7) Reasons to go for NoSQL databases?


An RDBMS can not fit all of the enterprise requirements.

  • Big data
  • Schema Redesign overhead
  • Unstructured data explosion
  • It avoids Sparse data problems (RDBMS will use space for NULL values. But, NoSQL will ignore NULL values)
  • Dynamically changing relationships between attributes


8) Benefits of NoSQL?

  • Faster solutions for new generation problems
  • Lower cost
  • Modern computer systems don't exist in a vacuum; they always communicate with someone or something. NoSQL databases use in search engines to semantic web technologies and Hadoop. Leveraging these technologies can make the deployment of NoSQL productive & useful.


9) How many core types of NoSQL databases?


Columnar


Extension to traditional table structures. Supports variable sets of columns (column families) and is optimized for column-wide operations (such as count, sum, and mean average).


Key-value


Simple structure. Sets of named keys and their value(s), typically an uninterpreted chunk of data. Sometimes that simple value may be a JSON or binary document.


Triple


 A single fact is represented by three elements:

  • The subject you're describing
  • The name of its property or relationship to another subject
  • The value is either an intrinsic (such as an integer) or a unique ID. For example, Adam likes Cheese. Adam is the subject, and Cheese is the object.


Document


XML, JSON, text, or binary blob. Any treelike structure. It can represent as an XML or JSON document. An order, for instance, includes a delivery address, billing details, and a list of products and quantities.


10) What are the most modern databases?


In-memory and flash databases


  • Great advances happened in real-time online transaction processing (OLTP) and analytics using in-memory databases. 
  • In-memory databases are specialized and targeted to particular problem domains. 
  • NoSQL databases take advantage of flash or memory caching to aid real-time analytics.


Complex-proprietary-stacks


NoSQL software such as Oracle NoSQL, MarkLogic, Microsoft's Document DB, and IBM Cloudant, though.


NewSQL


This is a new database-access paradigm. It applies the software design lessons of NoSQL to RDBMS, creating a new breed of products, which is a great idea. But these products still use traditional relational math and structures. So they aren't being used. 

Comments

Popular posts from this blog

How to Fix datetime Import Error in Python Quickly

Explained Ideal Structure of Python Class

How to Check Kafka Available Brokers