0% found this document useful (0 votes)
16 views35 pages

Computer Project (Siddhivinayak)

Uploaded by

DEADLY GAMER
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views35 pages

Computer Project (Siddhivinayak)

Uploaded by

DEADLY GAMER
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 35

Dr.

KONDABOLU LAKSHMI PRASAD PUBLIC SCHOOL


SENIOR SECONDARY SCHOOL
J.K.C. College Road, Ring Road, Guntur – 522006
Affiliated To C.B.S.E., New Delhi.

STUDENT MANAGEMENT SYSTEM

A Project Report Submitted in partial fulfillment


By
1.SIDDHIVINAYAK DEY Xll-BiPC H.T:
2. ARYAN RAJ Xll-BiPC H.T:

For the award of the AISSCE (All India Senior School Certificate
Examination 2024-2025)

In
COMPUTER SCIENCE (New_083)
Dr. KONDABOLU LAKSHMI PRASAD PUBLIC SCHOOL
SENIOR SECONDARY SCHOOL
J.K.C. College Road, Ring Road, Guntur – 522006
Affiliated To C.B.S.E., New Delhi.

CERTIFICATE

This is certify that this project work entitled “INDUSTRIAL MANAGEMENT


SYSTEM” is a Bonafede record of work done by SIDDHIVINAYAK under my guidance,
supervision and is submitted in partial fulfillment of the requirements for the award of the
AISSCE All India Senior School Certificate Examination 2024-2025 from Dr.
KONDABOLU LAKSHMI PRASAD PUBLIC SCHOOL (Affiliated to C.B.S.E, New
Delhi) during the year 2024-2025.

PROJECT GUIDE PRINCIPAL


Mrs. G. AMULYA, MCA Mr. G.RATHAIAH, M.A, B.Ed

EXTERNAL EXAMINER
Dr. KONDABOLU LAKSHMI PRASAD PUBLIC SCHOOL
SENIOR SECONDARY SCHOOL
J.K.C. College Road, Ring Road, Guntur – 522006
Affiliated To C.B.S.E., New Delhi.

DECLARATION

We, students of second year MPC, Dr. KONDABOLU LAKSHMI PRASAD


PUBLIC SCHOOL, declare that the project entitled “STUDENT MANAGEMENT
SYSTEM” has been carried out by me and submitted in partial fulfillment of the course
requirements for the award of the senior secondary school from,
Dr. KONDABOLU LAKSHMI PRASAD PUBLIC SCHOOL (Affiliated to
C.B.S.E, New Delhi) during the academic year 2024-2025. Further, the matter embodied in
the dissertation has not been submitted previously by anybody for the award of any degree or
diploma to any other university.

1.SIDDHIVINAYAK XII- Bipc H.T:


2. ARYAN RAJ XII- Bipc H.T:
ACKNOWLEDGEMENT

It gives us an immense pleasure to acknowledge with thanks the assistance and


contribution of many individuals who have been actively involved at various stages of this
academic year to make it a success.

Firstly, we are grateful to this esteemed institution Dr. KONDABOLU LAKSHMI


PRASAD PUBLIC SCHOOL for providing me an opportunity to pursue my course.
Our heartfelt thanks to Central Board of Secondary Education.

We would be sincere to express my gratitude to Mr. G. RATHAIAH,


Principal, Dr. KONDABOLU LAKSHMI PRASAD PUBLIC SCHOOL, for the
continued encouragement in carrying out this project.

We would be sincere to express my gratitude to my guide Mrs. G. Amulya for her


valuable suggestion in carrying out my entire project successfully and truthful output.

Finally we would like to thank all the faculty and non-teaching staff, my family and
all my friends for their consistent support and encouragement.

1. SIDDHIVINAYAK XII- Bipc H.T:


2. ARYAN RAJ XII- Bipc H.T:
S.No CONTENTS PG.no.
1. Requirements
2. Introduction
3. About
4. Functions and
files
5. Program code
6. SQL queries

7. output
8. Bibliography
Hardware required :
 RAM: 4bg and above
 Processor: core i5 or better
 Hard disk:5 gb

Software required:
 Os: Windows 10 or better, Linux,
mac os
 Python: version(3.10 o r greater)
 SQL:version(8.0.21)
