0% found this document useful (0 votes)
10 views

DBMS Assignment

Dbms
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

DBMS Assignment

Dbms
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

CASESTUDY

RAILWAY RESERVATION
SYSTEM
BATCH 9

MEMBERS

1.PREETHI SHREE . B
2.MEGAVARTHINI N.M
3.NANDHINI C.L
4. SAHANA PRIYADHARSHINE T.S.S
AIM:
To design and implement Library management system using visual basic 6.0.

RAILWAY RESERVATION SYSTEM:

A railway reservation system is a piece of software that helps railway


operators handle distribution, pricing, scheduling, and other operations.So the
railway reservation system essentially has several layers. The customer-facing
layer allows passengers to request schedule and itinerary information, book
tickets, and learn train arrival or departure details.At the same time, on the
back-office layer, the railway reservation system serves as a database for all train,
customer, and operations-related information. It also stores and implements a set
of business rules controlling fares, communication, and other operational
processes.

VIRTUAL BASIC:

● Visual Basic 6.0 is a very powerful programming language. It enables GUI


addition, Visual Basic 6 is Event-driven because we need to write code
inapplication
● development, provides access to databases and enables the creation of
ActiveX controls.
● In order to
● perform some tasks in response to certain events. The events usually
comprises but not
● limited to the user's inputs. Some of the events are load, click, double
click, drag and drop,
● pressing the keys and more. Therefore, a VB6 Program is made up of
many subprograms,
● each has its own program code, and each can be executed independently
and at the same time
● each can be linked together in one way or another.
DATABASE- ORACLE SQL:

● Oracle database is a relational database management system. It is also


called OracleDB,
● or simply Oracle. It is produced and marketed by Oracle Corporation. It
was created
● in 1977 by Lawrence Ellison and other engineers. It is one of the most
popular relational
● database engines in the IT market for storing, organizing, and retrieving
data.
● Oracle database was the first DB that designed for enterprise grid
computing and data
● warehousing. Enterprise grid computing provides the most flexible and
cost-effective way to
● manage information and applications. It uses SQL queries as a language
for interacting with
● the database.
VIRTUAL BASIC:
● Visual Basic 6.0 is a very powerful programming language. It enables GUI
application
● development, provides access to databases and enables the creation of
ActiveX controls.
● In addition, Visual Basic 6 is Event-driven because we need to write code
in order to
● perform some tasks in response to certain events. The events usually
comprises but not
● limited to the user's inputs. Some of the events are load, click, double
click, drag and drop,
● pressing the keys and more. Therefore, a VB6 Program is made up of
many subprograms,
● each has its own program code, and each can be executed independently
and at the same time
● each can be linked together in one way or another.
DATABASE- ORACLE SQL:
● Oracle database is a relational database management system. It is also
called OracleDB,
● or simply Oracle. It is produced and marketed by Oracle Corporation. It
was created
● in 1977 by Lawrence Ellison and other engineers. It is one of the most
popular relational
● database engines in the IT market for storing, organizing, and retrieving
data.
● Oracle database was the first DB that designed for enterprise grid
computing and data
● warehousing. Enterprise grid computing provides the most flexible and
cost-effective way to
● manage information and applications. It uses SQL queries as a language
for interacting with
● the database.

CONNECTIVITY:
1. Open the VB 6.0 in standard exe form and right circle in the tool box select
2. components.
3. Select MSADO data control 6.0 COLEB in component list.
4. Double circle ADDCDC and then select the properties.
5. Select MSOLE DB provides for ODBC drivers in provider.

ALGORITHM:
1. Place all the controls in the form as shown.
2. To place the ADO controls do the following procedure.
3. Go to project -> Component.
4. Select the checkbox showing “MICROSOFT ADO DATA CONTROL”and
Press
Apply-> close.
5. Place the ADO control on the form.
6. Create a table in SQL plus and insert some values in it.
7. Now type the command ‘commit;’ and return back to VB.
8. Select the ADO control and click the right mouse select ADODC properties.
9. A dialog box will appear, press the build button. Select ‘Microsoft OLEDB
provider for oracle” press next button”.
10. In the connection tab, give the server name, user name and password.
11. Press the” TEST CONNECTION” button. A message box will appear if the
steps
were followed correctly. Press OK button.
12. Select authentication tab. Give the username and password again. Select
record
source tab. In the table or stored procedure name control box, select the name
and
give OK.
13. Now select the text buttons one by one and in the properties window set the
data
sources combo box to point to ADODC1.select the corresponding fields of the
text box in the data fields combo box
14. Write the coding for command buttons and run the form.

DATA REPORT:
1. Go to Project->Components->Designers->Data Report,Data Environment and
click Apply,then OK.
2. In Project Explorer ->Form1->Right Click-> Add->Data Environment, Data
Report.
3. In Data Environment1, Right Click on Connection1->Properties->Provider->
Microsoft OLE DB provider for Oracle ->Next-> Server-orcl, User-
Csec37, Password-csec37 Test Connection->Test Connection
Succeeded->OK->OK

4. In Data Environment1,
Right Click on Connection1->Add Command->Command1
5. In Command1, Right Click->Properties->Database Object-Table, Object Name
ITB67.BANK ->Apply, then OK
6. Drag Command1 into Detail Section of Data Report1 and Make Alignments
7. In Property Window of DataReport1,
change Data Source-Data Environment1 Data Member-Command1.
DATABASE SCHEMA:

COLUMN NAME DATA TYPE

PASSENGER NAME NUMBER


AGE NUMBER
ARRIVAL VARCHAR
DEPARTURE VARCHAR
BERTH VARCHAR
CLASS VARCHAR
NO OF SEATS NUMBER

Create table railway (passenger name number(10),age number(5),arrival


varchar(25),depature varchar(25),berth varchar(20),class varchar(20),no of
seats number(5));

Table created.

Insert into railways values(‘mega’,18,’tanjore’,’dindigul’,’upper’,’first’,1);


1 row created.
Insert into railways values(‘nandhini’,18,’madurai’,’cochin’,’middle’,
‘first’,1);
1 row created.
Insert into railways values(‘sahana’,19,’theni’,’covai’,’last’,’second’,1);
1 row created.
Insert into railways
values(‘preethi’,20,’bangalore’,’hyderabad’,’middle’,’first’,1);
1 row created.

Commit;
Commit completed.
FORM DESIGN:

MDI FORM

FORM 1:
Private Sub Command1_Click()
Adodc1.Recordset.addnew
End Sub

Private Sub Command_Click2()


Adodc1.Recordset.update
MsgBox "updated"
End Sub

DATA REPORT:

RESULT:

Thus the society financial management system was successfully designed


using VB6.0 and ORACLE.

You might also like