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

Unix Special Keys That Improve Productivity

Shared the UNIX terminal shortcut keys. These special keys you can use to stop the program processing, or resume it.


Top Special keys in Unix


An example of a UNIX special key and its use.

Special Keys in UNIX much useful to take action when something happens.

A scenario where you made some mistake in the input command and you need to stop the further process. Then you can use the CTRL+C command. It is equal to the DELETE command.


Unix Keyboard Shortcuts or Special Keys.



RETURN key 

The RETURN key signifies the end of a line of input. On any terminal, RETURN has a key of its own, or return may be typed by holding down the control key and typing a 'm'.


CTRL-m Key


Hint: Ctrl-m command is equal to RETURN key in Unix systems


DELETE Key

The DELETE key stops a program/command immediately, without waiting for it to finish. DELETE can be achieved equivalently with ctrl-c.

Hint: Ctrl-c Command you can use to interrupt the process.


CTRL-s Key

Ctrl-s pauses the output and the program is suspended until you start it again.

Hint: Ctrl-s Command to pause the process


CTRL-q Key

Ctrl-q resumes the program paused by ctrl-s.

Hint: Ctrl-q Command to resume the process


CTRL-g Key

Rings a bell on the terminal.


CTRL-h key

Can be used for backspace.


CTRL-i Key

Can be used for tab (eight spaces on the UNIX system).

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