











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












AMIT KUMAR [ RA19110 033010066 ] Under the guidance of Ms. SASSI REKHA (Assistant Professor, Department of Computer Science & Engineering)
In COMPUTER SCIENCE & ENGINEERING Of
SRM Institute of Science and Technology (Under Section 3 of UGC Act, 1956)
(Under Section 3 of UGC Act, 1956)
Ms. Sassi Rekha GUIDE Assistant Professor Dept. of Computer Science & Engineering Signature of the Internal Examiner
Dept. of Computer Science & Engineering Signature of the External Examiner
INTRODUCTION ABOUT THE PLATFORMS WORKED
MySQL is a fast, easy-to-use RDBMS being used for many small and big businesses. MySQL is developed, marketed and supported by MySQL AB, which is a Swedish company. MySQL is becoming so popular because of many good reasons:
TOOLS USED MySQL Server MySQL Server : It is significantly quicker than previous methods of handling big databases. It comprises a multi-threaded SQL server that supports a variety of back ends, as well as a variety of client applications and libraries, administrative tools, and application programming interfaces (APIs). MySQL Server is well-suited for accessing databases via the Internet due to its connection, speed, and security.
MySQL workbench is a database is a visual database design tool that integrates SQL development, administration, database design, creation and maintenance into a single integrated development for the MySQL database system.
Any web browser will sufficient.
GitHub Inc. is a Git-based version control web hosting service. It’s primarily utilised in com- puter programming. It has all of Git’s distributed version control and source code management features, as well as those of its own.
INTRODUCTION Nowadays, with so much hassle in life there is a need to schedule and manage things. So, in daily household management especially for electricity bills we come across an idea to manage the bills in one place where you make payment, set reminder, and keep the records, and ,which will benefits users greatly. It is more convenient than paying for the units while keeping all the electricity bill track or records.
This system is named as Electricity Bill Management System.This system is made to keel the records about the bill of the customers. The admin can manage all the accounts and the registered users like employees and customers can only manage their own accounts.
Created a database system that allows consumers to register and while also allowing the user and admin to manage this system efficiently. Like a customer can only manage his account and cannot see any details of either customer, employees can see the details of all the customer’s accounts and the admin can manage all the accounts including the customers and employees accounts. This system also had the option for customers to pay their electricity bills online mode. Either through internet banking or by debit card. This system also has the feature to add and delete customer and employee’s accounts in case a customer wants to cut the connection or an employee wants to leave the job. All the employees are divided into different departments according to their job profile and the customers are divided according to their wards. This project covers a wide range of topics, from business concepts to computer science, and it necessitates the completion of numerous studies in order to meet the project’s objectives.
This system is made to keel the records about the bill of the customers. The admin can manage all the accounts and the registered users like employees and customers can only manage their own accounts. This system helps in maintaining the bills and the payments. A different module is there for employees to check the customer’s details if their job requires it. Admin, employees, and customers all have a different interface and different privileges according to their needs. As a system development reference, create documents such as Software Requirement Specification (SRS) and Software Design Description
The database was designed on MYSQL Workbench, the back end was developed on MYSQL Workbench. Software methods are concerned with the process of developing software, not so much with the technical elements as with the organizational ones. Since the dawn of information technology, a variety of software development methodologies have been employed.
IMPLEMENTATION Code: CREATE TABLE account ( account_id int NOT NULL, cust_id int NOT NULL, account_no varchar(45) NOT NULL, electricityboard_id int NOT NULL, name varchar(50) NOT NULL, address text NOT NULL, rr_number varchar(25) NOT NULL, status varchar(10) NOT NULL, PRIMARY KEY (account_id), KEY cust_id_idx (cust_id), CONSTRAINT cust_id2 FOREIGN KEY (cust_id) REFERENCES customer (cust_id) ON DELETE CASCADE ON UPDATE CASCADE ) CREATE TABLE admin ( admin_id int NOT NULL, admin_name varchar(25) NOT NULL, login_id varchar(25) NOT NULL, password varchar(25) NOT NULL, admin_type varchar(20) NOT NULL, status varchar(10) NOT NULL, PRIMARY KEY (admin_id) ) CREATE TABLE billing ( bill_no int NOT NULL, cust_id int NOT NULL, account_id int NOT NULL, payment_mode varchar(45) NOT NULL, payment_date date NOT NULL, payment_time time NOT NULL, rr_number varchar(25) NOT NULL, bill_amount float(10,2) NOT NULL, paid_amount float(10,2) NOT NULL, excess_paid float(10,2) NOT NULL, status varchar(10) NOT NULL, PRIMARY KEY (bill_no), KEY account_id_idx (account_id), KEY cust_id_idx (cust_id), CONSTRAINT account_id1 FOREIGN KEY (account_id) REFERENCES account (account_id) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT cust_id3 FOREIGN KEY (cust_id) REFERENCES customer (cust_id) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci CREATE TABLE customer ( cust_id int NOT NULL, cust_name varchar(50) NOT NULL, account_type varchar(25) NOT NULL, address text NOT NULL, state varchar(25) NOT NULL, city varchar(50) NOT NULL, pincode varchar(10) NOT NULL,
CREATE TABLE tariff ( tariff_id int NOT NULL, tariff_type varchar(50) NOT NULL, tariff_discription text NOT NULL, status varchar(10) NOT NULL, PRIMARY KEY (tariff_id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci UPDATE ebms.electricityboard SET status = 'due' WHERE (electricityboard_id = '1121'); UPDATE ebms.electricityboard SET status = 'done' WHERE (electricityboard_id = '1001'); INSERT INTO ebms.electricityboard (electricityboard_id, electricityboard, logo, note, status) VALUES ('1121', 'UPPCL', 'bulb', '0', 'done'); INSERT INTO ebms.invoice (invoice_id, electricityboard_id, account_no, tariff_id, readingdate, bill_no, present_reading, previous_reading, consumption_unit, fixed_charge, energy_charge, tax, bill_amount, interest, previous_balance, interest_pre_balance, others, credit, consession, net_amount, due_date, status) VALUES ('01', '1001', '12345678', '501', '2022- 05 - 04', '1', '3005', '1002', '2003', '6', '5', '2.4', '12018', '18', '0', '0', '0', '0', '200', '11818', '2022- 05 - 18', 'Active'); INSERT INTO ebms.feedback (feedback_id, cust_id, feedback, feedback_date, status) VALUES ('1001', '101', 'Good', '2022- 03 - 10', 'Done'); INSERT INTO ebms.feedback (feedback_id, cust_id, feedback, feedback_date, status) VALUES ('1003', '103', 'Good', '2022- 03 - 06', 'Done'); INSERT INTO ebms.feedback (feedback_id, cust_id, feedback, feedback_date, status) VALUES ('1004', '104', 'Good', '2022- 03 - 05', 'Done'); ALTER TABLE ebms.billing DROP FOREIGN KEY account_id1; ALTER TABLE ebms.billing ADD CONSTRAINT account_id1 FOREIGN KEY (account_id) REFERENCES ebms.account (account_id) ON DELETE CASCADE ON UPDATE CASCADE; ALTER TABLE ebms.feedback ADD CONSTRAINT cust_id4 FOREIGN KEY (cust_id) REFERENCES ebms.customer (cust_id) ON DELETE CASCADE ON UPDATE CASCADE; MODIFY Id int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; AUTO_INCREMENT for table customertable ALTER TABLE electricityboard_table MODIFY Id int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; AUTO_INCREMENT for table table ALTER TABLE custometable MODIFY Id int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; AUTO_INCREMENT for table custometable
ALTER TABLE billingtable MODIFY Id int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; Constraints for dumped tables Constraints for table billingtable ALTER TABLE billingtable ADD CONSTRAINT customertable FOREIGN KEY (billingid) REFERENCES billingtable (Id) ON DELETE CASCADE ON UPDATE CASCADE; COMMIT; DELIMITER $$ CREATE PROCEDURE createEmailList ( INOUT emailList varchar(4000) ) BEGIN DECLARE finished INTEGER DEFAULT 0; DECLARE emailAddress varchar(100) DEFAULT ""; -- declare cursor for employee email DEClARE curEmail CURSOR FOR SELECT emp_email_address FROM employees; -- declare NOT FOUND handler DECLARE CONTINUE HANDLER FOR NOT FOUND SET finished = 1; OPEN curEmail; getEmail: LOOP FETCH curEmail INTO emailAddress; IF finished = 1 THEN LEAVE getEmail; END IF; -- build email list SET emailList = CONCAT(emailAddress,";",emailList); END LOOP getEmail; CLOSE curEmail; END$$ DELIMITER ; SET @emailList = ""; CALL createEmailList(@emailList); SELECT @emailList; // DELIMITER CREATE TRIGGER billing_after_delete AFTER DELETE ON billings FOR EACH ROW BEGIN INSERT INTO billings_Audit VALUES (NULL, OLD.billings_id, OLD.billing_date, OLD.due_date, OLD.payment_status, OLD.billing_date, OLD.payment_type, OLD.total_bill_booked, OLD.electricity_board_id, OLD.customer_id, OLD.employees_emp_id, OLD.total_amount,"DELETED", NOW()); END// DELIMITER ;
Customer Table: ELECTRICITY BOARD TABLE: FEEDBACK TABLE:
INVOICE TABLE: TARIFF TABLE: