Vous êtes sur la page 1sur 52

Student Database & Management System

An

Industrial Project
Submitted

In partial fulfillment

For the award of the Degree

Of

Bachelor of Technology

In Department of Computer Science & Engineering

Submitted To:
Mr. Gaurav Sharma

1
Certificate
This is to certify that Project Report entitled

Student Database & Management system


is submitted by

Sayed Ali agha (CP10101408182)

B.Tech(CSE) Department in the year 2017 in partial fulfillment of

the Degree in Bachelor of Technology in Computer Science.

Mr. Gaurav Sharma DATE:

Associate Professor (CSE&IT) PLACE:

2
DECLARATION

I hereby declare that this submission is my own work and that, to the best of my knowledge and
belief, it contains no material previously published or written by another person nor material
which to a substantial extent has been accepted for the award of any other degree or diploma of
the university or other institute of higher learning, except where due acknowledgment has been
made in the text.

I have not submitted the matter presented in this project anywhere for the award of any other
degree.

Signature

Name :- SAYED ALI AGHA

Enrolment No.:- CP10101408182

3
Acknowledgement

It gives me a great sense of pleasure to present the report of the B. Tech Project undertaken
during B. Tech. 4TH Year. I owe special debt of gratitude to Mr. Gaurav Sharma for his
constant support and guidance throughout the course of Our work. His sincerity, thoroughness
and perseverance have been a constant source of inspiration for me. It is only his cognizant
efforts that our Endeavour's have seen light of the day.

We also take the opportunity to acknowledge the contribution of Mr. Manoj Kumar, Head of
Department of Computer Science for his full support and assistance during the development of
the project.
We also do not like to miss the opportunity to acknowledge the contribution of all faculty
members of the department for their kind assistance and cooperation during the development of
our project. Last but not the least, I acknowledge our friends for their contribution in the
completion of the project.

Signature

Name :- SAYED ALI AGHA

Enrolment No.:- CP10101408182

4
Table of Contents

Chapter 1

1.0 Introduction......................................................................................................6
1.1 Background of Current System........................................................................6
1.2 Problem Statement...........................................................................................7
1.3 Objectives.........................................................................................................7
1.3.1 General Objectives..............................................................................7
1.3.2 Specific Objectives.............................................................................7
1.4 Justification......................................................................................................7
1.5 Scope................................................................................................................7

Chapter 2
2.0 Literature Review.............................................................................................7
2.1 Justification for the use of Access Database....................................................7
2.2 Justification for the use of SQL........................................................................8
2.3 Feedback for every action.................................................................................8
2.4 Affordance........................................................................................................9
2.5 Constraints........................................................................................................9

Chapter 3

3.0 Methodology....................................................................................................10

Chapter 4
4.0 System Design.................................................................................................14
4.1 Data Catalogue................................................................................................14
4.1.1 Student table.................................................................................................14
4.1.2 Subject table.................................................................................................15
4.1.3 Lecturers table..............................................................................................15
Coding ..................................................................................................................17
Create student table...............................................................................................17
create project table.................................................................................................17
Create Student Project table..................................................................................17
5
Insert Statements...................................................................................................18
Insert Statements for student table........................................................................18
Insert Statements for project table.........................................................................19
Insert Statements for Student project table............................................................19

Insert Statements for Lecturer table.......................................................................19


Queries....................................................................................................................28

Chapter 5
5.0 Challenges, Recommendations and Conclusion...............................................50
5.1 Challenges.........................................................................................................50
5.2 Recommendations.............................................................................................52
5.3 Conclusion.........................................................................................................52
References...............................................................................................................53

6
STUDENT DATABASE & MANAGEMENT SYSTEM

ABSTRACT

Department has been experiencing a lot of problem especially data track and error in
retrieved information there fore it is of great importance to them to take advantage over
this system with the ability to store , process and gives out information with a lot of
accuracy.

1.0 INTRODUCTION

The student management system is an improved Student Management System. It can handle
all details about a student. The details include lecture, subject details, student personal details
e.t.c.
In case of current system they need a lot of time, manpower e.t.c here almost all work is
computerized. So the accuracy is maintained. Student management system is managed by an
administrator. It is the job of the administrator to insert update and monitor the whole process
.The system has four modules. They are
student details
subject details
lecturer details.

1.2 BACKGROUND OF CURENT SYSTEM.

The school of social sciences is a school which track the personal data of student registered in
the department each and every year and keeps the record.
Currently they use Microsoft exel to track their data but due to increasing population the
excel has become slow in data retrievement and therefore after preliminary investigation I
realize that there is a need for a better system.
The current system is a semi computerized system where the data are printed out at the end of
every semester to allow new entry of data. The current system they are using Is Microsoft
exell which still can not compute complex questions which can be handled by Microsoft
access.

7
1.3 Problem statement
The data in this system are kept manually especially after the end of every semester which makes
it difficult to search data after a good number of years when a student need to know some of his
details. It takes time to search on the pile of files. Also there are some questions which the system
can not answer which has to be done manually like if asked to find subjects which were done by
phanuel in 2006. You will have to search manually and write down which actually takes a lot of
time.

1.3 Objectives

1.3 .1 General objective.


To develop a database system which can easily store, retrieve and update data.

1.3.2 Specific objectives

The system is to eliminate their manual counting of student taking a particular


subject to a computerized system which can query.
The system is to shorten the time of retrieving data when required.

1.4 Justification
The current system is unreliable it is likely to deteriorate when the number of students
increase in the department. After proposed system every tasks will take short time and no
more wastage of files to keep some data which can stay within the system for over years.

1.5 Scope
The system will capture information about students personal details lectures and the
courses. Storing updating and retrieving in a fast and accurate way.

CHAPTER 2

2. O literature review

82.1 Justification for the use of Access Database

Access database comes over the rest of the databases due to a number of reasons. Being one
of the database pioneers, Access has became more easy to use as well as learning because of

8
this it make developing a new database system much quicker compared to others such as
Oracle, My sql etc. Microsoft access has been considered because of its ability to support and
enhance the appearance and navigation of html generated. (Carry N Prague,micheal R.
Irwin,and jennifer Reardon access 2003 bible pg952) The fact that access is always upgraded
makes it easier and compatible with new systems. For example Access 2003 uses ASP
technology which also complies with new technologies such as XML. (Cary N Prague,
Micheal R. Irwin, and Jennifer Reardon access 2003 bible)

Access was most preferred because of its ability to create dynamic data and html pages and
they can be displayed in Microsoft Explorer 5.0. Cary N Prague, Micheal R. Irwin, and
Jennifer Reardon access 2003 bible Access has the ability to export and import data through
ADODB which is a common connector among most web application. MySql Though MySql
is well known for being capable of handling very powerful and large data bases it also has a
couple of setbacks that the developer could not take chances with it. MySql does not support
transactions or concurrent update of complex table which if used would have become a huge
hindrance to the development of the system in the making. Oracle Oracle is very well known
for the use of SQL statements. It is one of the most expensive databases on the market. There
is no graphical interface for creation or modification of tables. This implies that the use of
this database is very time consuming.

2.2 Justification for the use of SQL

This is also another data retrieving language that is used by most databases i.e. Microsoft
Access, Oracle and MySql. There are quite a number of reasons for the use of SQL. One of
the most common reasons why most web developers use this language is because it is easy
to use and a standard query language that can be used for both database and web pages.
Because of the fact that SQL is can be used to manipulate data in all ways, it can be used to
retrieve, create, store or even update records.

2.3 Feedback- for every action on a system:

A feedback is necessary in order to confirm that the action been executed or accomplished
for without feedback it becomes difficult to continue or to move to the next level. On
designing the interaction design the designer require design principle guiding tool. Feedback
is one of the guiding principles, this is very essential for both the user and the designer
because it is an aspect that can lead them to the next step of their task. These principle are
based on common sense, experience as well as theory based knowledge. In order to have a
well designed interface the most common principles one ought to observe are consistency
that is the ability to observe uniformity, visibility, affordance and constraint. In the simplest
terms these principles could be defined as:
Uniformity:
Consistency is very vital and this refers to the ability to maintain uniformity in the system
interaction design. This implies the system follows a certain criteria for example: The use of
certain operations to log on to a system. All in all, consistence makes learning very easy and

9
quick for the new users as well as the existing ones. April 13, 2009 BSC(HONS) BUSINESS
INFORMATION SYSTEM 21
Visibility:
The visibility of functions enable the user to know how to manipulate or use the system, for
that matter its very important to mind where and how functions are placed, as for the case of
the system, the making of links and icons are very important because they have to be visible
enough.

2.4 Affordance:
Affordance is another principle that could refer to clues that enable the user to know how to
use the system it is also defined as an attribute of an object that allows the people to know
how to use it (interaction design beyond human-computer interaction 2nd edition by John
Wiley & sons, ltd page 33) though affordance is categorized into two and that is real and
perceived affordance.

2.5 Constraint:

Constraint can be referred to as controls or limitations that are within a system allowing what
actions to be done during the interaction the common constraint use is the deactivation of
some menus while another action still executes. This is very important because if graphical
representations that are used to constraint the users interpretation of a problem or
information. (Interaction design beyond human-computer interaction 2nd edition by John
Wiley &sons,ltd page 31) As for the case of the patients online booking system, it could be
referred to as perceived affordance because it is web base which means it is virtual. Therefore
all the mentioned principle should be present in a well designed system and all these can be
witnessed in the finished product of the patients booking system. There are quite a number of
problems that might a result from the need to apply all design principles. The attempt to
recreate physical objects into a virtual form in order to achieve affordance may result into
absolute difficulty to be used. In that case such a principle could be ignored. Visibility of
information may be compromised if constraint is over emphasized within an interface. All in
all these design interaction principles are all applies trade-offs may occur. (Interaction design
beyond human-computer interaction 2nd edition by John Wiley&Sons Ltd page34)