Introduction:
Python is a high-level, interpreted, and versatile programming language that has gained
immense popularity due to its simplicity and readability. It was created by Guido van
Rossum and first released in 1991. Python's design philosophy emphasizes code readability
and efficiency, making it an ideal choice for beginners and professionals alike.

Key Features of Python:


1. Simple and Readable Syntax: Python's syntax is clean and easy to understand,
allowing developers to focus on solving problems rather than deciphering complex
code structures.
2. Interpreted Language: Python code is executed line by line, making debugging and
testing easier compared to compiled languages.
3. Dynamic Typing: Variables in Python do not require explicit type declarations,
making coding faster and more flexible.
4. Extensive Libraries and Frameworks: Python has a rich ecosystem of libraries like
NumPy, Pandas, Matplotlib, and frameworks like Django and Flask that support
various applications.
5. Cross-Platform Compatibility: Python programs can run on various operating
systems, including Windows, macOS, and Linux, without modification.
6. Versatility: Python supports multiple programming paradigms, including:
o Procedural Programming
o Object-Oriented Programming
o Functional Programming

7. Active Community: Python has a vast and active community of developers who
contribute to its development and provide support to newcomers.

Applications of Python:
1. Web Development: Frameworks like Django and Flask enable developers to build
robust web applications quickly.
2. Data Science and Machine Learning: Python is widely used in data analysis,
visualization, and building machine learning models with libraries like TensorFlow,
PyTorch, and Scikit-learn.
3. Artificial Intelligence: Python is a leading choice for AI and neural network
development due to its simplicity and the availability of AI-focused libraries.
4. Automation and Scripting: Python scripts can automate repetitive tasks, such as file
handling, web scraping, and testing.
5. Game Development: Python's libraries, such as Pygame, allow developers to create
games.
6. IoT and Embedded Systems: Python, especially MicroPython, is used for
programming IoT devices.
7. Scientific Computing: Python is heavily utilized in scientific research due to libraries
like SciPy and SymPy.
8. Education: Python's simplicity makes it a popular choice for teaching programming
concepts

About the project:


Project Overview
The project aims to build a Python-based application for industrial management, integrating
various data sources using connectors (APIs, databases, or IoT devices). The application will
assist in tasks such as inventory management, production tracking, resource allocation, and
performance analytics.

Key Features
1. Data Integration
o Connect to industrial databases (e.g., SQL, NoSQL) for real-time data access.
o Use APIs or IoT connectors for device monitoring and automation.

2. Inventory Management
o Monitor stock levels.
o Generate alerts for replenishment or overstock conditions.

3. Production Tracking
o Track production line efficiency.
o Log machine downtime and maintenance schedules.

4. Resource Allocation
o Optimize workforce distribution.
o Track and allocate raw materials.

5. Performance Analytics
o Visualize data using dashboards (e.g., Matplotlib, Plotly).
o Provide predictive analytics using machine learning models (if required)

Team Members:
Siddhivinayak, Aryan Raj
FUNCTIONS PERFORMED BY THE
PROGRAM:
1. Data Acquisition and Integration
 Connectors: Use APIs or database connectors (e.g., SQL, MongoDB, or cloud services) to
retrieve data from various industrial systems such as ERP, CRM, IoT sensors, and supply
chain platforms.
 Examples:
o Fetching real-time machine data from IoT devices.
o Integrating production schedules from ERP systems.

2. Data Processing and Analysis


 Data Cleaning and Transformation: Pre-process raw industrial data for analysis.
 Statistical Analysis: Identify trends, anomalies, and insights in production or supply chain
data.
 Machine Learning Models: Apply predictive analytics, e.g., predicting machine failures or
optimizing resource allocation.

3. Inventory and Resource Management


 Stock Monitoring: Real-time updates on inventory levels.
 Demand Forecasting: Predict inventory needs using historical data.
 Automation: Automatically place restocking orders when inventory levels are low.

4. Production Planning and Scheduling


 Workforce Allocation: Optimize staff schedules based on workload predictions.
 Production Timelines: Generate and adjust schedules to minimize downtime.
 Bottleneck Analysis: Identify and address inefficiencies in the production line.

