Linux/Shell scripts
Linux/Shell Scripts
Linux and Shell Scripts
Linux and shell scripts are powerful tools for automation and system management. Whether you're a beginner or an advanced user, mastering shell scripting can help streamline tasks, automate processes, and improve efficiency.
-
Linux & Shell scripts
✔ Linux Installation
✔ Basic Commands✔ Permissions Commands✔ Search Commands✔ System Commands✔ File Commands✔ Editors - Vim✔ Compression Commands✔ Job Scheduling✔ sysadmin Commands✔ Network Commands✔ File transfer Commands✔ Shell - types✔ Env. Variables✔ Operators✔ Arguments✔ Conditions & Loops✔ Scripts for log monitoring✔ Scripts for DB and Instance monitoring
Postgres SQL - for Developers
SQL - Postgres
Postgresql SQL - Structured Query Language
SQL (Structured Query Language) is a standard programming language used to manage and manipulate relational databases. It is widely used for querying, inserting, updating, and deleting data in databases. SQL is essential for database developers and administrators to interact with databases effectively. This section covers the fundamental concepts and commands of SQL, including data definition, data manipulation, and data control.
-
Introduction to Postgres SQL
✔ Connecting psql
✔ Logging in pgadmin✔ Connecting to Database on windows and Linux -
Querying Data
✔ Select✔ Column aliases✔ Order By✔ Select DistinctFiltering Data
✔ Where✔ AND operator✔ OR operator✔ Limit✔ Fetch✔ In✔ Between✔ Like✔ Is NullFunctions and sorting data
✔ Sorting rows using ORDER BY clause
✔ SQL row limiting clause in a query✔ Describe the differences between single row and multiple row functions✔ Manipulate strings with character function in the SELECT and WHERE clauses✔ Manipulate numbers with the ROUND, TRUNC and MOD functions✔ Perform arithmetic with date data✔ Manipulate dates with the date functionsJoining Multiple Tables
✔ Joins✔ Table aliases✔ Inner Join✔ Left Join✔ Self-join✔ Full Outer Join✔ Cross Join✔ Natural JoinGrouping Data
✔ Managing constraints
✔ Group By✔ HavingSet Operations
✔ Union✔ Intersect✔ ExceptGrouping sets, Cubes, and Rollups
✔ Grouping Sets✔ Cube✔ RollupSubquery
✔ Subquery✔ Correlated Subquery✔ ANY✔ ALL✔ EXISTSCommon Table Expressions
✔ PostgreSQL CTE✔ Recursive query using CTEsModifying Data
✔ Insert✔ Insert multiple rows✔ Update✔ Update join✔ Delete✔ UpsertTransactions
✔ PostgreSQL TransactionsImport & Export Data
✔ Import CSV file into Table✔ Export PostgreSQL Table to CSV fileManaging Tables
✔ Data types✔ Create a table✔ Select Into & Create table as✔ Auto-increment column with SERIAL✔ Sequences✔ Identity column✔ Alter table✔ Rename table✔ Add column✔ Drop column✔ Change column data type✔ Rename column✔ Drop table✔ Truncate table✔ Temporary table✔ Copy a tablePostgreSQL Constraints
✔ Primary key✔ Foreign key✔ DELETE CASCADE✔ CHECK constraint✔ UNIQUE constraint✔ NOT NULL constraint✔ DEFAULT constraintPostgreSQL Data Types in Depth
✔ Boolean✔ CHAR, VARCHAR, and TEXT✔ NUMERIC✔ DOUBLE PRECISION✔ REAL✔ Integer✔ DATE✔ Timestamp✔ Interval✔ TIME✔ UUID✔ Array✔ hstore✔ JSON✔ User-defined data types✔ Enum✔ XML✔ BYTEA✔ Composite TypesConditional Expressions & Operators
✔ CASE✔ COALESCE✔ NULLIF✔ CASTPL/pgSQL - for Developers
PL/pgSQL - Postgres
PL/pgSQL - Procedural Language
PL/pgSQL is Oracle's procedural extension for SQL. It combines the data manipulation power of SQL with the procedural capabilities of a programming language. PL/pgSQL allows you to write complex database applications that can handle large volumes of data efficiently. PL/pgSQL is a block-structured language, which means that code is organized into blocks that can be nested within each other.
-
PL/pgSQL Introduction
✔ Introduction to PostgreSQL PL/pgSQL✔ Dollar-quoted string constants✔ Block StructureVariables & Constants
✔ Variables✔ Select into✔ Row type variables✔ Record type variables✔ ConstantsReporting messages and errors
✔ Raising errors and reporting messages✔ AssertControl Structures
✔ If statement✔ Case statements✔ Loop statements✔ While loop✔ For loop✔ Exit✔ ContinueUser-defined Functions
✔ Create Function✔ Function parameter modes✔ Function overloading✔ Functions that return a table