Birth Certificate Generator
Birth Certificate Generator
Birth Certificate Generator
INDIAN SCHOOL
DOHA-QATAR
BONAFIED CERTIFICATE
This is to certify that Miss
........................................................... of class XII has
completed her Informatics Practices project during the academic year 2020-2021 at
M.E.S Indian School Doha, Qatar and her project report is certified.
Submitted for All India Senior School Certificate Practical Examination (Class XII)
held ar M.E.S India School, Doha-Qatar on ....................................
Internal Examiner External Examiner
Signature..................................
Signature......................
Name........................................
Name..............................
. ACKNOWLEDGEMENT .
H.O.S. Girls� for their constant support and encouragement. This project would not
have reached its completion without the support, guidance, and advice of my
computer science teacher, Mrs.Abirami Ramesh for which I am extremely thankful to
her.
Last but not the least, I thank my parents and acquaintances for all their support
and love.
CONTENT
Synopsis
About python
About MYSQL
System requirements
Source codes
Output
MYSQL Tables
Future scope
Bibliography
. SYNOPSIS .
This software project is developed to automate functionalities of a birth
certificate generator. The purpose of this software project is:
To provide a user friendly integrated and centralized environment for computerized
Birth Certificate Generator.
The proposed system should maintain all the records and should generate the
required reports and information when required.
To provide efficient and secured Information storage, flow and retrieval system,
ensuring the integrity and validity of records.
To provide user-friendly interface to interact with a centralized database based on
client-server architecture.
To identify the critical operation procedure and possibilities of simplification
using modern IT tools and practices.
This project is mainly based on generating Birth Certificates. It will store the
information and can be extracted when needed.
It will ask for all the information like name, age, date of birth, address etc.
which is required to produce the birth certificate.
. ABOUT PYTHON .
Implements SQL functions using a highly optimized class library that should be as
fast as possible. Usually there is no memory allocation at all after query
initialization.
Provides the server as a separate program for use in a client/server networked
environment, and as a library that can be embedded (linked) into standalone
applications. Such applications can be used in isolation or in environments where
no network is available.
Password security by encryption of all password traffic when you connect to a
server.
Support for large databases. We use MySQL Server with databases that contain 50
million records. We also know of users who use MySQL Server with 200,000 tables and
about 5,000,000,000 rows.
MySQL client programs can be written in many languages. A client library written in
C is available for clients written in C or C++, or for any language that provides C
bindings.
APIs for C, C++, Eiffel, Java, Perl, PHP, Python, Ruby, and Tcl are available,
enabling MySQL clients to be written in many languages.
The Connector/ODBC (MyODBC) interface provides MySQL support for client programs
that use ODBC (Open Database Connectivity) connections.
The Connector/J interface provides MySQL support for Java client programs that use
JDBC connections. Clients can be run on Windows or Unix. Connector/J source is
available.
What is Database?
Introduction and Concepts:
A database is a collection of information related to a particular subject or
purpose, such as tracking customer orders or maintaining a music collection. Using
any RDBMS application software like MS SQL Server, MySQL, Oracle, Sybase etc, you
can manage all your information from a single database file. Within the file,
divide your data into separate storage containers called tables. You may and
retrieve the data using queries.
A table is a collection of data about a specific topic, such as products or
suppliers. Using a separate table for each topic means you can store that data only
once, which makes your database more efficient and reduces data-entry errors. Table
organises data into columns (called fields) and rows (called records).
A Primary key is one or more fields whose value or values uniquely identify each
record in a table. In a relationship, a primary key is used to refer to specific
record in one table from another table. A primary key is called foreign key when it
is referred to from another table.
To find and retrieve just the data that meets conditions you specify, including
data from multiple tables, create a query. A query can also update or delete
multiple records at the same time, and perform built-in or custom calculations on
your data.
The DBMS interprets and processes users' requests to retrieve information from a
database. In most cases, a query request will have to penetrate several layers of
software in the DBMS and operating system before the physical database can be
accessed. The DBMS responds to a query by invoking the appropriate subprograms,
each of which performs its special function to interpret the query, or to locate
the desired data in the database and present it in the desired order.
import mysql.connector
This line imports the MySQL connector python module in theprogram
Myql-connector Error object is used to show an error when we fail to connect
databaseobject
mysql.connector.connect( )
Using this function we can connect the MySQLdatabase;
This function accepts four parameters: Host, User, Passwd,database.
connect() : This method is used for creating a connection to our database it have
four arguments:
o Host Name
o Database User Name
o Database Password
o Database Name
Connection.cursor()
This method returns a cursor object.
Using cursor object,we can executequeries
cursor() : This method creates a cursor object that is capable for executing sql
query on database.
execute() : This method is used for executing sql query on database. It takes a
sqlquery( as string) as an argument.
close() : This method close the database connection.
Read Operation
Read operation on any database means to fetch some useful information from the
database.We can use fetchone() method to fetch single record, fetchall() method to
fetch multiple values from a database table.
rowcount()?This is a read-only attribute and returns the number of rows that were
affected by an execute() method.
. SYSTEM REQUIREMNETS .
HARDWARE REQUIREMENTS
Processor
Keyboard
Minimum memory - 2GB
2. SOFTWARE REQUIREMENTS
Python IDLE
MYSQL
. SOURCE CODE .
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
--
-- Database: `birth-certificate`
--
-- --------------------------------------------------------
--
-- Table structure for table `tbl_admin`
--
--
-- Dumping data for table `tbl_admin`
--
-- --------------------------------------------------------
--
-- Table structure for table `tbl_births`
--
--
-- Dumping data for table `tbl_births`
--
-- --------------------------------------------------------
--
-- Table structure for table `tbl_counties`
--
--
-- Dumping data for table `tbl_counties`
--
-- --------------------------------------------------------
--
-- Table structure for table `tbl_mothers`
--
--
-- Dumping data for table `tbl_mothers`
--
-- --------------------------------------------------------
--
-- Stand-in structure for view `view_birth_certificates`
-- (See below for the actual view)
--
CREATE TABLE `view_birth_certificates` (
`entryNo` int(11)
,`childFirstName` varchar(50)
,`childOtherName` varchar(50)
,`fatherTribalName` varchar(50)
,`childDateOfBirth` datetime
,`sex` varchar(10)
,`placeOfBirth` varchar(50)
,`townOfBirth` varchar(50)
,`countyOfBirth` varchar(50)
,`fatherFirstName` varchar(50)
,`fatherOtherName` varchar(50)
,`theFatherTribalName` varchar(50)
,`motherId` int(50)
,`nameOfRegOfficer` int(10)
,`idNumber` int(20)
,`motherFirstName` varchar(50)
,`motherLastName` varchar(50)
,`email` varchar(50)
,`phoneNumber` varchar(15)
,`adminId` int(11)
,`adminFirstName` varchar(50)
,`adminLastName` varchar(50)
);
-- --------------------------------------------------------
--
-- Structure for view `view_birth_certificates`
--
DROP TABLE IF EXISTS `view_birth_certificates`;
--
-- Indexes for table `tbl_admin`
--
ALTER TABLE `tbl_admin`
ADD PRIMARY KEY (`adminId`),
ADD UNIQUE KEY `email` (`email`);
--
-- Indexes for table `tbl_births`
--
ALTER TABLE `tbl_births`
ADD PRIMARY KEY (`entryNo`),
ADD KEY `motherId` (`motherId`),
ADD KEY `nameOfRegOfficer` (`nameOfRegOfficer`);
--
-- Indexes for table `tbl_counties`
--
ALTER TABLE `tbl_counties`
ADD PRIMARY KEY (`countyId`);
--
-- Indexes for table `tbl_mothers`
--
ALTER TABLE `tbl_mothers`
ADD PRIMARY KEY (`idNumber`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `tbl_admin`
--
ALTER TABLE `tbl_admin`
MODIFY `adminId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `tbl_births`
--
ALTER TABLE `tbl_births`
MODIFY `entryNo` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `tbl_counties`
--
ALTER TABLE `tbl_counties`
MODIFY `countyId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `tbl_births`
--
ALTER TABLE `tbl_births`
ADD CONSTRAINT `tbl_births_ibfk_1` FOREIGN KEY (`motherId`) REFERENCES
`tbl_mothers` (`idNumber`),
ADD CONSTRAINT `tbl_births_ibfk_2` FOREIGN KEY (`nameOfRegOfficer`) REFERENCES
`tbl_admin` (`adminId`);
COMMIT;
BIBLIOGRAPHY
In order to work on this project titledPAITHAL PARADISE, the following are referred
by me during the various phases of development of the project.
http://www.mysql.org/
2). python.org
3) Informatics Practices with python XII
-by PreetiArora