10
CHAPTER 3

3.0 Methodology

After the feasibility studies it was decision time to decide what methodology will suit the
development of the required system. The system to be developed for the project will be
done by applying software engineering tools and techniques. The analysis and design is
concerned with understanding the current and the proposed system requirements. In
other to do this systematically, a methodology will be applied so as to go through the
systems development life cycle.

The life cycle is the process of development which is to be followed in stages in order to
develop a computerized information system. These stages are to be developed in
sequence and one stage has to be completed before going on to the next stage.

It is a bit difficult to define the term methodology but still there are many definitions
from different authors. Here are some few of them

[Check land, 1981]: a methodology is a set of principles which in any particular


situation have to be reduced to a method uniquely suitable to that particular situation.

[Avision & Wood-Harper, 1995 Pg. 20]: a coherent collection of concepts, beliefs,
values and principles supported by resources to help a problem-solving group to perceive,
generate assess and carry out in a non-random way changes to the Information situation.

[Vision & Fitzgerald, 1988]: a methodology is a collection of procedures, Techniques,


tools and documentation aid which consists of phases...but a Methodology is more than
merely a collection of these things. It is usually based on some philosophical view,
otherwise it is merely a method, like a recipe.

After analysis and design here are some of the methodologies which I considered before
coming up with the final methodologies I used in order to achieve the development of a
system which will meet the specification of the users with bounds specified by the
business. be working and reliable meet the requirements of the users, i.e. meet the
business objectives of the users.

This is Yourdon Structured Method (YSM) and Soft Systems

Yourdon Structured Method (YSM) was derived from the works of Edward Yourdon,
Tom DeMarco and Larry Constantine. This methodology was considered for the project
development. Reasons for considering the methodology are:

It has been updated on a regular basis since its appearance on the system development
scene so it is hoped it will meet a modern day system development demands.

11
It also have a good modeling tool which is expected will suit the system developed.

Though the methodology was considered I found it will not be suitable for the

Development of the proposed system. The reasons for its rejection are:

It stages are not precisely defined and it is not well documented

It does not lay much emphasis on modeling current system. It advocates going straight
to the modeling of the required logical system. This is not advisable for the current
project as the current system needs to be understood to be able to propose a required
system.

Soft Systems Method which was derived from the work of Check land (1981, 1990) was
also considered for the project. The reasons behind the consideration were:

The methodology approach concentrates on the human aspects of a problem area it finds
way of improving human activities mainly business objectives which may or may not be
associated with automation i.e. computerization.

Despite these attributes the methodology was not deemed right for the development of
this system.

The reasons being: the methodology does not believe in breaking down complex
problems into smaller fragments.

Breaking down of the problem is needed for this project as this will help in
understanding of the problem domain very well.

It does not operate in a tightly defined and more prescriptive manner, i.e. it is not well
structured. It is flexible, which can lead to confusion in system development to a junior
analyst like me.

It identifies a problem but does not really suggest ways of solving the problem, leaving
the analyst to provide options for solving the problems themselves. One of the main
reasons for using a methodology is to tackle the problems associated with lack of control
and non-standard of methods in system development which is compromised by Soft
Systems Methodology.

After consideration of several methodologies there are two methodologies are used for
the development of the system. They are Structured Systems Analysis and Design
Method (SSADM4) Version 4

Prototyping For the design, Structured Systems Analysis and Design Method (SSADM)
will be used while Prototyping will be used for the implemented process. The type of
prototyping to be used will be incremental prototyping.

12
Structured System Analysis and Design Methods, SSADM is a systematic approach to
the analysis and design of Information Technology, IT applications designed by Central
Computer and Telecommunication Agency, CCTA. It is a collection of activities which
exploit a collection of techniques. These techniques include Data Flow Modeling,
Logical Data Modeling, Relational Data Analysis and many more.

The reasons behind using the methodology, Structured System Analysis and Design
Methods are very many. They are:

The methodology suits both large and small system development because it fits their
needs. It is designed to be customized and can be tailored by using only those elements
which are useful to the system been developed. This makes it a methodology which is
focused and effective

It advocates user involvement which gives a better understanding of the business


activities and user needs.

The methodology is well supported by documentation.

The methodology is widely known and taught, because of this there is an extensive skill
base available which helps in system maintenance of the system

Prototyping was chosen as the methodology to be used in the later phase of the
Development life cycle of the proposed system. This is due to the fact that SSADM does
not cover all part of the life cycle the other reasons why this

Methodology was chosen are listed below:

it involves a lot of user involvement in the new system development which will
guarantees a system of high quality.

It helps to work out the details of the design and to test them in a way that can not be
done on paper

It allows users and operators of the new system to see how the system may look and
feel and decide if there are new features to be added to it

By implementing a prototype, the users can see the inputs and outputs from the new
system and can decide on what format they want which can be changed until the user
requirements are met, before the final system is built.

It enable me and the user of the new system to make sure that the right system is been
built before too much time is and effort has been put in It enable the aspect of the system
which is of interest to be built and tried out

13
By spending time on the development and testing of prototypes first, rather than going
straight ahead to build the real thing, the finished version should be produced early.

It is a way of reducing risk, since any error noticed during development can be corrected
immediately because the cost of correcting these errors at a later stage can be quite
expensive.

Software package considered

The main software package considered here is Microsoft access and the reasons why it
was considered are:

It enhances quick information retrieval. It can be used on-line by the firm to be able to
answer clients queries quickly and efficiently regarding their cases.

It reduces data redundancy and duplication. With the Database Manager System,

DBMS duplication of files is avoided. This reduces wastage of space.

Consistency of data is maintained in a database system. The same data will appear
throughout the system when added or updated.

14
CHAPTER 4

1.0 System design.

4.1 Data Catalogue

Below are the data field to be used in the required system and the description of each of
the fields.

4.1.1 STUDENT TABLE.

Studentno - student number is a proper identification of students in the table


students. The primary key for the database table STUDENT

Studentname - it is the name of the STUDENT

Studentgender-it is the sex of the student(Male,Female)

Studentresidentialstatus - it indicates whether the student is a border or a


dayscoler

Studentphonenumber - it indicates the student contact phone number.

Studentyear it indicates each year a student is registering in the campus

studentsemester - indicates the semester registered in the year above.

Studentcountry- indicates the country a student coming from

15
4.1.2 SUBJECT TABLE.

Coursetitle It indicates the name given to a particular course e.g. Basic Mathematics.

Courseno it uniquely identifies the Course with the table.

Coursecode It shows the school code given to identify the course (e.g. DMCT 098)

Coursecredithours- it indicates the hours for which the course is taught in a week.

Courseroom- it indicates the room where the course is taught.

Course days- indicates the days in which a given course is taught e.g. MTW(Monday,
Tuesday, Wednesday)

4.1.3 LECTURERS TABLE

Lecturername - name of the lecturer

lecturernumber - primary key which uniquely identify the lecturer

lecturerphnenumber - telephone number for the lecturer.

16
Coding part
17
Article that create Student - Project database with insert, select, update,
delete etc...

Consider the student-project database.


STUDENT
STUDENT NO TEXT (3) PRIMARYKEY
STUDENT_NAME TEXT (10)
STUDENT_DOB DATE
STUDENT_DOJ DATE

PROJECT
PRJ_NO TEXT (3) PRIMARY KEY
PRJ_NAME TEXT (15)
PRJ_DUR NUMBER (2)
PRJ_PLATFORM TEXT (10)

STUDENT PROJECT
STUDENT_NO TEXT (3)
PRJ_NO TEXT (3)
DESIGNATION TEXT (10)
PRIMARYKEY (STUDENT_NO,PRJ_NO,DESIGNATION)
FOREIGN KEY(STUDENT_NO)
FOREIGN KEY(PRJ_NO)

Create student table


CREATE TABLE Student
(
st_no varchar2(5) PRIMARY KEY,
st_name varchar2(10),
st_dob date,
st_doj date
);

Create project table


CREATE TABLE Project
(
prj_no varchar2(3) PRIMARY KEY,
prj_name varchar2(15),
prj_dur number(2),
prj_platform varchar2(10)
);

Create studentproject table


CREATE TABLE StudentProject
(
st_no varchar2(3) REFERENCES STUDENT(st_no),
prj_no varchar2(3) REFERENCES PROJECT(prj_no),
designation varchar2(10),
PRIMARY KEY (st_no,prj_no,designation)

18
);

Description / definition of student table


desc student;

Name Null? Type


----------------------------------------- -------- -----------------------------------
ST_NO NOT NULL VARCHAR2(5)
ST_NAME VARCHAR2(10)
ST_DOB DATE
ST_DOJ DATE

Description / definition of project table


desc project;

Name Null? Type


-------------------------------------------- -------- -----------------------------------
PRJ_NO NOT NULL VARCHAR2(3)
PRJ_NAME VARCHAR2(15)
PRJ_DUR NUMBER(2)
PRJ_PLATFORM VARCHAR2(10)

Description / definition of studentproject table


desc StudentProject;

Name Null? Type


