https://github.com/cihat-kose/jdbc-mysql-practice-lessons
Master SQL & DB testing skills with Java JDBC, TestNG, and real Sakila database scenarios.
https://github.com/cihat-kose/jdbc-mysql-practice-lessons
database java jdbc maven mysql sakila sql testng
Last synced: 10 months ago
JSON representation
Master SQL & DB testing skills with Java JDBC, TestNG, and real Sakila database scenarios.
- Host: GitHub
- URL: https://github.com/cihat-kose/jdbc-mysql-practice-lessons
- Owner: cihat-kose
- License: mit
- Created: 2023-02-28T13:37:39.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-05-24T18:45:40.000Z (about 1 year ago)
- Last Synced: 2025-07-08T23:03:48.162Z (12 months ago)
- Topics: database, java, jdbc, maven, mysql, sakila, sql, testng
- Language: Java
- Homepage: https://dev.mysql.com/doc/sakila/en/
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JDBC MySQL Practice Lessons




A hands-on learning lab to master **JDBC** and SQL querying skills using the Sakila sample database.
> 📌 SQL scripts are included for reference and **should be executed in tools like DBeaver or MySQL Workbench** — not from IntelliJ.
---
### What You Will Learn
- How to connect to MySQL databases using JDBC
- Execute SQL queries and navigate results with Java
- Use scrollable `ResultSet` features
- Validate data with **TestNG** assertions
- Structure DB test flows professionally
---
### Tech Stack
- **Java 21**
- **JDBC** (MySQL Connector)
- **TestNG 7.10+**
- **Maven**
- **MySQL (Sakila)**
---
### Project Structure
```
jdbc-mysql-practice-lessons/
├── src/
│ └── test/
│ └── java/
│ ├── jdbc/
│ │ ├── JDBCParent.java
│ │ ├── JDBCPractices01.java
│ │ ├── JDBCPractices02.java
│ │ ├── JDBCSakilaCustomerAddAndVerifyExample.java
│ │ └── JDBCSakilaTask.java
│ │
│ └── mysql-sakila-db-practice-notes/
│ ├── MySQL_SakilaDB_Mentoring_01.sql
│ ├── MySQL_SakilaDB_Mentoring_02.sql
│ └── MySQL_SakilaDB_Mentoring_03.sql
├── pom.xml
└── README.md
```
---
### Getting Started
```bash
# Clone the repository
git clone https://github.com/cihat-kose/jdbc-mysql-sakila-db-practice-notes-practice-lessons.git
cd jdbc-mysql-sakila-db-practice-notes-practice-lessons
# Build the project
mvn clean install
# Run all tests
mvn test
```
---
### About the SQL Files
The `.sql` scripts in this repo are for learning purposes only:
- Based on the **Sakila** sample DB
- Practice topics include:
- Filtering, sorting, joins
- Aggregation, grouping, DDL & DML
- Query navigation & performance
- Execute them in tools like **MySQL Workbench**, **DBeaver**, or **DataGrip**
---
### Who Should Use This?
This repo is a great fit if you're:
- A QA Engineer learning database testing
- A SDET student preparing for real-life test scenarios
- A Java developer exploring JDBC deeper
- A bootcamp attendee reviewing SQL basics
---
### Maintained by
**[cihatkose](https://github.com/cihat-kose)**
Creating dev tools and educational resources for future engineers.
---
### License
This project is licensed under the [MIT License](LICENSE).
---