5. Maintenance Management
 Predictive Maintenance: Use IoT sensor data to predict and prevent equipment failures.
 Maintenance Scheduling: Automatically schedule routine checks and repairs.
 Alerts and Notifications: Trigger alerts for critical maintenance issues.
6. Supply Chain Optimization
 Vendor Management: Track vendor performance and optimize procurement processes.
 Logistics Management: Streamline delivery routes and monitor shipment statuses.
 Cost Optimization: Analyze and reduce transportation or storage costs.

7. Quality Control
 Automated Inspections: Use data from sensors or image recognition systems for quality
assurance.
 Defect Tracking: Record and analyze defects to improve production quality.
 Compliance Monitoring: Ensure adherence to industry standards and regulations.

8. Reporting and Visualization


 Dashboards: Create real-time dashboards to monitor key performance indicators (KPIs).
 Custom Reports: Generate detailed reports on production, sales, and maintenance.
 Visualization Tools: Use libraries like Matplotlib, Seaborn, or Plotly for insightful graphs.

9. Security and Authentication


 User Management: Implement role-based access control (RBAC) for secure data handling.
 Data Encryption: Ensure data privacy and security across connectors.
 Audit Logs: Maintain logs for monitoring system usage and identifying security breaches.

10. Integration with External Systems


 IoT Integration: Connect to industrial IoT devices for real-time data.
 Cloud Services: Use cloud platforms like AWS, Azure, or Google Cloud for scalability.
 Third-Party APIs: Integrate with tools like Slack, Trello, or email services for alerts.
PROGRAM CODE
import mysql.connector as sq

‘’’Creating database for industrial management system’’’

def database():

mycon =
sq.connect(host='localhost',user='root',password='admin')

mycursor = mycon.cursor()

mycursor.execute("CREATE DATABASE employee")

#mycursor.execute("CREATE DATABASE employee_entry")

mycursor.execute("CREATE DATABASE vechicle_entry")

mycursor.execute("CREATE DATABASE visitor_entry")

mycursor.execute("CREATE DATABASE residental_entry")

def emp():

mycon =
sq.connect(host='localhost',user='root',password='admin',
database='employee')

cur = mycon.cursor()
cur.execute("CREATE TABLE employee(NAME varchar(30)
not null,EMP_CODE int not null unique,TIME time not
null,DEPARTMENT varchar(30))")

mycon.commit()

def veh():

mycon =
sq.connect(host='localhost',user='root',password='admin',
database='vechicle_entry')

cur = mycon.cursor()