-------------------------------------------- -------- -----------------------------------
ST_NO NOT NULL VARCHAR2(3)
PRJ_NO NOT NULL VARCHAR2(3)
DESIGNATION VARCHAR2(10)

Insert statements

INSERT STATEMENT FOR STUDENT TABLE


INSERT INTO Student
(st_no,st_name,st_dob,st_doj) VALUES ('ST1','KRUNAL','15-AUG-1982','10-JAN-2003');

INSERT INTO Student


(st_no,st_name,st_dob,st_doj) VALUES ('ST2','BHAVESH','20-AUG-1983','10-JAN-2003');

INSERT INTO Student


(st_no,st_name,st_dob,st_doj) VALUES ('ST3','DARSHAN','15-MAR-1983','12-FEB-2003');

INSERT INTO Student


(st_no,st_name,st_dob,st_doj) VALUES ('ST4','DHAVAL','11-MAY-1982','11-MAR-2003');

INSERT INTO Student


(st_no,st_name,st_dob,st_doj) VALUES ('ST5','BIBIN','23-MAY-1983','12-MAR-2003');

INSERT INTO Student

19
(st_no,st_name,st_dob,st_doj) VALUES ('ST6','SAMIR','04-SEP-82','12-APR-2003');

INSERT INTO Student


(st_no,st_name,st_dob,st_doj) VALUES ('ST7','CHIRAG','04-JUN-82','12-FEB-2003');

INSERT STATEMENT FOR PROJECT TABLE


INSERT INTO Project
(prj_no,prj_name,prj_dur,prj_platform) VALUES ('P01','XYZ',6,'VB');

INSERT INTO Project


(prj_no,prj_name,prj_dur,prj_platform) VALUES ('P02','ABC',5,'JAVA');

INSERT INTO Project


(prj_no,prj_name,prj_dur,prj_platform) VALUES ('P03','LMN',6,'C++');

INSERT STATEMENT FOR STUDENTPROJECT TABLE


INSERT INTO StudentProject
(st_no,prj_no,designation) VALUES ('ST1','P01','PROGRAMMER');

INSERT INTO StudentProject


(st_no,prj_no,designation) VALUES ('ST2','P01','MANAGER');

INSERT INTO StudentProject


(st_no,prj_no,designation) VALUES ('ST3','P02','MANAGER');

INSERT INTO StudentProject


(st_no,prj_no,designation) VALUES ('ST4','P02','MANAGER');

INSERT INTO StudentProject


(st_no,prj_no,designation) VALUES ('ST5','P03','PROGRAMMER');

INSERT INTO StudentProject


(st_no,prj_no,designation) VALUES ('ST6','P03','MANAGER');

INSERT INTO StudentProject


(st_no,prj_no,designation) VALUES ('ST1','P03','PROGRAMMER');

INSERT INTO StudentProject


(st_no,prj_no,designation) VALUES ('ST1','P01','ANALYST');

INSERT INTO StudentProject


(st_no,prj_no,designation) VALUES ('ST3','P02','ANALYST');

Display student table records using select statement


SELECT * FROM STUDENT;

Output :

ST_NO ST_NAME ST_DOB ST_DOJ

ST1 KRUNAL 15-AUG-82 10-JAN-03

20
ST2 BHAVESH 20-AUG-83 10-JAN-03
ST3 DARSHAN 15-MAR-83 12-FEB-03
ST4 DHAVAL 11-MAY-82 11-MAR-03
ST5 BIBIN 23-MAY-83 12-MAR-03
ST6 SAMIR 04-SEP-82 12-APR-03
ST7 CHIRAG 04-JUN-82 12-FEB-03

Display project table records using select statement


SELECT * FROM PROJECT;

Output :

PRJ PRJ_NAME PRJ_DUR PRJ_PLATFO

P01 XYZ 6 VB
P02 ABC 5 JAVA
P03 LMN 6 C++

Display studentproject table records using select statement


SELECT * FROM STUDENTPROJECT;

Output :

ST_ PRJ DESIGNATION

ST1 P01 PROGRAMMER


ST2 P01 MANAGER
ST3 P02 MANAGER
ST4 P02 MANAGER
ST5 P03 PROGRAMMER
ST6 P03 MANAGER
ST1 P03 PROGRAMMER
ST1 P01 ANALYST
ST3 P02 ANALYST

Find number of student who participated in the project 'p01'


SELECT * FROM STUDENT WHERE st_no IN
(SELECT st_no FROM StudentProject WHERE prj_no = 'P01');

Output :

ST_NO ST_NAME ST_DOB ST_DOJ

ST1 KRUNAL 15-AUG-82 10-JAN-03


ST2 BHAVESH 20-AUG-83 10-JAN-03

Find number of student who participated in the more than single project.
SELECT distinct st_no AS "STUDENT WHITH MORE PROJECTS " FROM STUdentPROJECT A
WHERE 1 <
(
SELECT COUNT(Prj_NO) FROM STUdentPROJECT WHERE St_NO=A.St_NO GROUP BY St_NO

21
);

STUDENT WHITH MORE PROJECTS


---------------------------
ST1

Find the no of student who did not participated in any of the project
SELECT COUNT(*) AS "STUDENTS NOT CONTAINS PROJECTS" FROM STUDENT WHERE st_no IN
(
SELECT st_no from student where st_no
NOT IN
(select st_no from StudentProject)
);

Output :

STUDENTS NOT CONTAINS PROJECTS


------------------------------
1

Display student_no, prj_name,duration


SELECT S.st_no,P.prj_name,P.prj_dur
from Student S,Project P,StudentProject SP
where S.st_no = SP.st_no and P.prj_no = SP.prj_no;
Output :

ST_NO PRJ_NAME PRJ_DUR

ST1 LMN 6
ST1 XYZ 6
ST2 XYZ 6
ST3 ABC 5
ST4 ABC 5
ST5 LMN 6
ST6 LMN 6

Display prj_no,total no student of the project


SELECT prj_no,count(st_no) AS "TOTAL STUDENTS" from StudentProject
group by prj_no;

Output :

PRJ TOTAL STUDENTS

P01 2
P02 2
P03 3

Display a student_no,name, total no of projects.


SELECT S.st_no,S.st_name,count(SP.prj_no) AS "TOTAL PROJECTS"
from Student S, StudentProject SP

22
where S.st_no = SP.st_no
group by S.st_no,S.st_name;

Output :

ST_NO ST_NAME TOTAL PROJECTS

ST1 KRUNAL 2
ST2 BHAVESH 1
ST3 DARSHAN 1
ST4 DHAVAL 1
ST5 BIBIN 1
ST6 SAMIR 1

Display the information(no,name,age) of student who made the project in


java.
SELECT st_no,st_name,ROUND((SYSDATE-st_DOB)/365) AS AGE from STUDENT
where st_no IN
(
SELECT st_no from StudentProject where prj_no In
(SELECT prj_no from Project where prj_platform = 'JAVA')
);

Output :

ST_NO ST_NAME AGE

ST3 DARSHAN 21
ST4 DHAVAL 22

Display the detail of student who is a programmer.


SELECT * from Student where st_no IN
(SELECT st_no from StudentProject where designation = 'PROGRAMMER');

Output :

ST_NO ST_NAME ST_DOB ST_DOJ

ST1 KRUNAL 15-AUG-82 10-JAN-03


ST5 BIBIN 23-MAY-83 12-MAR-03

Display the informaton of student who is as programmer and analyst in


the same project. (Can use table Alias)
SELECT * from student where st_no In
(
SELECT SP1.st_no from StudentProject SP1,StudentProject SP2
where SP1.st_no = SP2.st_no AND
SP1.designation = 'ANALYST' AND
SP2.designation = 'ANALYST'
);

Output :

23
ST_NO ST_NAME ST_DOB ST_DOJ

ST1 KRUNAL 15-AUG-82 10-JAN-03


ST3 DARSHAN 15-MAR-83 12-FEB-03

Display the student who played the max designation(e.g.


manager,programmer) in the same project.
select st_no,COUNT(designation) from studentproject group by st_no,prj_no
HAVING COUNT(designation) =
(SELECT MAX(temp) FROM
(select COUNT(designation) temp from studentproject group by st_no,prj_no));

Output :

ST_ COUNT(DESIGNATION)

ST1 2
ST3 2

Display the info of the project with greater than single no of student
involve in it.
SELECT COUNT(st_no),prj_no from StudentProject group by prj_no;

Output :

COUNT(ST_NO) PRJ

3 P01
3 P02
3 P03

Display detail of the youngest student.


SELECT * from Student where st_dob = (SELECT MAX(st_dob) from Student);

ST_NO ST_NAME ST_DOB ST_DOJ

ST2 BHAVESH 20-AUG-83 10-JAN-03

Display the info of the project which duration is the largest.


SELECT * FROM Project WHERE prj_dur = (SELECT max(prj_dur) from Project);

Output :

PRJ PRJ_NAME PRJ_DUR PRJ_PLATFO

P01 XYZ 6 VB
P03 LMN 6 C++

24
Display the info of the student who works as a prog and as a analyst not
for the same project.(can Use Table alias)
SELECT * FROM Student where st_no IN
(
SELECT distinct SP1.st_no
FROM StudentProject SP1,StudentProject SP2
where SP1.designation IN ('PROGRAMMER','ANALYST') and
SP2.designation In ('PROGRAMMER','ANALYST') and
SP1.prj_no <> SP2.prj_no and
SP1.st_no = SP2.st_no
);

Output :

ST_NO ST_NAME ST_DOB ST_DOJ

ST1 KRUNAL 15-AUG-82 10-JAN-03

Display the info of the student who works as a programmer and not as an
analyst for the same project.(can Use Table alias)
SELECT * FROM Student where st_no IN
(
SELECT distinct SP1.st_no
FROM StudentProject SP1,StudentProject SP2
where SP1.designation = 'PROGRAMMER' and
SP1.designation <> 'ANALYST' and
SP2.designation = 'PROGRAMMER' and
SP2.designation <> 'ANALYST' and
SP1.prj_no <> SP2.prj_no and
SP1.st_no = SP2.st_no
);

Output :

ST_NO ST_NAME ST_DOB ST_DOJ

ST1 KRUNAL 15-AUG-82 10-JAN-03

Display the info of the student who participated in the project where total
no of the student should be exact three.
select * from student where st_no in(SELECT st_no from
(
SELECT COUNT(st_no),prj_no from StudentProject group by prj_no
HAVING COUNT(st_no) = 3
) a,StudentProject b where a.prj_no = b.prj_no);

Output :

ST_NO ST_NAME ST_DOB ST_DOJ

ST1 KRUNAL 15-AUG-82 10-JAN-03


ST2 BHAVESH 20-AUG-83 10-JAN-03

25
ST3 DARSHAN 15-MAR-83 12-FEB-03
ST4 DHAVAL 11-MAY-82 11-MAR-03
ST5 BIBIN 23-MAY-83 12-MAR-03
ST6 SAMIR 04-SEP-82 12-APR-03

Display the info. of oldest Student with its age.


SELECT st_no,st_name,ROUND((SYSDATE-st_DOB)/365) AS AGE
from Student where st_dob =
(SELECT MIN(st_dob) from Student);

Output :

ST_NO ST_NAME AGE

ST4 DHAVAL 22

SELECT * FROM CARDINFO WHERE ACCOUNT_NUMBER BETWEEN


'09241A1272' AND '09241A1285';
OUTPUT:

AC C O UNT _NUMB E R C AR D _NUMB E R C AR D _T Y P E


09241A1272 0123-4567-0924-1272 D E B IT
09241A1273 0123-4567-0924-1273 D E B IT
09241A1274 0123-4567-0924-1274 AT M
09241A1276 0123-4567-0924-1276 AT M
09241A1277 0123-4567-0924-1277 AT M
09241A1278 0123-4567-0924-1278 AT M
09241A1280 0123-4567-0924-1280 D E B IT
09241A1281 0123-4567-0924-1281 AT M
09241A1282 0123-4567-0924-1282 AT M
09241A1283 0123-4567-0924-1283 D E B IT
09241A1284 0123-4567-0924-1284 AT M
09241A1285 0123-4567-0924-1285 AT M

SELECT * FROM CARDINFO WHERE CARD_TYPE='DEBIT';


OUTPUT:

26
ID
AC C O UNT _NUMB E R C AR D _NUMB E R C AR D _T Y P E
09241A1257 0123-4567-0924-1257 D E B IT
09241A1261 0123-4567-0924-1261 D E B IT
09241A1269 0123-4567-0924-1269 D E B IT
09241A1272 0123-4567-0924-1272 D E B IT
09241A1273 0123-4567-0924-1273 D E B IT
09241A1280 0123-4567-0924-1280 D E B IT
09241A1283 0123-4567-0924-1283 D E B IT
09241A1299 0123-4567-0924-1299 D E B IT

SELECT * FROM CARDINFO WHERE ACCOUNT_NUMBER BETWEEN


'09241A1272' AND '09241A1285' AND CARD_TYPE='ATM';
OUTPUT:

AC C O UNT _NUMB E R C AR D _NUMB E R C AR D _T Y P E


09241A1274 0123-4567-0924-1274 AT M
09241A1276 0123-4567-0924-1276 AT M
09241A1277 0123-4567-0924-1277 AT M
09241A1278 0123-4567-0924-1278 AT M
09241A1281 0123-4567-0924-1281 AT M
09241A1282 0123-4567-0924-1282 AT M
09241A1284 0123-4567-0924-1284 AT M
09241A1285 0123-4567-0924-1285 AT M

SELECT * FROM CUSINFO WHERE GENDER='M' AND BALANCE<7500;


OUTPUT:

27
AC C O UNT _NUMB E R C US _NAME G E ND E R AG E AD D R E S S B AL ANC E
09241A1256 Abhiram M 19 patanc heru 5600
09241A1257 Akhil R eddy M 19 lb nagar 5700
09241A1258 Ambedkar M 19 c hintal 5800
09241A1259 S ai K ris hna M 19 niz ampet 5900
09241A1260 Anudeep M 19 s r nagar 6000
09241A1261 Avinas h M 19 vidyanagar 6100
09241A1262 B harath M 19 miyapur 6200
09241A1263 C haitanya M 19 balanagar 6300
09241A1266 D heeraj M 19 niz ampet 6600
09241A1269 G angadhar M 19 niz ampet 6900
09241A1270 G autham M 19 lb nagar 7000
09241A1272 G owtham M 19 niz ampet 7200
09241A1273 Hars havardhan M 19 niz ampet 7300
09241A1274 Hars ha yadav M 19 kukatpally 7400

SELECT * FROM CUSINFO WHERE GENDER='M' AND CUS_NAME LIKE '%h';


OUTPUT:
AC C O UNT _NUMB E R C US _NAME G E ND E R AG E AD D R E S S B AL ANC E B R ANC H
09241A1261 Avinas h M 19 vidyanagar 6100 s ec underabad
09241A1262 B harath M 19 miyapur 6200 miyapur
09241A1277 J ayanth M 19 kukatpally 7700 kukatpally
09241A1283 Mahes h M 19 khairatabad 8300 khairatabad
09241A1299 R ames h M 19 niz ampet 9900 kukatpally

SELECT * FROM CUSINFO WHERE BRANCH='miyapur' AND BALANCE


BETWEEN 6000 AND 8000;
OUTPUT:
AC C O UNT _NUMB E R C US _NAME GE ND E R AGE AD D R E S S B AL ANC E B R ANC H
09241A1262 B harath M 19 miyapur 6200 miyapur
09241A1271 Geetha F 19 miyapur 7100 miyapur

SELECT * FROM CUSINFO WHERE BALANCE<7000 AND AGE=19 AND


BRANCH='kukatpally';

28
OUTPUT:
ACCOUNT_NUMBER CUS_NAME GENDER AGE ADDRESS BALANCE
09241A1259 Sai Krishna M 19 nizampet 5900
09241A1265 Dharani F 19 nizampet 6500

SELECT
ACCOUNT_NUMBER,CUS_NAME,GENDER,AGE,BALANCE,BRANCH,ADDR
ESS,ROW_NUMBER() OVER(ORDER BY (BALANCE) DESC) AS RANK FROM
CUSINFO;
OUTPUT:

29
ACCOUNT_NUMBER CUS_NAME GENDER AGE BALANCE BRANCH ADDRESS RANK
09241A1299 Ramesh M 19 9900 kukatpally nizampet 1
09241A1298 Rammohan M 19 9800 kukatpally nizampet 2
09241A1297 Rajshekhar M 19 9700 dsnr dsnr 3
09241A1296 Preetham M 19 9600 dsnr lb nagar 4
09241A1295 Praveen M 19 9500 kukatpally nizampet 5
09241A1294 Prathiba F 19 9400 kukatpally nizampet 6
09241A1293 Pooja F 19 9300 kukatpally vasanth nagar 7
09241A1292 Pannaga F 19 9200 kukatpally nizampet 8
09241A1291 Nikhil M 19 9100 mehidipatnam mehidipatnam 9
09241A1290 Neha F 19 9000 kukatpally nizampet 10
09241A1288 Mehabunnisa F 19 8800 mehidipatnam mehdipatnam 11
09241A1287 Meghana sindhoori
F 19 8700 kukatpally nizampet 12
09241A1286 Meghana F 19 8600 sr nagar sr nagar 13
09241A1285 Manasa F 19 8500 kukatpally nizampet 14
09241A1284 Manasa ReddyF 19 8400 miyapur lingampally 15
09241A1282 Lillyrani F 19 8200 balanagar chintal 16
09241A1281 Lavanya F 19 8100 miyapur lingampally 17
09241A1280 Krishna M 19 8000 mehidipatnam mehidipatnam 18
09241A1279 Krishna Chaitanya
M 19 7900 secunderabad secunderabad 19
09241A1278 Karthik M 19 7800 sr nagar erragadda 20
09241A1277 Jayanth M 19 7700 kukatpally kukatpally 21
09241A1276 Himaja F 19 7600 sr nagar sr nagar 22
09241A1274 Harsha yadav M 19 7400 kukatpally kukatpally 23
09241A1273 HarshavardhanM 19 7300 kukatpally nizampet 24
09241A1272 Gowtham M 19 7200 kukatpally nizampet 25
09241A1271 Geetha F 19 7100 miyapur miyapur 26
09241A1270 Gautham M 19 7000 dsnr lb nagar 27
09241A1268 Divyani F 19 6800 himayathnagar himayathnagar 28
09241A1265 Dharani F 19 6500 kukatpally nizampet 29
09241A1264 Deepika F 19 6400 secunderabad jamestreet 30
09241A1262 Bharath M 19 6200 miyapur miyapur 31
09241A1261 Avinash M 19 6100 secunderabad vidyanagar 32
09241A1260 Anudeep M 19 6000 sr nagar sr nagar 33

