@RealBenjizo Both are not same. Think of a case where category is Electronics and price is 50. First query won't return anything where as second query will return this record.
🚨 Avoid CASE in the WHERE Clause
One of the most common SQL anti-patterns is using CASE inside the WHERE clause to handle conditional logic on ranges or filters.
Here's a classic example:
SELECT * FROM products
WHERE
CASE WHEN category = 'Electronics' THEN price < 500 ELSE price < 100 END;
It works, but it usually kills performance because the CASE expression makes the predicate non-SARGable in most major databases. The optimizer can't effectively seek into an index on price (or a composite (category, price) index). You often end up with full table scans, even when you have great indexes.
SELECT * FROM products
WHERE price < 100
OR (category = 'Electronics' AND price < 500);
👑 This version is better because it simplifies the logic and avoids unnecessary conditions. This makes the query easier to read, easier to maintain, and easier for the optimizer to reason about since the predicates are straightforward and not wrapped in extra logical branching.
📙 SQL Essentials for Data Analysis is now Available
link: benjaminb.gumroad.com/l/hkkmf
Daily limit for Indus by Sarvam AI OVER?
It asked me to wait for 24 hours.
So this is what I did.
I went to Settings. Clicked on Delete my Account.
My account was deleted. I logged in again with my phone number and OTP 🔥
Works ❤️ Real Intelligence always works...
#FI
@oyehoyee_ We regret the inconvenience caused.
Could you please confirm if you are using a Jio network for internet connectivity. If you are using a different network and still facing the issue, kindly write to us at help@valueresearch.in so we can investigate further.
Run a full coding agent locally.
No API bills. No limits. No data leaving your machine.
Private. Powerful. 100% free.
I made a step-by-step guide anyone can follow in minutes.
To get it, just:
→ Like + Repost
→ Comment “LOCAL”
→ Follow me (so I can DM)
Me: Hi IT Department. I need a VM set up to host a Power BI Gateway. Ideally it would have 32GB of RAM, but 16GB should work for this application if that is all you have.
IT Dept: Sure! Here is your VM. It has 8GB of RAM. Enjoy!
it's the same in Pune as well, not sure which indian city has clean air to breathe anymore.
I can smell the smoke and taste the pollution entering my body. Down with a sore throat and constant sneezing for 2 days.
I was in Assam a few days back breathing pristine air but had to come back because of mandatory WFO 😫.
Leave Delhi, go in debt if you have to.
I used to think, how bad can the AQI really be for people in Delhi? I knew it was bad, but I never understood the scale because I didn’t feel it as drastically. I grew up in Delhi, studied here, and never felt a huge difference. You see people on the streets without masks, just walking around, and even people going for morning runs.
But I was wrong. It’s a crisis. And honestly, leaving this city should be your top priority. After living in London for a few years and breathing clean air, the moment I landed in Delhi I could literally taste and smell the pollution. Even AQI 200 hit me hard: sore throat, and a feeling like needles in my lungs. I could actually feel the pollution entering my body.
Please leave this city for your own sake. Buying a property here does not make sense either. Same for Mumbai. If you can, pack your bags and move yourself and your work somewhere else. I’ve cut my trip short and I’m leaving this city tomorrow.