Home | Contact Us | Sitemap
DWHlabs provides Data Warehouse education services.This web portal is very useful to the Database professionals,
Data Warehouse professionals, UNIX professionals etc.,
  About Us Advertise Support us Tell your Fren Testimonial Contact Us  
 
 
Please help us continue development of this website and it's services!
 
 
 

 


 
DWHlabs- DATABASELAB
Sponsered Links
 
 
sORACLE - SQL
 
  HOME
  INTRO, DATA TYPE
  SELECT
  INSERT
  CREATE
  CONSTRAINT
  COMMIT
  SAVEPOINT
  ROLLBACK
  DESCRIBE
  DISTINCT
  DELETE
  DROP, TRUNCATE
  UPDATE
  ALTER
  AND,OR
  BETWEEN
  IN,ALL,LIKE
  WHERE
  ORDER BY
  GROUP BY
  HAVING
  FUNCTIONS
  JOINS
  INDEX
  CLUSTERS
  VIEWS
  SYNONYMS
  SEQUENCE
  SUB QUERY
  CORELATED SUBQUERY
 

  Next
JOINS
A Join is a query that combines rows from two or more Tables, Views or Materialized Views.To join two tables their must be a common attribute in both the tables.

Types of Joins ::

1. Cartesian product
2. Self join
3. Inner Join
4. Outer Join

1. Cartesian product
If two tables in a join query have no join condition, it returns cartesian product result.For example if one table has 10 records and the other table has 20 records , cartesian product of this two tables 10*20=200.So it displays 200 records.

Syntax ::

[SELECT] <COLUMN1>....<COLUMNX>
FROM <TABLE1>..<TABLEX> ;

Example ::


SELECT CUST_NAME, CUST_DEPTNO, CUST_SALES
FROM CUSTOMER, SALES;



2. Self Join
A self join is a join a table to itself.Oracle combines and return the records which satisfys join condition.

Syntax ::

[SELECT] <COLUMN1>....<COLUMNX>
FROM T1.<TABLE1>,T2.<TABLE1>
WHERE T1.[<COLUMN1>|...|<COLUMNX>]=T2.[<COLUMN1>|...|<COLUMNX>];


Example ::



SELECT E1.CUST_NAME, E2.CUST_NAME
FROM E1.CUSTOMER,E2.CUSTOMER
WHERE E1.CUST_ID=E2.CUST_ID ;

  Next
DWH 3Colors
CERTIFICATION GUIDE
DATA DICTIONARY
ALL ARTICLES
 
DWH CONCEPTS

DWH Architecture
Types of Schema
Normalization

VS LINKS

OLAP Vs OLTP
Dimension Table Vs Fact Table
Datamart Vs Data Warehouse
Data Mining Vs Web Mining


SHARE KNOWLEDGE

Now viewers can share their information with DWHlabs , please
Click Here.
Please send your feedback
Click Here .
Tell you friend about DWHlabs
Click Here .


Data Warehouse Lab

- ETL TOOL
INFORMATICA
OTHER TOOLS

- REPORTING TOOL

BUSINESS OBJECTS
OTHER TOOLS

Database Lab

- ORACLE
SQL
PL/SQL

- DB2
OTHER TOOLS

Unix Lab

Project Lab

DWH Schools

Books Store



 
About Us AdvertiseSupport us Tell your Fren Testimonial Contact Us  
© 2008 DWHlabs
Privacy Policy | Terms & Conditions