SELECT c.CUS_NAME,c.BRANCH,g.CARD_TYPE,g.CARD_NUMBER from


CUSINFO c,CARDINFO g WHERE
c.ACCOUNT_NUMBER=g.ACCOUNT_NUMBER;
OUTPUT:

30
CUS_NAME BRANCH CARD_TYPE CARD_NUMBER
Sai Krishna kukatpally ATM 0123-4567-0924-1259
Anudeep sr nagar ATM 0123-4567-0924-1260
Avinash secunderabad DEBIT 0123-4567-0924-1261
Bharath miyapur ATM 0123-4567-0924-1262
Deepika secunderabad ATM 0123-4567-0924-1264
Dharani kukatpally ATM 0123-4567-0924-1265
Divyani himayathnagar ATM 0123-4567-0924-1268
Gautham dsnr ATM 0123-4567-0924-1270
Geetha miyapur ATM 0123-4567-0924-1271
Gowtham kukatpally DEBIT 0123-4567-0924-1272
Harshavardhan kukatpally DEBIT 0123-4567-0924-1273
Harsha yadav kukatpally ATM 0123-4567-0924-1274
Himaja sr nagar ATM 0123-4567-0924-1276
Jayanth kukatpally ATM 0123-4567-0924-1277
Karthik sr nagar ATM 0123-4567-0924-1278
Krishna mehidipatnam DEBIT 0123-4567-0924-1280
Lavanya miyapur ATM 0123-4567-0924-1281
Lillyrani balanagar ATM 0123-4567-0924-1282
Manasa Reddy miyapur ATM 0123-4567-0924-1284
Manasa kukatpally ATM 0123-4567-0924-1285
Meghana sr nagar ATM 0123-4567-0924-1286
Mehabunnisa mehidipatnam ATM 0123-4567-0924-1288
Neha kukatpally ATM 0123-4567-0924-1290
Nikhil mehidipatnam ATM 0123-4567-0924-1291
Pannaga kukatpally ATM 0123-4567-0924-1292
Pooja kukatpally ATM 0123-4567-0924-1293
Prathiba kukatpally ATM 0123-4567-0924-1294
Praveen kukatpally ATM 0123-4567-0924-1295
Preetham dsnr ATM 0123-4567-0924-1296
Rajshekhar dsnr ATM 0123-4567-0924-1297
Rammohan kukatpally ATM 0123-4567-0924-1298
Ramesh kukatpally DEBIT 0123-4567-0924-1299

SELECT c.ACCOUNT_NUMBER,r.CUS_NAME,g.CARD_TYPE FROM CARDINFO


g,ACCINFO c,CUSTINFO1 r WHERE
c.ACCOUNT_NUMBER=r.ACCOUNT_NUMBER AND
g.ACCOUNT_NUMBER=r.ACCOUNT_NUMBER;
OUTPUT:

31
ACCOUNT_NUMBER CUS_NAME CARD_TYPE
09241A1259 Sai Krishna ATM
09241A1260 Anudeep ATM
09241A1261 Avinash DEBIT
09241A1262 Bharath ATM
09241A1264 Deepika ATM
09241A1265 Dharani ATM
09241A1268 Divyani ATM
09241A1270 Gautham ATM
09241A1271 Geetha ATM
09241A1272 Gowtham DEBIT
09241A1273 HarshavardhanDEBIT
09241A1274 Harsha yadav ATM
09241A1276 Himaja ATM
09241A1277 Jayanth ATM
09241A1278 Karthik ATM
09241A1280 Krishna DEBIT
09241A1281 Lavanya ATM
09241A1282 Lillyrani ATM
09241A1284 Manasa ReddyATM
09241A1285 Manasa ATM
09241A1286 Meghana ATM
09241A1288 Mehabunnisa ATM
09241A1290 Neha ATM
09241A1291 Nikhil ATM
09241A1292 Pannaga ATM
09241A1293 Pooja ATM
09241A1294 Prathiba ATM
09241A1295 Praveen ATM
09241A1296 Preetham ATM
09241A1297 Rajshekhar ATM
09241A1298 Rammohan ATM
09241A1299 Ramesh DEBIT

SELECT a.ACCOUNT_NUMBER,c.CUS_NAME,s.CARD_NUMBER,s.CARD_TYPE
FROM ACCINFO a,CUSTINFO1 C,CARDINFO s WHERE
a.ACCOUNT_NUMBER=c.ACCOUNT_NUMBER AND
c.ACCOUNT_NUMBER=s.ACCOUNT_NUMBER;

32
OUTPUT:
ACCOUNT_NUMBER CUS_NAME CARD_NUMBER CARD_TYPE
09241A1259 Sai Krishna 0123-4567-0924-1259 ATM
09241A1260 Anudeep 0123-4567-0924-1260 ATM
09241A1261 Avinash 0123-4567-0924-1261 DEBIT
09241A1262 Bharath 0123-4567-0924-1262 ATM
09241A1264 Deepika 0123-4567-0924-1264 ATM
09241A1265 Dharani 0123-4567-0924-1265 ATM
09241A1268 Divyani 0123-4567-0924-1268 ATM
09241A1270 Gautham 0123-4567-0924-1270 ATM
09241A1271 Geetha 0123-4567-0924-1271 ATM
09241A1272 Gowtham 0123-4567-0924-1272 DEBIT
09241A1273 Harshavardhan0123-4567-0924-1273 DEBIT
09241A1274 Harsha yadav 0123-4567-0924-1274 ATM
09241A1276 Himaja 0123-4567-0924-1276 ATM
09241A1277 Jayanth 0123-4567-0924-1277 ATM
09241A1278 Karthik 0123-4567-0924-1278 ATM
09241A1280 Krishna 0123-4567-0924-1280 DEBIT
09241A1281 Lavanya 0123-4567-0924-1281 ATM
09241A1282 Lillyrani 0123-4567-0924-1282 ATM
09241A1284 Manasa Reddy0123-4567-0924-1284 ATM
09241A1285 Manasa 0123-4567-0924-1285 ATM
09241A1286 Meghana 0123-4567-0924-1286 ATM
09241A1288 Mehabunnisa 0123-4567-0924-1288 ATM
09241A1290 Neha 0123-4567-0924-1290 ATM
09241A1291 Nikhil 0123-4567-0924-1291 ATM
09241A1292 Pannaga 0123-4567-0924-1292 ATM
09241A1293 Pooja 0123-4567-0924-1293 ATM
09241A1294 Prathiba 0123-4567-0924-1294 ATM
09241A1295 Praveen 0123-4567-0924-1295 ATM
09241A1296 Preetham 0123-4567-0924-1296 ATM
09241A1297 Rajshekhar 0123-4567-0924-1297 ATM
09241A1298 Rammohan 0123-4567-0924-1298 ATM
09241A1299 Ramesh 0123-4567-0924-1299 DEBIT

SELECT a.BALANCE,c.CUS_NAME,s.CARD_TYPE FROM ACCINFO


a,CUSTINFO1 C,CARDINFO s WHERE
a.ACCOUNT_NUMBER=c.ACCOUNT_NUMBER AND
c.ACCOUNT_NUMBER=s.ACCOUNT_NUMBER;
OUTPUT:

33
BALANCE CUS_NAME CARD_TYPE
5900 Sai Krishna ATM
6000 Anudeep ATM
6100 Avinash DEBIT
6200 Bharath ATM
6400 Deepika ATM
6500 Dharani ATM
6800 Divyani ATM
7000 Gautham ATM
7100 Geetha ATM
7200 Gowtham DEBIT
7300 HarshavardhanDEBIT
7400 Harsha yadav ATM
7600 Himaja ATM
7700 Jayanth ATM
7800 Karthik ATM
8000 Krishna DEBIT
8100 Lavanya ATM
8200 Lillyrani ATM
8400 Manasa ReddyATM
8500 Manasa ATM
8600 Meghana ATM
8800 Mehabunnisa ATM
9000 Neha ATM
9100 Nikhil ATM
9200 Pannaga ATM
9300 Pooja ATM
9400 Prathiba ATM
9500 Praveen ATM
9600 Preetham ATM
9700 Rajshekhar ATM
9800 Rammohan ATM

SELECT a.BALANCE,c.CUS_NAME,s.CARD_TYPE FROM ACCINFO


a,CUSTINFO1 C,CARDINFO s WHERE
a.ACCOUNT_NUMBER=c.ACCOUNT_NUMBER AND
a.ACCOUNT_NUMBER=s.ACCOUNT_NUMBER AND a.BALANCE>5500 AND
a.BALANCE<6500;

34
OUTPUT:
BALANCE CUS_NAME CARD_TYPE
5900 Sai Krishna ATM
6000 Anudeep ATM
6100 Avinash DEBIT
6200 Bharath ATM

SELECT
c.CUS_NAME,c.BRANCH,c.GENDER,c.ADDRESS,l.LOAN_TYPE,l.INTEREST
FROM CUSTINFO1 c,LOANINFO l WHERE
c.ACCOUNT_NUMBER=l.ACCOUNT_NUMBER;
OUTPUT:

