Blog

Page 678 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for When should I use CROSS APPLY over INNER JOIN?
performance

When should I use CROSS APPLY over INNER JOIN?

Published on September 2, 2023

## When should I use CROSS APPLY over INNER JOIN? 🤔 Are you struggling to decide whether to use CROSS APPLY or INNER JOIN in your SQL queries? Don't worry, you're not alone! It can be confusing to determine the best approach, especially when they seem to

Cover Image for Parameterize an SQL IN clause
parameters

Parameterize an SQL IN clause

Published on September 2, 2023

# Parameterizing an SQL IN Clause: A Simple Guide 👨‍💻🔧 So you want to parameterize an SQL query with an IN clause that has a variable number of arguments? 🤔 No worries, we've got you covered! In this blog post, we'll walk you through common issues, pr

Cover Image for Insert into a MySQL table or update if exists
mysql

Insert into a MySQL table or update if exists

Published on September 2, 2023

# How to Insert Into a MySQL Table or Update If Exists 🔄 <p>So you want to add a row to a MySQL table, but there's a catch - you want to update the row if a duplicate key already exists. Trying to figure out how to achieve this without running into error

Cover Image for SQL Update from One Table to Another Based on a ID Match
join

SQL Update from One Table to Another Based on a ID Match

Published on September 2, 2023

# Updating Account Numbers from One Table to Another Based on ID Match Updating data in one table based on the values in another table is a common task in SQL. In this blog post, we will explore a specific problem where we need to update account numbers i

Cover Image for Get list of all tables in Oracle?

Get list of all tables in Oracle?

Published on September 2, 2023

# 📝 Getting a List of All Tables in Oracle: A Simple Guide Are you struggling to find a way to query an Oracle database and display the names of all tables in it? Look no further! In this guide, we will walk you through the steps to achieve this seemingl

Cover Image for Retrieving the last record in each group - MySQL
group-bymysql

Retrieving the last record in each group - MySQL

Published on September 2, 2023

# Retrieving the Last Record in Each Group - MySQL Are you struggling to retrieve the last record in each group in MySQL? 😓 Don't worry! We've got you covered! In this blog post, we will address this common issue and provide you with easy and efficient s

Cover Image for How do I limit the number of rows returned by an Oracle query after ordering?

How do I limit the number of rows returned by an Oracle query after ordering?

Published on September 2, 2023

# How to Limit the Number of Rows Returned by an Oracle Query after Ordering 📊 Are you struggling with limiting the number of rows returned by an Oracle query after ordering? Do you wish you could make an Oracle query behave just like the MySQL `LIMIT` c

Cover Image for How to get the identity of an inserted row?

How to get the identity of an inserted row?

Published on September 2, 2023

# 📝 How to Get the 💼 Identity of an Inserted Row? So, you've successfully inserted a row into your fancy database table, but now you're scratching your head wondering how to retrieve the auto-generated identity value for that inserted row. Don't worry,

Cover Image for How can I list the tables in a SQLite database file that was opened with ATTACH?

How can I list the tables in a SQLite database file that was opened with ATTACH?

Published on September 2, 2023

# How to List Tables in a SQLite Database File Are you grappling with the task of listing tables in a SQLite database file that was opened with ATTACH? 🤔 Don't worry, we've got your back! In this blog post, we'll walk you through the common issues and p

Blog | Matheus Mello