Skip to content

Commit 88356c4

Browse files
added example sql file and modified README.md file
1 parent 92ded38 commit 88356c4

File tree

5 files changed

+120
-2
lines changed

5 files changed

+120
-2
lines changed

.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,47 @@
1-
# Student-Management-System-in-Java
2-
Student Management System in Java
1+
# Student Management System in JAVA
2+
This is a simple Student Management System project implemented using Java and MySQL. It allows users to perform CRUD (Create, Read, Update, Delete) operations on student data such as ID, first name, last name, major, phone number, GPA, and date of birth.
3+
4+
# Features
5+
* Add a new student
6+
* View student data
7+
* Update student data
8+
* search for a student
9+
* sort students by major, lastname and firstname.
10+
11+
# Requirements
12+
* Java 8 or higher.
13+
* MySQL Server.
14+
15+
# Installation
16+
1. Clone the repository
17+
```bash
18+
git clone https://github.com/your_username/student-management-system.git
19+
```
20+
2. Create a new MySQL database and import the student_data.sql file to
21+
3. create the required table and sample data.
22+
4. Update the MySQL database connection details in the dbConnect class.
23+
5. Build and run the project using a Java IDE or command-line tool.
24+
25+
26+
# Usage
27+
* Launch the application
28+
* Select the desired operation from the main menu
29+
* Follow the prompts to enter or update student data
30+
31+
# Database Columns
32+
The database table used in this project has the following columns:
33+
34+
* Student_ID: The unique identifier for each student.
35+
* first_name: The first name of the student.
36+
* last_name: The last name of the student.
37+
* major: The major that the student is studying.
38+
* Phone: The phone number of the student.
39+
* GPA: The grade point average of the student.
40+
* DOB: The date of birth of the student.
41+
42+
# Future Enhancements
43+
* Fee tracking
44+
* Attendance management
45+
46+
47+

student_data.sql

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
-- MySQL dump 10.13 Distrib 8.0.31, for Win64 (x86_64)
2+
--
3+
-- Host: localhost Database: studata
4+
-- ------------------------------------------------------
5+
-- Server version 8.0.31
6+
7+
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
8+
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
9+
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
10+
/*!50503 SET NAMES utf8mb4 */;
11+
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
12+
/*!40103 SET TIME_ZONE='+00:00' */;
13+
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
14+
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
15+
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
16+
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
17+
18+
--
19+
-- Table structure for table `sdata`
20+
--
21+
22+
DROP TABLE IF EXISTS `sdata`;
23+
/*!40101 SET @saved_cs_client = @@character_set_client */;
24+
/*!50503 SET character_set_client = utf8mb4 */;
25+
CREATE TABLE `sdata` (
26+
`Student_ID` varchar(10) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_520_ci NOT NULL,
27+
`first_name` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_520_ci NOT NULL,
28+
`last_name` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_520_ci NOT NULL,
29+
`major` varchar(50) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_520_ci NOT NULL,
30+
`Phone` varchar(12) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_520_ci DEFAULT NULL,
31+
`GPA` varchar(5) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_520_ci NOT NULL,
32+
`DOB` varchar(30) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_520_ci DEFAULT NULL,
33+
UNIQUE KEY `Student ID` (`Student_ID`)
34+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_520_ci;
35+
/*!40101 SET character_set_client = @saved_cs_client */;
36+
37+
--
38+
-- Dumping data for table `sdata`
39+
--
40+
41+
LOCK TABLES `sdata` WRITE;
42+
/*!40000 ALTER TABLE `sdata` DISABLE KEYS */;
43+
INSERT INTO `sdata` VALUES ('001','Sankar','Nagarapu','EEE','9398068299','7.0','2002-06-24'),('002','Dharani','Nagarapu','CSE','9133501412','8.0','2004-06-05'),('003','Sindhu','Makarapu','CSE','9133505025','10.0','2004-06-25'),('004','Sneha','kurma','CSE','9548625756','10.0','2004-06-27'),('005','meghana','null','CSE','9548651652','10.0','2004-05-22');
44+
/*!40000 ALTER TABLE `sdata` ENABLE KEYS */;
45+
UNLOCK TABLES;
46+
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
47+
48+
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
49+
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
50+
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
51+
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
52+
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
53+
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
54+
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
55+
56+
-- Dump completed on 2023-03-12 9:28:19

0 commit comments

Comments
 (0)