35
CUS_NAME BRANCH GENDER ADDRESS LOAN_TYPE INTEREST
Sai Krishna kukatpally M nizampet studentloan 5%
Anudeep sr nagar M sr nagar studentloan 5%
Avinash secunderabad M vidyanagar houseloan 5%
Bharath miyapur M miyapur studentloan 5%
Deepika secunderabad F jamestreet studentloan 5%
Dharani kukatpally F nizampet studentloan 5%
Divyani himayathnagar F himayathnagar studentloan 5%
Gautham dsnr M lb nagar studentloan 5%
Geetha miyapur F miyapur studentloan 5%
Gowtham kukatpally M nizampet houseloan 13%
Harshavardhankukatpally M nizampet houseloan 13%
Harsha yadav kukatpally M kukatpally studentloan 5%
Himaja sr nagar F sr nagar studentloan 5%
Jayanth kukatpally M kukatpally studentloan 5%
Karthik sr nagar M erragadda studentloan 5%
Krishna mehidipatnam M mehidipatnam houseloan 13%
Lavanya miyapur F lingampally studentloan 5%
Lillyrani balanagar F chintal studentloan 5%
Manasa Reddy miyapur F lingampally studentloan 5%
Manasa kukatpally F nizampet studentloan 5%
Meghana sr nagar F sr nagar studentloan 5%
Mehabunnisa mehidipatnam F mehdipatnam studentloan 5%
Neha kukatpally F nizampet studentloan 5%
Nikhil mehidipatnam M mehidipatnam studentloan 5%
Pannaga kukatpally F nizampet studentloan 5%
Pooja kukatpally F vasanth nagar studentloan 5%
Prathiba kukatpally F nizampet studentloan 5%
Praveen kukatpally M nizampet studentloan 5%
Preetham dsnr M lb nagar studentloan 5%
Rajshekhar dsnr M dsnr studentloan 5%
Rammohan kukatpally M nizampet studentloan 5%

SELECT * FROM LOANINFO WHERE ACCOUNT_BRANCH LIKE'b%';


OUTPUT:
ACCOUNT_NUMBER ACCOUNT_BRANCH LOAN_TYPE LOAN_AMOUNT INTEREST
09241A1258 balanagar studentloan 50000 5%
09241A1263 balanagar studentloan 50000 5%
09241A1282 balanagar studentloan 50000 5%

SELECT * FROM LOANINFO WHERE ACCOUNT_BRANCH LIKE'k%';


OUTPUT:

36
ID
ACCOUNT_NUMBER ACCOUNT_BRANCH LOAN_TYPE LOAN_AMOUNT INTEREST
09241A1259 kukatpally studentloan 50000 5%
09241A1265 kukatpally studentloan 50000 5%
09241A1266 kukatpally studentloan 50000 5%
09241A1267 kukatpally studentloan 50000 5%
09241A1269 kukatpally houseloan 50000 5%
09241A1272 kukatpally houseloan 100000 13%
09241A1273 kukatpally houseloan 100000 13%
09241A1274 kukatpally studentloan 50000 5%
09241A1277 kukatpally studentloan 50000 5%
09241A1285 kukatpally studentloan 50000 5%
09241A1290 kukatpally studentloan 50000 5%
09241A1292 kukatpally studentloan 50000 5%
09241A1293 kukatpally studentloan 50000 5%
09241A1294 kukatpally studentloan 50000 5%
09241A1295 kukatpally studentloan 50000 5%
09241A1298 kukatpally studentloan 50000 5%

SELECT * FROM ACCINFO WHERE ACCOUNT_BRANCH='sr nagar' and


balance>6000;
OUTPUT:
ID
AC C O UNT _NUMB E R AC C O UNT _T Y P E AC C O UNT _B R ANC H B AL ANC E
09241A1276 fixed s r nagar 7600
09241A1278 s avings s r nagar 7800
09241A1283 s avings s r nagar 8300
09241A1286 fixed s r nagar 8600

SELECT
c.CUS_NAME,c.BRANCH,c.GENDER,c.ADDRESS,l.LOAN_TYPE,l.INTEREST,f.CA
RD_NUMBER,f.CARD_TYPE FROM CUSTINFO1 c,LOANINFO l, CARDINFO f
WHERE c.ACCOUNT_NUMBER=l.ACCOUNT_NUMBER AND
l.ACCOUNT_NUMBER=f.ACCOUNT_NUMBER;

37
OUTPUT:
Avinash secunderabad M vidyanagar houseloan 5% 0123-4567-0924-1261
Bharath miyapur M miyapur studentloan 5% 0123-4567-0924-1262
Deepika secunderabad F jamestreet studentloan 5% 0123-4567-0924-1264
Dharani kukatpally F nizampet studentloan 5% 0123-4567-0924-1265
Divyani himayathnagar F himayathnagar studentloan 5% 0123-4567-0924-1268
Gautham dsnr M lb nagar studentloan 5% 0123-4567-0924-1270
Geetha miyapur F miyapur studentloan 5% 0123-4567-0924-1271
Gowtham kukatpally M nizampet houseloan 13% 0123-4567-0924-1272
Harshavardhankukatpally M nizampet houseloan 13% 0123-4567-0924-1273
Harsha yadav kukatpally M kukatpally studentloan 5% 0123-4567-0924-1274
Himaja sr nagar F sr nagar studentloan 5% 0123-4567-0924-1276
Jayanth kukatpally M kukatpally studentloan 5% 0123-4567-0924-1277
Karthik sr nagar M erragadda studentloan 5% 0123-4567-0924-1278
Krishna mehidipatnam M mehidipatnam houseloan 13% 0123-4567-0924-1280
Lavanya miyapur F lingampally studentloan 5% 0123-4567-0924-1281
Lillyrani balanagar F chintal studentloan 5% 0123-4567-0924-1282
Manasa Reddy miyapur F lingampally studentloan 5% 0123-4567-0924-1284
Manasa kukatpally F nizampet studentloan 5% 0123-4567-0924-1285
Meghana sr nagar F sr nagar studentloan 5% 0123-4567-0924-1286
Mehabunnisa mehidipatnam F mehdipatnam studentloan 5% 0123-4567-0924-1288
Neha kukatpally F nizampet studentloan 5% 0123-4567-0924-1290
Nikhil mehidipatnam M mehidipatnam studentloan 5% 0123-4567-0924-1291
Pannaga kukatpally F nizampet studentloan 5% 0123-4567-0924-1292
Pooja kukatpally F vasanth nagar studentloan 5% 0123-4567-0924-1293
Prathiba kukatpally F nizampet studentloan 5% 0123-4567-0924-1294
Praveen kukatpally M nizampet studentloan 5% 0123-4567-0924-1295
Preetham dsnr M lb nagar studentloan 5% 0123-4567-0924-1296
Rajshekhar dsnr M dsnr studentloan 5% 0123-4567-0924-1297
Rammohan kukatpally M nizampet studentloan 5% 0123-4567-0924-1298

SELECT * FROM CARDINFO;


OUTPUT:

38
AC C O UNT _NUMB E R C AR D _NUMB E R C AR D _T Y P E
09241A1256 0123-4567-0924-1256 AT M
09241A1257 0123-4567-0924-1257 D E B IT
09241A1258 0123-4567-0924-1258 AT M
09241A1259 0123-4567-0924-1259 AT M
09241A1260 0123-4567-0924-1260 AT M
09241A1261 0123-4567-0924-1261 D E B IT
09241A1262 0123-4567-0924-1262 AT M
09241A1263 0123-4567-0924-1263 AT M
09241A1264 0123-4567-0924-1264 AT M
09241A1265 0123-4567-0924-1265 AT M
09241A1266 0123-4567-0924-1266 AT M
09241A1267 0123-4567-0924-1267 AT M
09241A1268 0123-4567-0924-1268 AT M
09241A1269 0123-4567-0924-1269 D E B IT
09241A1270 0123-4567-0924-1270 AT M
09241A1271 0123-4567-0924-1271 AT M
09241A1272 0123-4567-0924-1272 D E B IT
09241A1273 0123-4567-0924-1273 D E B IT
09241A1274 0123-4567-0924-1274 AT M
09241A1276 0123-4567-0924-1276 AT M
09241A1277 0123-4567-0924-1277 AT M
09241A1278 0123-4567-0924-1278 AT M
09241A1280 0123-4567-0924-1280 D E B IT
09241A1281 0123-4567-0924-1281 AT M
09241A1282 0123-4567-0924-1282 AT M
09241A1283 0123-4567-0924-1283 D E B IT
09241A1284 0123-4567-0924-1284 AT M
09241A1285 0123-4567-0924-1285 AT M
09241A1286 0123-4567-0924-1286 AT M
09241A1288 0123-4567-0924-1288 AT M
09241A1290 0123-4567-0924-1290 AT M
09241A1291 0123-4567-0924-1291 AT M
09241A1292 0123-4567-0924-1292 AT M
09241A1293 0123-4567-0924-1293 AT M
09241A1294 0123-4567-0924-1294 AT M
09241A1295 0123-4567-0924-1295 AT M
09241A1296 0123-4567-0924-1296 AT M
09241A1297 0123-4567-0924-1297 AT M
09241A1298 0123-4567-0924-1298 AT M
09241A1299 0123-4567-0924-1299 D E B IT

SELECT * FROM CUSINFO;