cur.execute("CREATE TABLE
vechicle_entry(VECHICLE_NUMBER int,DRIVER_NAME
varchar(30) not null,TIME time not null,MATERIAL
varchar(30))")

def vis():

mycon =
sq.connect(host='localhost',user='root',password='admin',
database='visitor_entry')

cur = mycon.cursor()

cur.execute("CREATE TABLE visitor_entry(NAME


varchar(30) not null,TIME time not null,MOBILE_NUMBER int
unique,REASON varchar(90))")

def res():

mycon =
sq.connect(host='localhost',user='root',password='admin',
database='residental_entry')

cur = mycon.cursor()
cur.execute("CREATE TABLE residental_entry(NAME
varchar(30) not null,TIME time not null,HOUSE_NUMBER
varchar(10) not null)")

database()

veh()

emp()

vis()

res()

‘’’Managing database’’’

import datetime

import mysql.connector as sq

def date_time():

return datetime.datetime.now()

def sql_emp(N,C,T,D):

data = sq.connect(host='localhost', user='root',


password='admin', database='employee')

cur = data.cursor()

#if data.is_connected():

#print('connected sucessfully')
q = "INSERT INTO
employee(NAME,EMP_CODE,TIME,DEPARTMENT) VALUES(%s,%s,%s,
%s)"

val = (N,C,T,D)

cur.execute(q,val)

data.commit()

data.close()

def sql_update(Sr):

data =
sq.connect(host='localhost',user='root',password='admin',
database='employee')

cur = data.cursor()

print('WHAT DO YOU WANT TO CHANGE \n PRESS 1 FOR NAME


\n PRESS 2 FOR CODE \n PRESS 3 FOR DEAPRTMENT \n PRESS 4
FOR LAST ENTERED DATA TO CHANGE')

i = int(input('enter number'))

if i == 1:

n = input('ENTER NAME')

cur.execute(f"UPDATE employee SET NAME='{n}'


WHERE NAME='{Sr}'")

data.commit()

elif i == 2:
n1 = int(input("enter code"))

cur.execute("UPDATE employee SET EMP_CODE={}


WHERE NAME={}".format(n1,Sr))

data.commit()

elif i == 3:

n2 = input("enter department")

cur.execute("UPDATE employee SET DEPARTMENT='{}'


WHERE NAME='{}'".format(n2,Sr))

data.commit()

elif i == 4:

n3 = input("enter name")

n4 = int(input("enter emp_code"))

n5 = input("enter department")

cur.execute("UPDATE employee SET


NAME={},EMP_CODE={},DEPARTMENT={} WHERE
NAME={}".format(n3,n4,n5,Sr))

data.commit()

data.close()

def sql_vechicle(VN,DN,T,M):

data = sq.connect(host='localhost', user='root',


password='admin', database='vechicle_entry')
cur = data.cursor()

q = "INSERT INTO
vechicle_entry(VECHICLE_NUMBER,DRIVER_NAME,TIME,MATERIAL)
VALUES(%s,%s,%s,%s)"

val = (VN,DN,T,M)

cur.execute(q,val)

data.commit()

data.close()

def sql_vehupdate(veh_Sr):

data = sq.connect(host='localhost', user='root',


password='admin', database='vechicle_entry')

cur = data.cursor()

print(

'WHAT DO YOU WANT TO CHANGE \n PRESS 1 FOR


VECHICLE NUMBER'

' \n PRESS 2 FOR DRIVER NAME \n PRESS 3 FOR


MATERIAL \n PRESS 4 FOR LAST ENTERED DATA TO CHANGE')

i = int(input('enter number'))

if i == 1:

n = input('ENTER VECHICLE NUMBER')


cur.execute("UPDATE vechicle_entry SET
VECHICLE_NUMBER={} WHERE
VECHICLE_NUMBER={}".format(n,veh_Sr))

data.commit()

elif i == 2:

n1 = int(input("ENTER DRIVER NAME"))

cur.execute("UPDATE vechicle_entry SET


DRIVER_NAME='{}' WHERE
VECHICLE_NUMBER={}".format(n1,veh_Sr))

data.commit()

elif i == 3:

n2 = input("enter material")

cur.execute("UPDATE vechicle_entry SET


MATERIAL='{}' WHERE
VECHICLE_NUMBER={}".format(n2,veh_Sr))

data.commit()

elif i == 4:

n3 = input("enter vechicle number")

n4 = int(input("enter driver name"))

n5 = input("enter material")

cur.execute("UPDATE vechicle_entry SET


VECHICLE_NUMBER={},DRIVER_NAME='{}',MATERIAL='{}' WHERE
VECHICLE_NUMBER={}".format(n3, n4, n5,veh_Sr))
data.commit()

data.close()

def sql_visitor(N,T,MN,R):

data = sq.connect(host='localhost', user='root',


password='admin', database='visitor_entry')

cur = data.cursor()

q = "INSERT INTO
visitor_entry(NAME,TIME,MOBILE_NUMBER,REASON) VALUES(%s,
%s,%s,%s)"

val = (N,T,MN,R)

cur.execute(q,val)

data.commit()

data.close()

def sql_residental(N,T,H):

data = sq.connect(host='localhost', user='root',


password='admin', database='residental_entry')

cur = data.cursor()

q = "INSERT INTO
residental_entry(NAME,TIME,HOUSE_NUMBER) VALUES(%s,%s,
%s)"

val = (N,T,H)

cur.execute(q,val)
data.commit()

data.close()

def sql_residentalupdate(res_Sr):

data = sq.connect(host='localhost', user='root',


password='admin', database='residental_entry')

cur = data.cursor()

print(

'WHAT DO YOU WANT TO CHANGE \n PRESS 1 FOR NAME'

' \n PRESS 2 FOR HOUSE NUMBER \n PRESS 3 FOR LAST


ENTERED DATA TO CHANGE')

i = int(input("enter number"))

if i == 1:

n = input('ENTER NAME')

cur.execute("UPDATE residental_entry SET


NAME='{}' WHERE NAME='{}'".format(n,res_Sr))

data.commit()

elif i == 2:

n1 = eval(input("ENTER HOUSE NUMBER"))

cur.execute("UPDATE residental_entry SET


HOUSE_NUMBER={} WHERE NAME='{}'".format(n1, res_Sr))
data.commit()

elif i == 3:

n3 = input("enter NAME")

n4 = eval(input("enter HOUSE NUMBER"))

cur.execute(

"UPDATE residental_entry SET


NAME={},HOUSE_NUMBER={} WHERE
RESIDENTAL_SERIAL_no={}".format(

n3,n4,res_Sr))

data.commit()

data.close()

def employee():

data =
sq.connect(host='localhost',user='root',password='admin',
database='employee')

cur = data.cursor()

cur.execute('select * from employee_entry')

dat = cur.fetchall()

for i in dat:

print(i)
print(" IF YOU WANT TO CHANGE ANY DATA ENTER Y/y")

rr = input('enter to change any data')

if rr == 'Y' or rr == 'y':

print('which employee data you want to change')

rr = int(input('enter employee code of the


employee'))

change_emp(rr)

def change_emp(rr):

data = sq.connect(host='localhost', user='root',


password='admin', database='employee')

cur = data.cursor()

n1 = input('enter name of employee::')

n3 = input('enter department::')

n4 = int(input('enter employee code'))

cur.execute(f'UPDATE employee_entry set NAME =


"{n1}",EMP_CODE = {n4},DEPARTMENT = "{n3}" WHERE EMP_CODE
= {rr}')

data.commit()

i = True

while i:
print('want to change more data entry')

print('or want to delete the data')

print('press Y/y to change or D/d to delete the


data')

t = input('enter::')

if t == 'Y' or t == 'y':

na = input('enter name::')

change_emp(na)

elif t == 'D' or t == 'd':

n4 = int(input('enter emp code whose data you


want to delete'))

cur.execute(f"delete from employee_entry


where EMP_CODE = {n4}")

else:

i = False

def vechicle():

data =
sq.connect(host='localhost',user='root',password='admin',
database='vechicle_entry')

cur = data.cursor()

cur.execute('select * from vechicle_entry')


dat = cur.fetchall()

print('\n')

for i in dat:

print(i)

def residental():

data =
sq.connect(host='localhost',user='root',password='admin',
database='residental_entry')

cur = data.cursor()

cur.execute('select * from residental_entry')

dat = cur.fetchall()

for i in dat:

print(i)

def visitor():

data =
sq.connect(host='localhost',user='root',password='admin',
database='visitor_entry')

cur = data.cursor()

cur.execute('select * from visitor_entry')

dat = cur.fetchall()
for i in dat:

print(i)

print("|===========================INDUSTRIAL GATE
MANGEMENT SYSTEM============================|")

print('press one "1" or enter Y to enter data in the


system::')

print('press one "2" or enter R to retrieve data from the


system::')

i = input('enter 1/2 or Y/R::')

# CODE TO ENTER THE DATA INTO THE DATABASE

if (i == '1' or i == 'Y' or i=='y'):

print("ENTER [EMP] OR 1 FOR EMPLOYEE ENTRY")

print("ENTER [VEC] OR 2 FOR VECHICLE ENTRY")

print("ENTER [RES] OR 3 FOR RESIDENTAL ENTRY")

print("ENTER [VIS] OR 4 FOR VISITOR ENTRY")

i1 = input('enter your choice press 1,2,3,4=')

if (i1 == '1' or i1 == 'EMP'):

k = True
while k:

n = input('enter name of employee')

c = int(input('enter employee code of the


employee'))

t = date_time()

d = input('enter department of the emplyee')

sql_emp(n,c,t,d)

print(f"DATA SUCCESSFULLY ENTERED OF EMPLOYEE


NUMBER:\n EMPLOYEE NAME{n}")

print("IF YOU WANT TO CHANGE LAST ENTERED


DATA PRESS Y/y else N/n=")

i2 = input('enter Y/y')

if i2 == 'y' or i2 == 'Y':

sql_update(n)

print('WANT TO ENTER EMPLOYEE DATA AGAIN


PRESS Y/y')

K1 = input('enter y/Y else press any key')

if K1 == 'Y' or K1 == 'y':

k = True

else:
k = False

else:

pass

elif (i1 == '2' or i1 == 'VEH'):

vn = int(input('enter vechicle number'))

dn = input("enter driver name")

vt = date_time()

ma = input("enter material name")

sql_vechicle(vn,dn,vt,ma)

print(f"DATA SICCESSFULLY ENTERED OF VECHICLE


SERIAL NUMBER:\n vechicle number {vn}")

print("IF YOU WANT TO CHANGE LAST ENTERED DATA


PRESS Y/y")

i3 = input('enter Y/y')

if i3 == 'Y' or i3 == 'y':

sql_vehupdate(vn)

elif (i1 == '3' or i1 == 'RES'):

rn = input("enter name of the person::")

rt = date_time()
hn = input("enter house number::")

sql_residental(rn,rt,hn)

print(f"DATA SUCCESSFULLY ENTERED OF REDANTIAL


SERIAL NUMBER:\n NAME: {rn}")

print("IF YOU WANT TO CHANGE LAST ENTERED DATA


PRESS Y/y")

i4 = input('enter Y/y')

if (i4 == 'Y' or i4 == 'y'):

sql_residentalupdate(rn)

elif (i1 == '4' or i1 == 'VIS'):

vn = input('enter name of visitor::')

vt = date_time()

vm = int(input('enter mobile number of the


visitor::'))

vr = input('enter reason to visit the area::')

sql_visitor(vn,vt,vm,vr)

print(f"DATA SUCCESSFULLY ENTERED OF VISITOR


SERIAL NUMBER:\n NAME:{vn}")

# CODE TO READ THE ENTERED DATA

elif (i == '2' or i == 'R' or i == 'r'):


print('SPECIFY WHICH DATABSE YOU WNAT TO ACCESS')

print(' ')

print("ENTER 1 TO RETRIEVE EMPLOYEE DATA")

print("ENTER 2 TO RETRIEVE VECHICLE DATA")

print("ENTER 3 TO RETRIEVE VISITOR DATA")

print("ENTER 4 TO RETRIEVE RESIDENTAL DATA")

r1 = input('enter number')

if r1 == '1':

employee()

elif r1 == '2':

vechicle()

elif r1 == '3':

visitor()

elif r1 == '4':

residental()
QUERIES REQUIRED IN SQL:
1. Employee Management
 Query to list employees and their departments:

SELECT EmployeeID, EmployeeName, Department, JobTitle


FROM Employees;

 Query to count employees in each department:

SELECT Department, COUNT(*) AS TotalEmployees


FROM Employees
GROUP BY Department;

 Query to find employees with salaries above a certain threshold:


SELECT EmployeeID, EmployeeName, Salary
FROM Employees
WHERE Salary > 50000;

2. Inventory Management
 Query to list all items in stock:

SELECT ItemID, ItemName, Quantity, Location


FROM Inventory
WHERE Quantity > 0;

 Query to find items that need restocking:

SELECT ItemID, ItemName, Quantity


FROM Inventory
WHERE Quantity < ReorderLevel;

 Query to calculate the total value of inventory:

SELECT SUM(Quantity * UnitPrice) AS TotalInventoryValue


FROM Inventory;

3. Production Management
 Query to track ongoing production projects:

SELECT ProjectID, ProjectName, StartDate, EndDate, Status


FROM ProductionProjects
WHERE Status = 'Ongoing';

 Query to calculate production output by month:

SELECT MONTH(ProductionDate) AS Month, SUM(OutputQuantity) AS


TotalOutput
FROM ProductionRecords
GROUP BY MONTH(ProductionDate);

4. Order Management
 Query to list pending orders:

SELECT OrderID, CustomerName, OrderDate, Status


FROM Orders
WHERE Status = 'Pending';

 Query to calculate total revenue from completed orders:

SELECT SUM(TotalAmount) AS TotalRevenue


FROM Orders
WHERE Status = 'Completed';
5. Performance Analysis
 Query to calculate average employee performance rating:

SELECT AVG(PerformanceRating) AS AverageRating


FROM EmployeePerformance;

 Query to find top-performing employees:

SELECT EmployeeID, EmployeeName, PerformanceRating


FROM EmployeePerformance
WHERE PerformanceRating >= 4.5;

6. Resource Allocation
 Query to find resource allocation for projects:

SELECT ProjectID, ResourceID, AllocationPercentage


FROM ResourceAllocation;

 Query to list underutilized resources:

SELECT ResourceID, ResourceName


FROM Resources
WHERE UtilizationRate < 50;

7. Maintenance Management
 Query to list equipment due for maintenance:

SELECT EquipmentID, EquipmentName, LastMaintenanceDate


FROM Equipment
WHERE DATEDIFF(CURDATE(), LastMaintenanceDate) >
MaintenanceIntervalDays;

 Query to calculate maintenance costs by month:

SELECT MONTH(MaintenanceDate) AS Month, SUM(Cost) AS TotalCost


FROM MaintenanceRecords
GROUP BY MONTH(MaintenanceDate);
OUTPUT OF THE CODE

1. Database Schema
Define tables that are relevant to industrial management, such as:

 Employees: Information about employees.


 Departments: Departments within the industry.
 Projects: Details of ongoing or completed projects.
 Inventory: Inventory details for materials and tools.
 Production: Records of production schedules and outputs.

Example Schema:
CREATE TABLE Employees (
EmployeeID INT PRIMARY KEY,
Name VARCHAR(50),
Position VARCHAR(50),
DepartmentID INT,
Salary DECIMAL(10, 2),
JoiningDate DATE
);

CREATE TABLE Departments (


DepartmentID INT PRIMARY KEY,
DepartmentName VARCHAR(50),
ManagerID INT
);

CREATE TABLE Projects (


ProjectID INT PRIMARY KEY,
ProjectName VARCHAR(50),
StartDate DATE,
EndDate DATE,
DepartmentID INT
);

CREATE TABLE Inventory (


ItemID INT PRIMARY KEY,
ItemName VARCHAR(50),
Quantity INT,
LastUpdated DATE
);

CREATE TABLE Production (


ProductionID INT PRIMARY KEY,
ItemID INT,
QuantityProduced INT,
ProductionDate DATE
);
2. Queries and Outputs
Employee Information

Query to display employee details:

SELECT * FROM Employees;

Output Example:

EmployeeID Name Position DepartmentID Salary JoiningDate

1 John Doe Manager 101 75000.00 2020-01-15

2 Jane Smith Engineer 102 65000.00 2021-05-20

Departmental Projects

Query to display projects handled by each department:

SELECT d.DepartmentName, p.ProjectName, p.StartDate, p.EndDate


FROM Departments d
JOIN Projects p ON d.DepartmentID = p.DepartmentID;
Output Example:

DepartmentName ProjectName StartDate EndDate

Engineering Solar Panel Dev 2022-03-01 2023-05-01

Production Assembly Line A 2021-09-01 2022-09-01

Inventory Status

Query to display current inventory levels:

SELECT * FROM Inventory;

Output Example:

ItemID ItemName Quantity LastUpdated

101 Steel Sheets 500 2024-12-20

102 Bolts 1500 2024-12-20

Production Output

Query to display production output by date:

SELECT * FROM Production;

Output Example:

ProductionID ItemID QuantityProduced ProductionDate

1 101 200 2024-12-22

2 102 300 2024-12-21

3. Analytical Insights
Total Production for an Item
SELECT ItemID, SUM(QuantityProduced) AS TotalProduced
FROM Production
GROUP BY ItemID;

Output Example:

ItemID TotalProduced

101 5000

102 3200
High-Value Employees
SELECT Name, Position, Salary
FROM Employees
WHERE Salary > 70000;

Output Example:

Name Position Salary

John Doe Manager 75000.00

This SQL-based project output can be extended based on specific industrial management
needs like workforce optimization, resource utilization, and project tracking.

BIBLIOGRAPHY:
 W3schools.com
 Tutorialspoint.com
 Python.org
 Mysql.com
 Sumita arora-computer science with
python-class XII

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy