Upload
ankur-raina
View
704
Download
0
Embed Size (px)
DESCRIPTION
Learn using various SQL commands to create a simple database about the top ten billionaires of 2011.Using Oracle11g
Citation preview
copyright ankur2011
www.poetrypoem.com/ankurwww.facebook.com/[email protected]
Hey ! I was born on 22nd June 1992 !!!Ahhhhhh….When was Bill Gates born?Stuck !!!!Let us see
copyright ankur2011
Hey ! I was born on 22nd June 1992 !!!Ahhhhhh….When was Bill Gates born?Stuck !!!!Let us see
copyright ankur2011
Logged in as sysman (super-administrator)
copyright ankur2011
A user named BILLIONARIES has been created
The password is dollar.
copyright ankur2011
The user BILLIONARIES has been granted
CREATE SESSION and
CREATE TABLE privileges
copyright ankur2011
Connect user BILLIONARIES
copyright ankur2011
The table persons has been created which has the attributes:•ID_NUM & COMPANY_ID with datatype NUMBER. ID_NUM cannothave a null value and should be unique i.e. serves as a PRIMARY KEY.•LAST_NAME & FIRST_NAME have VARCHAR2 datatype.•COMPANY stores the name of the firm where the person works.•WORTH is the total amount that the company has.•DESIGNATION is the rank or position that the person has
copyright ankur2011
The table info has INFO_NUM serving as the PRIMARY KEY
ID_NUM is the FOREIGN KEY ( actually PRIMARY KEY of table persons ).
copyright ankur2011
The table company has COMP_ID as its PRIMARY KEY
copyright ankur2011
copyright ankur2011
copyright ankur2011
copyright ankur2011
copyright ankur2011
Hey 28thOctober ishis
Birthday !!!!
copyright ankur2011
LARRY ELLISONCEO – ORACLE
DEALS INDATABASES !!!!
ABOUT ME:-
ANKUR RAINAB.Tech. I.T.(Pursuing)Interests:
•Poetry•Databases
copyright ankur2011
www.poetrypoem.com/ankurwww.facebook.com/[email protected]
ABOUT ME:-
ANKUR RAINAB.Tech. I.T.(Pursuing)Interests:
•Poetry•Databases
www.wikipedia.com www.oracle.com www.google.com Oracle University Press Books Modern Database Management
by Hoffer/Prescott/McFadden
www.wikipedia.com www.oracle.com www.google.com Oracle University Press Books Modern Database Management
by Hoffer/Prescott/McFadden
copyright ankur2011