55![ Prettier Format] ( https://github.com/TheComputationalCore/sql-jdbc-mongodb-tasks/actions/workflows/prettier-format.yml/badge.svg )
66![ License] ( https://img.shields.io/badge/License-MIT-green.svg )
77
8- A clean, structured repository containing SQL queries, JDBC database operations, and MongoDB query tasks.
9- This project demonstrates backend fundamentals using ** MySQL** , ** Java JDBC ** , and ** MongoDB** .
8+ A structured repository with SQL queries, JDBC operations, and
9+ MongoDB tasks. This project uses MySQL, Java, and MongoDB.
1010
11- ---
12-
13- ## 📁 Project Structure
11+ ## Project Structure
1412
1513```
1614sql-jdbc-mongodb-tasks/
17- │── .github/workflows/ # CI workflows (Java build, linting, formatting)
18- │── screenshots/ # Visual outputs of SQL & Java executions
19- │── 1.sql # SQL queries for Employee table
15+ │── .github/workflows/
16+ │── screenshots/
17+ │── 1.sql
2018│── MyDatabaseConnection.java
2119│── QuestionTwo.java
2220│── MONGODB TASK.docx
2321│── README.md
2422│── LICENSE
2523```
2624
27- ---
28-
29- ## 🧩 Task 1 — SQL Queries (MySQL)
25+ ## Task 1 — SQL Queries (MySQL)
3026
31- These SQL queries run on the ` Empl ` table to explore filtering, pattern matching, and NULL checks.
32-
33- ### 📸 Screenshots
27+ ### Screenshots
3428
3529#### Full Table Output
3630
@@ -44,78 +38,64 @@ These SQL queries run on the `Empl` table to explore filtering, pattern matching
4438
4539![ NULL commission] ( screenshots/1.3.png )
4640
47- #### Salary NOT Between 2500 and 4000
41+ #### Salary Not Between 2500 and 4000
4842
49- ![ NOT between] ( screenshots/1.4.png )
43+ ![ Not between] ( screenshots/1.4.png )
5044
51- #### No Manager (mgr IS NULL)
45+ #### No Manager
5246
5347![ No manager] ( screenshots/1.5.png )
5448
55- #### Name with 'A' as 3rd Letter
49+ #### Name With 'A' as 3rd Letter
5650
5751![ Third letter A] ( screenshots/1.6.png )
5852
59- #### Name Ending with 'T'
53+ #### Name Ending With 'T'
6054
6155![ Ends with T] ( screenshots/1.7.png )
6256
6357#### Final SQL Script
6458
6559![ SQL Script] ( screenshots/1.8.png )
6660
67- ---
61+ ## Task 2 — JDBC Program
6862
69- ## 🧩 Task 2 — JDBC Program (Java)
63+ ### Connection Class
7064
71- ` MyDatabaseConnection.java `
72- Establishes connection to MySQL using JDBC.
7365![ JDBC Connection] ( screenshots/2.5.png )
7466
75- ** Output:**
76- ![ Connection Created] ( screenshots/2.6.png )
77-
78- ` QuestionTwo.java `
79- Creates a table and inserts employee records.
80- ![ Inserted Data] ( screenshots/2.5.png )
67+ ### Output
8168
82- ---
69+ ![ Output ] ( screenshots/2.6.png )
8370
84- ## 🧩 Task 3 — MongoDB Queries
71+ ## Task 3 — MongoDB Queries
8572
86- Queries performed on ` product.json ` dataset (Day 1) .
73+ Queries are included in ` MONGODB TASK.docx ` .
8774
88- Includes filters, ranges, projections, and delete operations.
89- File: ` MONGODB TASK.docx `
75+ ## How to Run
9076
91- ---
92-
93- ## ▶️ How to Run
94-
95- ### ** SQL**
77+ ### SQL
9678
9779``` sql
9880mysql - u root - p
9981use tasks;
10082source 1 .sql;
10183```
10284
103- ### ** Java**
85+ ### Java
10486
10587``` bash
10688javac MyDatabaseConnection.java QuestionTwo.java
10789java MyDatabaseConnection
10890java QuestionTwo
10991```
11092
111- ### ** MongoDB**
93+ ### MongoDB
11294
11395``` bash
11496mongoimport --db mydatabase --collection products --file product.json --jsonArray
11597```
11698
117- ---
118-
119- ## 📜 License
99+ ## License
120100
121- This project is licensed under the ** MIT License** .
101+ MIT License.
0 commit comments