39
OUTPUT:
AC C O UNT _NUMB E R C US _NAME GE ND E R AGE AD D R E S S B AL ANC E B R ANC H
09241A1256 Abhiram M 19 patanc heru 5600 patanc heru
09241A1257 Akhil R eddy M 19 lb nagar 5700 lb nagar
09241A1258 Ambedkar M 19 c hintal 5800 balanagar
09241A1259 S ai K ris hna M 19 niz ampet 5900 kukatpally
09241A1260 Anudeep M 19 s r nagar 6000 s r nagar
09241A1261 Avinas h M 19 vidyanagar 6100 s ec underabad
09241A1262 B harath M 19 miyapur 6200 miyapur
09241A1263 C haitanya M 19 balanagar 6300 balanagar
09241A1264 D eepika F 19 james treet 6400 s ec underabad
09241A1265 D harani F 19 niz ampet 6500 kukatpally
09241A1266 D heeraj M 19 niz ampet 6600 kukatpally
09241A1267 D ivya F 19 niz ampet 6700 kukatpally
09241A1268 D ivyani F 19 himayathnagar6800 himayathnagar
09241A1269 Gangadhar M 19 niz ampet 6900 kukatpally
09241A1270 Gautham M 19 lb nagar 7000 ds nr
09241A1271 Geetha F 19 miyapur 7100 miyapur
09241A1272 Gowtham M 19 niz ampet 7200 kukatpally
09241A1273 Hars havardhanM 19 niz ampet 7300 kukatpally
09241A1274 Hars ha yadav M 19 kukatpally 7400 kukatpally
09241A1276 Himaja F 19 s r nagar 7600 s r nagar
09241A1277 J ayanth M 19 kukatpally 7700 kukatpally
09241A1278 K arthik M 19 erragadda 7800 s r nagar
09241A1279 K ris hna C haitanya
M 19 s ec underabad7900 s ec underabad
09241A1280 K ris hna M 19 mehidipatnam8000 mehidipatnam
09241A1281 L avanya F 19 lingampally 8100 miyapur
09241A1282 L illyrani F 19 c hintal 8200 balanagar
09241A1283 Mahes h M 19 khairatabad 8300 khairatabad
09241A1284 Manas a R eddyF 19 lingampally 8400 miyapur
09241A1285 Manas a F 19 niz ampet 8500 kukatpally
09241A1286 Meghana F 19 s r nagar 8600 s r nagar
09241A1287 Meghana s indhoori
F 19 niz ampet 8700 kukatpally
09241A1288 Mehabunnis a F 19 mehdipatnam8800 mehidipatnam
09241A1290 Neha F 19 niz ampet 9000 kukatpally
09241A1291 Nikhil M 19 mehidipatnam9100 mehidipatnam
09241A1292 P annaga F 19 niz ampet 9200 kukatpally
09241A1293 P ooja F 19 vas anth nagar9300 kukatpally
09241A1294 P rathiba F 19 niz ampet 9400 kukatpally
09241A1295 P raveen M 19 niz ampet 9500 kukatpally
09241A1296 P reetham M 19 lb nagar 9600 ds nr
09241A1297 R ajs hekhar M 19 ds nr 9700 ds nr
09241A1298 R ammohan M 19 niz ampet 9800 kukatpally
09241A1299 R ames h M 19 niz ampet 9900 kukatpally

40
SELECT * FROM EMPINFO;
OUTPUT:

ID
E MP _ID E MP _NAME B R ANC H S T AT US S AL AR Y
9241201 Aas hrith balanagar Manager 50000
9241202 Anji kukatpally S r Ac c ountant 20000
9241203 Adithya lb nagar Manager 50000
9241204 As his h balanagar C lerk 7500
9241205 Anves h kukatpally Manager 50000
9241206 B abu miyapur S r Ac c ountant 20000
9241207 B havani s r nagar C lerk 7500
9241208 B hanumati ds nr Manager 50000
9241209 B havya kukatpally C lerk 7500
9241210 C handana mehidipatnam C lerk 7500
9241211 C hitra khairatabad S r Ac c ountant 20000
9241212 Haris h balanagar C lerk 7500
9241213 K averi s r nagar C lerk 7500
9241214 K ranthi ds nr C as hier 15000
9241215 K is hore mehidipatnam Manager 50000
9241216 Manis h balanagar S r Ac c ountant 20000
9241217 Manoj miyapur C lerk 7500
9241218 Nares h kukatpally C as hier 15000
9241219 Nagendra ds nr C lerk 7500
9241220 Naveen mehidipatnam C as hier 15000
9241221 Nayana s r nagar S r Ac c ountant 20000
9241222 P riyankapally kukatpally C lerk 7500
9241223 P rathyus ha miyapur Manager 50000
9241224 P avani balanagar C as hier 15000
9241225 P raneeth kukatpally C lerk 7500
9241226 P avan s ec underabad C lerk 7500
9241227 R ajes h mehidipatnam C lerk 7500
9241228 R ajeev s r nagar C lerk 7500
9241229 R agav miyapur C lerk 7500
9241230 R ithes h kukatpally C lerk 7500
9241231 R akes h ds nr S r Ac c ountant 20000
9241232 S atees h s r nagar C lerk 7500
9241233 S owmya mehidipatnam S r Ac c ountant 20000
9241234 S oundarya balanagar C lerk 7500
9241235 S ravani s ec underabad C as hier 15000
9241236 S hravya miyapur C lerk 7500
9241237 S ac hin s r nagar C as hier 15000
9241238 S hyam K hairatabad Manager 50000
9241239 S ampath mehidipatnam C lerk 7500
9241240 Uday miyapur C as hier 15000

41
SELECT * FROM LOANINFO;
OUTPUT:
ID
AC C O UNT _NUMB E R AC C O UNT _B R ANC H L O AN_T Y P E L O AN_AMO UNT
09241A1256 miyapur s tudentloan 50000
09241A1257 lb Nagar hous eloan 100000
09241A1258 balanagar s tudentloan 50000
09241A1259 kukatpally s tudentloan 50000
09241A1260 s r nagar s tudentloan 50000
09241A1261 s ec undrabad hous eloan 100000
09241A1262 miyapur s tudentloan 50000
09241A1263 balanagar s tudentloan 50000
09241A1264 s ec undrabad s tudentloan 50000
09241A1265 kukatpally s tudentloan 50000
09241A1266 kukatpally s tudentloan 50000
09241A1267 kukatpally s tudentloan 50000
09241A1268 himayatnagar s tudentloan 50000
09241A1269 kukatpally hous eloan 50000
09241A1270 ds nr s tudentloan 50000
09241A1271 miyapur s tudentloan 50000
09241A1272 kukatpally hous eloan 100000
09241A1273 kukatpally hous eloan 100000
09241A1274 kukatpally s tudentloan 50000
09241A1276 s r nagar s tudentloan 50000
09241A1277 kukatpally s tudentloan 50000
09241A1278 s r nagar s tudentloan 50000
09241A1280 mehidipatnam hous eloan 100000
09241A1281 miyapur s tudentloan 50000
09241A1282 balanagar s tudentloan 50000
09241A1283 s r nagar hous eloan 100000
09241A1284 miyapur s tudentloan 50000
09241A1285 kukatpally s tudentloan 50000
09241A1286 s r nagar s tudentloan 50000
09241A1288 mehidipatnam s tudentloan 50000
09241A1290 kukatpally s tudentloan 50000
09241A1291 mehidipatnam s tudentloan 50000
09241A1292 kukatpally s tudentloan 50000
09241A1293 kukatpally s tudentloan 50000
09241A1294 kukatpally s tudentloan 50000
09241A1295 kukatpally s tudentloan 50000
09241A1296 ds nr s tudentloan 50000
09241A1297 ds nr s tudentloan 50000
09241A1298 kukatpally s tudentloan 50000
09241A1299 kukatpally hous eloan 100000
Select * fromACCINFO;
OUTPUT:

42
ACCOUNT_NUMBER ACCOUNT_TYPE ACCOUNT_BRANCH BALANCE
09241A1256 savings miyapur 5600
09241A1257 savings lb nagar 5700
09241A1258 fixed balanagar 5800
09241A1259 savings kukatpally 5900
09241A1260 savings sr nagar 6000
09241A1261 savings secunderabad 6100
09241A1262 fixed miyapur 6200
09241A1263 savings balanagar 6300
09241A1264 savings secunderabad 6400
09241A1265 savings kukatpally 6500
09241A1266 savings kukatpally 6600
09241A1267 savings kukatpally 6700
09241A1268 savings himayathnagar 6800
09241A1269 fixed kukatpally 6900
09241A1270 savings dsnr 7000
09241A1271 savings miyapur 7100
09241A1272 savings kukatpally 7200
09241A1273 savings kukatpally 7300
09241A1274 savings kukatpally 7400
09241A1276 fixed sr nagar 7600
09241A1277 savings kukatpally 7700
09241A1278 savings sr nagar 7800
09241A1280 savings mehidipatnam 8000
09241A1281 savings miyapur 8100
09241A1282 fixed balanagar 8200
09241A1283 savings sr nagar 8300
09241A1284 savings miyapur 8400
09241A1285 savings kukatpally 8500
09241A1286 fixed sr nagar 8600
09241A1288 savings mehidipatnam 8800
09241A1290 fixed kukatpally 9000
09241A1291 savings mehidipatnam 9100
09241A1292 savings kukatpally 9200
09241A1293 savings kukatpally 9300
09241A1294 savings kukatpally 9400
09241A1295 fixed kukatpally 9500
09241A1296 savings dsnr 9600
09241A1297 savings dsnr 9700
09241A1298 savings kukatpally 9800
09241A1299 fixed kukatpally 9900
SELECT CUS_NAME FROM CUSTINFO1 WHERE
ACCOUNT_NUMBER<'O9241A1270'UNION SELECT EMP_NAME FROM

