Professional Documents
Culture Documents
P 7
P 7
Table created.
1 row created.
prathees-->/
Enter value for stu_name: kapli dev
Enter value for co_name: vb
Enter value for du_month: 2
Enter value for date_jion: 07-jan-2012
Enter value for co_fee: 3000
Enter value for institute: aptech
old 1: insert into stu_details
values('&stu_name','&co_name','&du_month','&date_jion','&co_fee','&institute')
new 1: insert into stu_details values('kapli dev','vb','2','07-jan-
2012','3000','aptech')
1 row created.
prathees-->/
Enter value for stu_name: ganguly
Enter value for co_name: assemply
Enter value for du_month: 5
Enter value for date_jion: 25-feb-2013
Enter value for co_fee: 10000
Enter value for institute: niit
old 1: insert into stu_details
values('&stu_name','&co_name','&du_month','&date_jion','&co_fee','&institute')
new 1: insert into stu_details values('ganguly','assemply','5','25-feb-
2013','10000','niit')
1 row created.
prathees-->/
Enter value for stu_name: dhoni
Enter value for co_name: java
Enter value for du_month: 6
Enter value for date_jion: 12-sep-2009
Enter value for co_fee: 5000
Enter value for institute: ssi
old 1: insert into stu_details
values('&stu_name','&co_name','&du_month','&date_jion','&co_fee','&institute')
new 1: insert into stu_details values('dhoni','java','6','12-sep-
2009','5000','ssi')
1 row created.
prathees-->/
Enter value for stu_name: dravid
Enter value for co_name: vc++
Enter value for du_month: 3
Enter value for date_jion: 07-mar-2013
Enter value for co_fee: 5000
Enter value for institute: aptech
old 1: insert into stu_details
values('&stu_name','&co_name','&du_month','&date_jion','&co_fee','&institute')
new 1: insert into stu_details values('dravid','vc++','3','07-mar-
2013','5000','aptech')
1 row created.
prathees-->/
Enter value for stu_name: agarkar
Enter value for co_name: foxpro
Enter value for du_month: 1
Enter value for date_jion: 15-apr-2012
Enter value for co_fee: 1000
Enter value for institute: niit
old 1: insert into stu_details
values('&stu_name','&co_name','&du_month','&date_jion','&co_fee','&institute')
new 1: insert into stu_details values('agarkar','foxpro','1','15-apr-
2012','1000','niit')
1 row created.
prathees-->/
Enter value for stu_name: srinath
Enter value for co_name: c
Enter value for du_month: 2
Enter value for date_jion: 12-jan2012
Enter value for co_fee: 300
Enter value for institute: vhnsnc
old 1: insert into stu_details
values('&stu_name','&co_name','&du_month','&date_jion','&co_fee','&institute')
new 1: insert into stu_details values('srinath','c','2','12-
jan2012','300','vhnsnc')
1 row created.
prathees-->/
Enter value for stu_name: kumble
Enter value for co_name: foxpro
Enter value for du_month: 2
Enter value for date_jion: 06-dec-2008
Enter value for co_fee: 700
Enter value for institute: ssi
old 1: insert into stu_details
values('&stu_name','&co_name','&du_month','&date_jion','&co_fee','&institute')
new 1: insert into stu_details values('kumble','foxpro','2','06-dec-
2008','700','ssi')
1 row created.
prathees-->/
Enter value for stu_name: kapli dev
Enter value for co_name: oracle
Enter value for du_month: 3
Enter value for date_jion: 01-nov-2007
Enter value for co_fee: 2500
Enter value for institute: vhnsnc
old 1: insert into stu_details
values('&stu_name','&co_name','&du_month','&date_jion','&co_fee','&institute')
new 1: insert into stu_details values('kapli dev','oracle','3','01-nov-
2007','2500','vhnsnc')
1 row created.
prathees-->/
Enter value for stu_name: gavaskar
Enter value for co_name: java
Enter value for du_month: 4
Enter value for date_jion: 01-jan-2011
Enter value for co_fee: 7000
Enter value for institute: vhnsnc
old 1: insert into stu_details
values('&stu_name','&co_name','&du_month','&date_jion','&co_fee','&institute')
new 1: insert into stu_details values('gavaskar','java','4','01-jan-
2011','7000','vhnsnc')
1 row created.
prathees-->/
Enter value for stu_name: kaif
Enter value for co_name: oracle
Enter value for du_month: 4
Enter value for date_jion: 01-aug-2012
Enter value for co_fee: 9500
Enter value for institute: ssi
old 1: insert into stu_details
values('&stu_name','&co_name','&du_month','&date_jion','&co_fee','&institute')
new 1: insert into stu_details values('kaif','oracle','4','01-aug-
2012','9500','ssi')
1 row created.
11 rows selected.
prathees-->commit;
Commit complete.
prathees-->ed
Wrote file afiedt.buf
INITCAP(STU_NAME)
--------------------
Tendulkar
Kapli Dev
Ganguly
Dhoni
Dravid
Agarkar
Srinath
Kumble
Kapli Dev
Gavaskar
Kaif
11 rows selected.
prathees-->ed
Wrote file afiedt.buf
1* select institute,sum(co_fee) from stu_details group by institute
prathees-->/
INSTITUTE SUM(CO_FEE)
-------------------- -----------
aptech 8000
vhnsnc 9800
ssi 22700
niit 11000
prathees-->ed
Wrote file afiedt.buf
11 rows selected.
STU_NAME SUM(CO_FEE)
-------------------- -----------
kapli dev 5500
MAX(CO_FEE)
-----------
10000
prathees-->ed
Wrote file afiedt.buf
MIN(CO_FEE)
-----------
300
STU_NAME
--------------------
srinath
ganguly
agarkar
tendulkar
kapli dev
kumble
gavaskar
dhoni
kaif
dravid
10 rows selected.
INSTITUTE COUNT(STU_NAME)
-------------------- ---------------
aptech 2
vhnsnc 3
ssi 4
niit 2
prathees-->ed
Wrote file afiedt.buf
course name
--------------------
KAPLI DEV
SRINATH
AGARKAR
KAIF
TENDULKAR
GANGULY
KUMBLE
GAVASKAR
DHONI
DRAVID
10 rows selected.
prathees-->select avg(co_fee) from stu_details;
AVG(CO_FEE)
-----------
4681.8182
TO_CHAR(DATE_JION,'
-------------------
12th november 2010
07th january 2012
25th february 2013
12th september 2009
07th march 2013
15th april 2012
12th january 2012
06th december 2008
01st november 2007
01st january 2011
01st august 2012
11 rows selected.
prathees-->ed
Wrote file afiedt.buf
*
ERROR at line 1:
ORA-00911: invalid character
prathees-->ed
Wrote file afiedt.buf
STU_NAME DATE_JION
-------------------- ---------
dravid 07-MAR-13
LEAST(SYS
---------
12-NOV-10
07-JAN-12
25-FEB-13
12-SEP-09
07-MAR-13
15-APR-12
12-JAN-12
06-DEC-08
01-NOV-07
01-JAN-11
01-AUG-12
11 rows selected.
SUB
---
ssi
apt
nii
ssi
apt
nii
vhn
ssi
vhn
vhn
ssi
11 rows selected.
SUB
---
sri
kap
gav
prathees-->ed
Wrote file afiedt.buf
STU_NAME
--------------------
kapli dev
agarkar
srinath
kaif
COUNT(DISTINCT(STU_NAME))
-------------------------
3
STU_NAME LENGTH(STU_NAME)
-------------------- ----------------
tendulkar 9
kapli dev 9
ganguly 7
dhoni 5
dravid 6
agarkar 7
srinath 7
kumble 6
kapli dev 9
gavaskar 8
kaif 4
11 rows selected.
prathees-->ed
Wrote file afiedt.buf
1* select stu_name from stu_details where du_month=3
prathees-->/
STU_NAME
--------------------
tendulkar
dravid
kapli dev