Skip to content

Bhanu's Blog

it's not about being the best it's about being better than yesterday

Bhanu's Blog

it's not about being the best it's about being better than yesterday

Tag: joins

Tech

How to pick the first row in a join to avoid duplicate records in SQL

  • bhanunadar
  • Posted on April 16, 2023

One of the common problem that we may face during joining multiple tables in a SQL is we want only one row across the entire tables even if we have duplicate records. Consider the following tables In a given scenario, we have customers, invoices and items table. Now we want to list down a summary…

Read More

Recent Posts

  • My Experience with LG Ultragear 32GS60QC (32 inch)
  • TIL: Value Classes
  • Counting Subarrays Where the Max Appears At Least K Times (LeetCode 2962)
  • Solo motorcycle trip to Ratnagiri from Mumbai
  • How to Check If a Private Key Matches a Certificate

Copyright © All rights reserved. Proudly powered by WordPress | Theme: Blog Nano by ThemeMiles.