43
EMPINFO WHERE EMP_ID<'O9241220';
CUS_NAME
Aashrith
Adithya
Anji
Anudeep
Anvesh
Ashish
Avinash
Babu
Bhanumati
Bharath
Bhavani
Bhavya
Chandana
Chitra
Deepika
Dharani
Divyani
Gautham
Geetha
Gowtham
Harish
Harsha yadav
Harshavardhan
Himaja
Jayanth
Karthik
Kaveri
Kishore
Kranthi
Krishna
Krishna Rao
Lavanya
Lillyrani
Manasa
Manasa Reddy
Manish
Manoj
Meghana
Mahesh
Mehabunnisa
Nagendra
Naresh

44
SELECT * FROM(SELECT ROWNUM
r,EMP_ID,EMP_NAME,STATUS,SALARY,BRANCH FROM EMPINFO);
OUTPU
R EMP_ID EMP_NAME STATUS SALARY BRANCH
1 9241201 Aashrith Manager 50000 balanagar
2 9241202 Anji Sr Accountant 20000 kukatpally
3 9241203 Adithya Manager 50000 lb nagar
4 9241204 Ashish Clerk 7500 balanagar
5 9241205 Anvesh Manager 50000 kukatpally
6 9241206 Babu Sr Accountant 20000 miyapur
7 9241207 Bhavani Clerk 7500 sr nagar
8 9241208 Bhanumati Manager 50000 dsnr
9 9241209 Bhavya Clerk 7500 kukatpally
10 9241210 Chandana Clerk 7500 mehidipatnam
11 9241211 Chitra Sr Accountant 20000 khairatabad
12 9241212 Harish Clerk 7500 balanagar
13 9241213 Kaveri Clerk 7500 sr nagar
14 9241214 Kranthi Cashier 15000 dsnr
15 9241215 Kishore Manager 50000 mehidipatnam
16 9241216 Manish Sr Accountant 20000 balanagar
17 9241217 Manoj Clerk 7500 miyapur
18 9241218 Naresh Cashier 7500 kukatpally
19 9241219 Nagendra Clerk 7500 dsnr
20 9241220 Naveen Cashier 15000 mehidipatnam
21 9241221 Nayana Sr Accountant 20000 sr nagar
22 9241222 Priyankapally Clerk 7500 kukatpally
23 9241223 Prathyusha Manager 50000 miyapur
24 9241224 Pavani Cashier 15000 balanagar
25 9241225 Praneeth Clerk 7500 kukatpally
26 9241226 Pavan Clerk 7500 secunderabad
27 9241227 Rajesh Clerk 7500 mehidipatnam
28 9241228 Rajeev Clerk 7500 sr nagar
29 9241229 Ragav Clerk 7500 miyapur
30 9241230 Rithesh Clerk 7500 kukatpally
31 9241231 Rakesh Sr Accountant 20000 dsnr
32 9241232 Sateesh Clerk 7500 sr nagar
33 9241233 Sowmya Sr Accountant 20000 mehidipatnam
34 9241234 Soundarya Clerk 7500 balanagar
35 9241235 Sravani Cashier 15000 secunderabad
36 9241236 Shravya Clerk 7500 miyapur
37 9241237 Sachin Cashier 15000 sr nagar
38 9241238 Shyam Manager 50000 Khairatabad
39 9241239 Sampath Clerk 7500 mehidipatnam
40 9241240 Uday Cashier 15000 miyapur

45
SELECT * FROM EMPINFO WHERE MOD(id,2)=0;
OUTPUT:
ID EMP_ID EMP_NAME BRANCH STATUS SALARY
2 9241202 Anji kukatpally Sr Accountant 20000
4 9241204 Ashish balanagar Clerk 7500
6 9241206 Babu miyapur Sr Accountant 20000
8 9241208 Bhanumati dsnr Manager 50000
10 9241210 Chandana mehidipatnam Clerk 7500
12 9241212 Harish balanagar Clerk 7500
14 9241214 Kranthi dsnr Cashier 15000
16 9241216 Manish balanagar Sr Accountant 20000
18 9241218 Naresh kukatpally Cashier 15000
20 9241220 Naveen mehidipatnam Cashier 15000
22 9241222 Priyankapally kukatpally Clerk 7500
24 9241224 Pavani balanagar Cashier 15000
26 9241226 Pavan secunderabad Clerk 7500
28 9241228 Rajeev sr nagar Clerk 7500
30 9241230 Rithesh kukatpally Clerk 7500
32 9241232 Sateesh sr nagar Clerk 7500
34 9241234 Soundarya balanagar Clerk 7500
36 9241236 Shravya miyapur Clerk 7500
38 9241238 Shyam Khairatabad Manager 50000
40 9241240 Uday miyapur Cashier 15000

SELECT * FROM EMPINFO WHERE ID>5 AND ID<10;


OUTPUT:

ID EMP_ID EMP_NAME BRANCH STATUS SALARY


6 9241206 Babu miyapur Sr Accountant 20000
7 9241207 Bhavani sr nagar Clerk 7500
8 9241208 Bhanumati dsnr Manager 50000
9 9241209 Bhavya kukatpally Clerk 7500

46
47
1. To find the subjects which were done by Assimwe Julius and the credit hours
in the year 2005? This is the query format.

SELECT COURSE.ctitle, COURSE.ccredithours


FROM STUDENT INNER JOIN (COURSE INNER JOIN ASSOCIATIVE ON
COURSE.cnumber = ASSOCIATIVE.cnumber) ON STUDENT.snumber =
ASSOCIATIVE.snumber
WHERE (((STUDENT.sname)="ASIIMWE JULIUS") AND
((STUDENT.syearofstudy)=2005));

48
courses in part year
Ctitle ccredithours
RESERCH PROJECT 3
ELEMENTS OF SOCIAL WORK INTERVENTION 3
SIGN LANGUAGE 3
SOCIAL DEFENCE 3
PRINCIPLES OF SOCIOLOGY 3

2. To find which subjects are tought by Dr Tabitha Sigue. This is the format.
SELECT
courses of a lecturer
Ctitle clecturedays ccredithours
RESERCH PROJECT MWT 3
SEMINER IN CONTEMPORARY SOCIAL PROBLEM TTHW 2
SKILLS AND TECHNIQUES OF COUNCELING W TH F 3
SOCIAL WORK AND NATIONAL DEVELOPMENT TH M F 2

2. To find which lecturer is teaching the subject with the title social defense. This
is the query format.

SELECT

Query1
Lname
ATUKUNDA IGNATIOUS

3. This is the same as sample number 1 but different year.

SELECT 2008;

Query2
Ctitle ccredithours
ETHICS AND VALUES OF SOCIAL WORK 3
PSYCOSEXUAL COUNCELING 2
COLLECTIVE BEHAVIOUR AND SOCIAL MOVEMENT 2
INTRODUCTION TO SOCIOLOGY 3
SPOKEN FRENCH 3
GROUP DYNAMICS 3

3. To know the name of student coming from Zambia.

49
WHERE SCOUNTRY="ZAMBIA";
student country
SNAME
KAMWENDO FAITH

50
CHAPTER 5

2.0 Challenges, Recommendations and conclusions.

2.1Challenges
1. The major challenge I encounter during the system development is the time box.
2. Lack of free access to computer to any time you wanted because of the classes
which was sometimes going on in the computer labs.
3. Data access was sometimes difficult because secretaries we were suppose to receive
data from were not willing to give full data thinking that if the system is developed
they may loose their job.

2.2Recommendation
Ive successfully applied what I have learnt in our institution. Also, I can enhance my
skills and abilities that can make me boost in my technical skills. And also I became
understandable and gained many experiences how to negotiate relationship between users
and clients. Problem solving is my major achievements in this period of application
project. Therefore, we fully understand the whole SDLC.

5.3 Conclusion

Great skills have been achieved during the development of this project, time management
being one of them, research in various areas of web and database development and at the end
of the day it can be said that the task has been a great success incorporated with extraordinary
challenges. All in all the sleepless nights, stressful days and hard work have paid off and
besides some good moments were also experienced. These experiences will be used for ever.

51
References
Books

Cary N prague, micheal R. Irwin,and jennifer Reardon access 2003 bible


Entity relationship diagrams [online]MDM Summit Europe(20-22/04/09)London
http://searchcrm.techtarget.com/sDefinition/0,,sid11_gci333128,00.html accessed on
(17/03/09)
Pressman, Roger S., Software Engineering: A Practitioners Approach. McGraw-Hill,
2001.
Bergner, Terry; Steiny, Julia and Armstrong, Jane. (2007). Benefits of and Lessons
Learned from Linking Teacher and Student Data. National Center for Educational
Accountability, Data Quality Campaign. www.DataQualityCampaign.org
Berry, Barnett. (2007). Connecting Teacher and Student Data: Benefits, Challenges and
Lessons Learned. Center for Teaching Quality. www.teachingquality.org
Borden, Victor M.H. (1995). Harnessing New Technologies for Student Tracking. In P.T.
Ewell (ed), Student Tracking: New Techniques, New Demands (New Directions in
Institutional Research #87, pp.55-67. San Francisco: Jossey-Bass.

Cunningham, A. F., and Milam, J. (2005). Feasibility of a Student Unit Record System
Within the Integrated Postsecondary Education Data System (NCES 2005-160). U.S.
Department of Education, National Center for Education Statistics, Washington, DC:
U.S. Government Printing Office.

52