How to fix 'Selecting rows without null or blank value in each column'?

how to fix anything
how to fix phone
how to fix broken things
how to fix things around the house
how to fix stuff
how to fix a zipper
how to fix keyboard
how to repair appliances

Im having trouble using this code here:

select *
from toadd
where pcode = '' or pcode is null or
      brand = '' or brand is null or
      description = '' or description is null;

I am trying to return values that doesn't have null or blank value within them columns above.

My problem is: I have coded the query to only return values that are only null or blank values see if it actually works and then Ill use a delete statement based on that query.

But it still returns columns with filled data, even tho I have said not to show any values that are filled in the query.

Not sure why its doing this?

All my columns types are set up as VARCHAR I have mix data with text and numbers.

Here is my table layout:

Table: outerb
id int(11) AI PK 
pcode varchar(255) 
brand varchar(255) 
description varchar(255) 
size varchar(255) 
barcode varchar(255)

This is what it looks like currently

enter image description here

this is my expected result:

enter image description here

If you want rows where all of the tested columns are not empty or not null

select * 
from toadd 
where !(pcode = '' or pcode is null) AND
      !(brand = '' or brand is null) AND
      !(description = '' or description is null);

If you want to exclude rows where one or more of the columns are empty or null

select * 
from toadd 
where !(pcode = '' or pcode is null) OR
      !(brand = '' or brand is null) OR
      !(description = '' or description is null);

How To Repair Almost Everything, Timestamps 00:01 Slime cleaning trick 02:29 Coca-cola rust removal 02:55 Wall repair trick 03 Duration: 13:56 Posted: Apr 21, 2020 The scan will take a while and should fix any corrupted files it finds. Method 4: Reset Windows 10 If you want to get a clean start, free from rogue software and drivers, you usually don't need to

change outer or condition to and

     select * from toadd where (pcode = '' or pcode is null) and
     ( brand = '' or brand is null) and
      (description = '' or description is null)

28 HACKS TO FIX ANYTHING QUICKLY, What if the key does not go in the lock? Use a pencil. How to protect the electric extension cord Duration: 9:51 Posted: Nov 10, 2018 iFixit is a global community of people helping each other repair things. Let's fix the world, one device at a time. Troubleshoot with experts in the Answers forum—and build your own how-to guides to share with the world.

You can get the desired result using the following SQL query

SELECT * FROM `outerb ` 
WHERE Length(`pcode `) > 0 
AND Length(`brand `) >0 
AND Length(`description `) > 0

Repair Manuals for Every Thing, Thousands of repair manuals, tutorials, and how-to guides for DIY fixes. From electronics to cars, learn how to repair your own stuff and save yourself some� Easy Fix solutions have been discontinued. Instead, you can upgrade to Windows 10 and get troubleshooters that are built right in. To get Windows 10, see Windows 10 Home. Need more info on Windows 10? See Upgrade to Windows 10: FAQ. Windows 10. Windows 10 uses troubleshooters to help you solve problems with your PC. To run a troubleshooter:

iFixit: The Free Repair Manual, iFixit is a global community of people helping each other repair things. Let's fix the world, one device at a time. Troubleshoot with experts in the Answers� How to Fix the Most Annoying Things in Windows 10. Windows 10 is great, but it has its issues, from unpredictable reboots to Cortana. Here's how to fix some of the more irritating quirks with

40 Most Creative Examples Of How To Fix Broken Stuff, Dropped that ancient vase your great grandfather shipped from the Middle East in the 19th century? Happens. But it might not be trash just yet, as these creative � To repair the Windows 10 installation to resolve issues with Windows Update, use these steps: Open Start . Search for Command Prompt , right-click the top result, and select the Run as

How to Fix (Just About) Everything: More Than 550 Step-by-Step , How to Fix (Just About) Everything: More Than 550 Step-by-Step Instructions for Everything from Fixing a Faucet to Removing Mystery Stains to Curing a� Here are 6 steps to fix it yourself. Don't get frustrated and give up on a slow PC, take a few minutes to troubleshoot and remedy it. Jason Cipriani. May 7, 2020 3:00 a.m. PT.

  • Add a constraint that refuses zero-length strings.
  • Based on your recent photo addition of expected output, you actually don't want any result that will return either three of those as ('' or NULL), correct?
  • Yeah thats correct, let me rewrite my question alittle bit. Thanks for that
  • Hi, this query returns me 0 values. I have attached some images in question and updated the question slightly for better understanding
  • quick question what does the ! do?
  • it's a negation, same as NOT.
  • This returns me no 0 rows. I have updated my question and added in my table structure