how to join more than three tables [message #306395] |
Fri, 14 March 2008 01:12 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
mandygrewalindia
Messages: 14 Registered: February 2008 Location: india
|
Junior Member |
|
|
hi...
i have three tables..
desc hotel_details;
Name Null? Type
---------------------------------------------------------------------------------------------------
HOTEL_SRNO NOT NULL VARCHAR2(10)
PLACE_NAME NOT NULL VARCHAR2(25)
HOTEL_NAME NOT NULL VARCHAR2(25)
and annother two tables
with same attributes and datatypes
SQL> desc one_night;
Name Null? Type
---------------------------------------------------------------------------------------------------
NO_OF_NIGHTS NOT NULL VARCHAR2(10)
HOTEL_SRNO VARCHAR2(10)
ROOM_TYPE NOT NULL VARCHAR2(25)
COUPLE_CHARGE NOT NULL NUMBER(10)
EXPERSON_CHARGE NOT NULL NUMBER(10)
CHILD_CHARGE NOT NULL NUMBER(10)
primary ey is applies on hotel_sr of hole_details
and foreign key is applied on hotel_sr column ofother two tables
one_night and two_night.
i need to dispay data of three tables together
please suggest.
|
|
|
|
|