Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Elastic simplifies log analytics for SREs and developers with launch of Log Essentials

      August 7, 2025

      OpenAI launches GPT-5

      August 7, 2025

      Melissa brings its data quality solutions to Azure with new SSIS integration

      August 7, 2025

      Automating Design Systems: Tips And Resources For Getting Started

      August 6, 2025

      This $180 mini projector has no business being this good for the price

      August 7, 2025

      GPT-5 is finally here, and you can access it for free today – no subscription needed

      August 7, 2025

      Changing this Android setting instantly doubled my phone speed (Samsung and Google models included)

      August 7, 2025

      ChatGPT can now talk nerdy to you – plus more personalities and other upgrades beyond GPT-5

      August 7, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Advanced Application Architecture through Laravel’s Service Container Management

      August 7, 2025
      Recent

      Advanced Application Architecture through Laravel’s Service Container Management

      August 7, 2025

      Switch Between Personas in Laravel With the MultiPersona Package

      August 7, 2025

      AI-Driven Smart Tagging and Metadata in AEM Assets

      August 7, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Bill Gates on AI’s Impact: ‘Be Curious, Read, and Use the Latest Tools’

      August 7, 2025
      Recent

      Bill Gates on AI’s Impact: ‘Be Curious, Read, and Use the Latest Tools’

      August 7, 2025

      Halo Infinite’s Fall Update: New Features and Modes to Revive the Game?

      August 7, 2025

      Forza Motorsport’s Future in Jeopardy: Fans Demand Clarity from Microsoft

      August 7, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»SQL Joins

    SQL Joins

    June 23, 2025

    A Join clause is used to combine two or more tables in a database by merging the records from the tables based on a related column between them.

    Example JOIN using two tables: employees and departments

    employees table:

    idemp_namedepartment_idjoining_date
    1Anuj kumar1012025-01-01
    2Rahul Singh1022025-02-16
    3John Doe1022025-02-25
    4Alex1042025-04-20
    5Alicenull2025-05-24
    6Garima1102025-05-28

    departments tables:

    iddepartment_name
    101IT
    102HR
    103Accounts
    104Operations
    105Marketing
    106Legal

    Example

    SELECT employees.id,employees.emp_name, departments.department_name
    FROM employees
    JOIN departments
    ON employees.department_id = departments.id;

     Output will be:

    idemp_namedepartment_name
    1Anuj kumarIT
    2Rahul SinghHR
    3John DoeHR
    4AlexOperations

    Only rows where department_id matches departments.id are shown.

    Alice is excluded because department_id is NULL.

    Garima is also excluded because 110 does not exist in the departments table.

    There are five common types of SQL JOINs:

    Inner Join: Returns only the rows with matching values in both tables.

    Right Outer Join: Returns all rows from the right table and matched rows from the left table; unmatched left-side values are NULL.

    Left Outer Join: Returns all rows from the left table and matched rows from the right table; unmatched right-side values are NULL.

    Full outer Join: Returns all rows when there is a match in one of the tables; unmatched rows from both sides are filled with NULL.

    Cross Join: Returns the Cartesian product of both tables (every row from the first table joined with every row from the second).

    The post SQL Joins appeared first on PHPGurukul.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleDividing Collections with Laravel’s splitIn Helper
    Next Article LLMs factor in unrelated information when recommending medical treatments

    Related Posts

    Development

    Advanced Application Architecture through Laravel’s Service Container Management

    August 7, 2025
    Development

    Switch Between Personas in Laravel With the MultiPersona Package

    August 7, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    CVE-2025-30386 – Microsoft Office Use After Free Code Execution Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Mini Text is a very small and basic text editor

    Linux

    Refactor More Than Code: Learn about Refactoring PHP Code and Other Tools and Methods to Improve Your Code

    Development

    Horse armor: Is this an Oblivion tribute — or just Minecraft being weird again?

    News & Updates

    Highlights

    CVE-2025-6444 – ServiceStack NTLM Relay Vulnerability

    June 25, 2025

    CVE ID : CVE-2025-6444

    Published : June 25, 2025, 6:15 p.m. | 24 minutes ago

    Description : ServiceStack GetErrorResponse Improper Input Validation NTLM Relay Vulnerability. This vulnerability allows remote attackers to relay NTLM credentials on affected installations of ServiceStack. Interaction with this library is required to exploit this vulnerability but attack vectors may vary depending on the implementation.

    The specific flaw exists within the implementation of the GetErrorResponse method. The issue results from the lack of proper validation of user-supplied data, which can result in a type confusion condition. An attacker can leverage this vulnerability to relay NTLM credentials in the context of the current user. Was ZDI-CAN-25834.

    Severity: 5.9 | MEDIUM

    Visit the link for more details, such as CVSS details, affected products, timeline, and more…

    New ZuRu Malware Variant Targeting Developers via Trojanized Termius macOS App

    July 10, 2025

    Hacker selling critical Roundcube webmail exploit as tech info disclosed

    June 5, 2025

    The 10+ Best AI & Pro Web Design Tools for 2025

    July 16, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.