Oracle set operators: union, intersect, minus

The most commonly used set operators in Oracle are:

- union
- intersect
- minus

Union


Oracle decode function

Decode function has the same functionality as an IF-THEN-ELSE statement. It is present in Oracle 9i and above. It has the syntax

decode(column/expression, value, substitute, default value)


Adding a leading dollar sign ($) in front of a number in Oracle

There are two ways of adding a leading dollar sign to numbers in Oracle.


Testing inequality in oracle

The following three operators have the identical meaning:
!=, ^=, <>

select name from worker where gender <> 'male';

Another way to test for inequality it to use "not in"


Limit clause in oracle

MySQL and Postgres support the limit clause which limits the number of entries returned when a query is executed:

select * from member limit 5


Oracle

Collection of articles about Oracle db


Setting up environment to run PL/SQL

This sections shows how to setup an environment to setup and run PL/SQL. For PL/SQL, you need to download two pieces of software freely available from Oracle.


PL/SQL constants, variables, and records

PL/SQL variables have type and scope. The have the following syntax:

name datatype [NOT NULL := value];

not null and value are optional. All statements end with a semicolon (;).


PL/SQL Blocks

PL/SQL blocks are made up of PL/SQL and SQL statements.


PL/SQL

Procedural Language extension of SQL (PL/SQL) combines SQL with procedural programming features such as looping, conditionals, and reusable blocks. PL/SQL engine processes PL/SQL statements.


Sorting output of ls by date

A simple ls lists directory contents by name. To list by time, use

$ ls -t

To see time in the listing

$ ls -lt

To show the most recently modified files first


Some quick APT commands

Advanced Packaging Tool (APT) is used by Debian system to manage package installations. Following are some quick commands:

Some common commands that can be used with APT:

Installing packages


How to turn off drupal messages

A red error message displaying on your webpage, visible to every visitor is the worst thing you can do to your site. Unfortunately, drupal displays error messages on the screen by default.


Project Management

Just as the best musicians in the world cannot perform a great sounding symphony without a conductor, the best collection of best engineers cannot successfully complete a project without a project man


Online Pharmacy