The most commonly used set operators in Oracle are:
- union
- intersect
- minus
Union
The most commonly used set operators in Oracle are:
- union
- intersect
- minus
Union
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)
There are two ways of adding a leading dollar sign to numbers 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"
MySQL and Postgres support the limit clause which limits the number of entries returned when a query is executed:
select * from member limit 5
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 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 (;).
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.
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
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
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.
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