🚀 Day 17 | Java Backend Development – 100 Days Challenge 📚 Topics Covered Today: Types of SQL Statements: DDL, DML, DCL, TCL CREATE TABLE with Constraints Primary Key Foreign Key ALTER TABLE – ADD, MODIFY, DROP columns DML Operations: INSERT, UPDATE, DELETE JOINS explained: INNER, LEFT, RIGHT, FULL Aggregations, GROUP BY & HAVING with Joins Today was all about relational data modeling and complex data querying — core skills for any backend developer. Understanding joins and constraints is key to writing efficient and accurate database queries. Backend isn’t complete without strong SQL fundamentals 💪 On to Day 18 🚀 #SQL #Databases #BackendDevelopment #SpringBoot #Java #100DaysOfCode #Day17 #LearningInPublic #SoftwareEngineering
SQL Fundamentals for Backend Development - Day 17
More Relevant Posts
-
// The Rule of Thumb Simple queries -> Java. Heavy lifting -> DB. Here is why... I’ve been seeing too many projects lately where business logic is buried deep inside Stored Procedures. It makes debugging a nightmare and ties you strictly to one database. We need to move that logic back to the Application Layer. My rule of thumb for where the code should live: 1) Simple/Medium queries: Keep it in Java (JPA or native SQL). 2) Complex joins: Use Native SQL in the repository, but keep the logic business-driven. 3) Heavy data lifting: Stored Procedures. But strictly as a last resort for performance. With modern Java features like Records and Lambdas, there’s really no excuse to hide logic in the DB anymore. It’s about readability and decoupling, not just "getting it to work." Happy Coding ✌ #SystemArchitecture #Java #BackendEngineering #ScalableSystems #TechLeadership #Database #EngineeringBestPractices
To view or add a comment, sign in
-
📘 #Day107 of My Java Full Stack Journey Today I learned how to read data from the database using JDBC and how to process it using ResultSet. ✨ 𝐖𝐡𝐚𝐭 𝐢𝐬 𝐚 𝐑𝐞𝐚𝐝 𝐎𝐩𝐞𝐫𝐚𝐭𝐢𝐨𝐧? A read operation is used to fetch data from the database, using a SELECT query. 𝑬𝒙: SELECT * FROM student; In JDBC, read operations are executed using: 👉executeQuery() 🔹𝐔𝐬𝐢𝐧𝐠 𝐏𝐫𝐞𝐩𝐚𝐫𝐞𝐝𝐒𝐭𝐚𝐭𝐞𝐦𝐞𝐧𝐭 𝐟𝐨𝐫 𝐑𝐞𝐚𝐝 𝐎𝐩𝐞𝐫𝐚𝐭𝐢𝐨𝐧: I used PreparedStatement to execute the SELECT query safely and efficiently. 𝑬𝒙: PreparedStatement ps = con.prepareStatement(query); ResultSet rs = ps.executeQuery(); ➜ PreparedStatement executes the query ➜ executeQuery() returns the ResultSet ➜ ResultSet contains the data returned from the database 🔹 𝐏𝐫𝐨𝐜𝐞𝐬𝐬𝐢𝐧𝐠 𝐑𝐞𝐬𝐮𝐥𝐭𝐒𝐞𝐭: ResultSet acts like a cursor that allows us to read data row by row. Using ResultSet: ➜ Move through rows using next() ➜ Retrieve values using getInt(), getString(), etc. ➜ Column indexing starts from 1 📌 𝙆𝙚𝙮 𝙇𝙚𝙖𝙧𝙣𝙞𝙣𝙜𝙨: ▪ executeQuery() is used for read operations ▪ ResultSet stores data returned from the database ▪ ResultSet allows row-by-row processing ▪ Must close ResultSet after usage Gurugubelli Vijaya Kumar | 10000 Coders #Java #JDBC #ResultSet #AdvancedJava #BackendDevelopment #JavaLearning
To view or add a comment, sign in
-
-
🚀 Day 19 | Java Backend Development – 100 Days Challenge 📚 Topics Covered Today: PreparedStatement – deep dive Why PreparedStatement is preferred over Statement Database Transactions – concept & use cases ACID Properties explained Transactions Hands-on: Commit & Rollback Today was about writing secure, consistent, and reliable database operations. Understanding transactions is crucial for data integrity in real-world backend systems. From simple queries → to production-safe database interactions 💪 On to Day 20 🚀 #Java #JDBC #Transactions #SQL #BackendDevelopment #SpringBoot #100DaysOfCode #Day19 #LearningInPublic #SoftwareEngineering
To view or add a comment, sign in
-
-
🚀 Built a Mini SQL Query Engine in Java (from scratch) To truly understand how SQL works internally/in backend , I built a lightweight SQL-like engine using Java with Excel (.xlsx) as persistent storage. 🔹 Implemented core queries: INSERT, SELECT, SELECT with WHERE, and DELETE 🔹 Designed a basic query parser using string tokenization & substring logic 🔹 Simulated table scanning and conditional filtering similar to real database engines 🔹 Used Apache POI to handle file-based storage This project helped me deeply understand how SQL queries are parsed and executed behind the scenes, rather than just using them at a surface level. Always fun to learn systems by building them 🚀 #Java #SQL #BackendDevelopment #LearningByBuilding #ApachePOI #Databases #ComputerScience
To view or add a comment, sign in
-
When I first learned Tree data structures in Java, I felt lost. Arrays were easy. Lists were predictable. Everything was linear. Then Trees showed up. 1 / \ 2 3 / \ / \ 4 5 6 7 I just don't know how to read this. If you’ve ever felt the same confusion, I wrote a detailed breakdown, starting from counting nodes, understanding levels, all the way to inOrder traversal. 👉 Read the full explanation on my website here: https://lnkd.in/g6kJjRTC #Java #DataStructures #BinaryTree #SoftwareEngineering #BackendDevelopment
To view or add a comment, sign in
-
-
Processing 4M+ records taught me a lesson no book ever did. Recently, I worked on a Java application that processes 4 million+ records daily. At first glance, the logic looked simple. But once it hit real data volume, everything changed. Here’s what I truly learned: 🔹 Code that works ≠ Code that scales What runs fine for 10k records can fail badly at 4M. 🔹 Database design matters more than fancy Java code Indexes, partitions, and query plans made a bigger impact than refactoring services. 🔹 Batch jobs expose real engineering gaps Memory leaks, commit frequency, fetch size — small things became critical. 🔹 Logs are your best debugging tool in production When jobs run for hours, logs tell the real story. 🔹 Performance tuning is not a one-time task Every data growth brings a new bottleneck. This experience reminded me that real learning happens when systems are stressed, not when everything works smoothly. If you’re working on high-volume systems, focus less on “perfect code” and more on how your system behaves under pressure. Would love to hear — what’s the biggest data volume you’ve handled so far? #Java #Spring #BatchProcessing #PerformanceTuning #BackendEngineering #LearningByDoing
To view or add a comment, sign in
-
📊 Leveling Up My Backend Game with SQL! As a Java Full-Stack Developer, mastering SQL is crucial for building powerful applications! Here are the core concepts I'm focusing on: ✨ SQL Syntax - Crafting clean and effective queries ✨ Tables - Designing and managing database schemas ✨ SELECT Statements - Retrieving data efficiently for APIs ✨ JOINs - Working with relational data across multiple tables ✨ Filtering Data - Implementing business logic with WHERE and HAVING ✨ Indexes - Enhancing application performance through query optimization From managing user data to handling complex transactions, SQL is essential for every full-stack developer. Combining this with Java frameworks like Spring and Hibernate opens up endless possibilities for creating scalable, data-driven applications! 🚀💡 #JavaFullStack #SQL #DatabaseManagement #BackendDevelopment #FullStackDeveloper #JavaDeveloper #TechGrowth #Programming #Fortuneit
To view or add a comment, sign in
-
-
Late last year, I faced a scenario I hadn't encountered before: the need to process a 600,000-row Excel file with 18 columns of data and complex dependencies. My first attempt resulted in an OutOfMemoryError. The sheer volume combined with the business logic just crushed the heap. Instead of simply asking for more server RAM, I decided to dig deeper and look for modern ways to utilize 100% of Java's capabilities. The solution involved moving away from framework defaults and optimizing three critical areas: 1. Reading: I switched from loading the whole DOM to a Streaming approach. Keeping only a sliding window of rows in memory drastically reduced the footprint. 2. Validation: I replaced thousands of database queries (the N+1 problem) with an in-memory entity cache (Maps), validating business rules locally. 3. E: I swapped JPA's saveAll for JDBC Batch. Inserting data in chunks without the overhead of Hibernate's dirty checking made the process fly. It was a great reminder that sometimes the solution isn't about infrastructure, but solid software engineering. #Java #Spring #Backend #Performance #SoftwareEngineering
To view or add a comment, sign in
-
-
. 📘 Core Java – Day 12 | Arrays (1D Array) Today, I learned about Arrays in Java. An array is a data structure that allows storing multiple values of the same data type under a single variable name. Arrays help in managing large amounts of data efficiently and make programs more structured. 🔍 Key Observations about Arrays: Dimensionality – Arrays can be 1D, 2D, and 3D Data Type – Arrays are homogeneous, meaning they store only the same type of data Structure – Arrays can be Regular (equal number of columns) or Jagged (unequal number of columns) 🧩 Types of Arrays: Regular Array – Equal number of columns in each row Jagged Array – Unequal number of columns in each row ✅ 1D Array (One-Dimensional Array) A 1D Array stores data in a single linear sequence. Each element is accessed using an index, starting from 0. Why use 1D Array? Stores multiple values efficiently Reduces code complexity Easy access using index position 🧪 Example: int[] numbers = {10, 20, 30, 40, 50}; System.out.println(numbers[2]); // Output: 30 📌 In this example, all elements are of type int, and numbers[2] accesses the third element because indexing starts from 0. #CoreJava #Day12 #JavaArrays #1DArray #JavaLearning #ProgrammingJourney #LinkedInLearning
To view or add a comment, sign in
-
🚀 Day 8 – Core Java | Data Types from Memory Perspective Today’s session completely changed the way I look at data types. Instead of memorizing int, float, long, we understood why data types exist. 🔑 Key Learnings: ✔ RAM is a collection of bytes ✔ Bytes → Bits → Transistors ✔ Transistors understand only 0 & 1 ✔ Real-world data must be converted into binary before storage 💡 Big insight: Data types are not “types of data” Data types are converters that transform real-world data into 0s and 1s ✔ Understood primitive data types: Integer: byte, short, int, long Real numbers: float, double char, boolean ✔ Learned why multiple integer data types exist → Memory efficiency matters → Small choices scale massively in real applications ✔ Practical understanding of: Memory allocation Data ranges Why correct data type selection matters in industry 🎯 Interview takeaway: Don’t give textbook answers. Explain concepts from memory & system perspective. This session laid the foundation for thinking like a real developer, not just writing code 🚀 #CoreJava #DataTypes #MemoryManagement #JavaFundamentals #DeveloperMindset #LearningJourney
To view or add a comment, sign in
Explore related topics
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development