Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Unable to import data using Not Like from SQL below is the sample code

Hi I'm importing data from a table using hte below sql code. The problem is i get the full table including the data from description that i do not want. When i use like instead of not like the code seems to work.

 

select * from public.report_investment_items_view where

"Description" not like '%Accrued%' OR
"Description" not like 'receivable%' OR
"Description" not like 'ATO%' OR
"Description" not like 'Borrowing%' OR
"Description" not like 'Cash%' OR
 

4 REPLIES 4
TeigeGao
Solution Sage
Solution Sage

HI @Anonymous ,

Could you please tell us what's error message did you meet when you import the data? Based on my test, all works normal.

Best Regards,

Teige

Anonymous
Not applicable

Hi @Anonymous 

Why the double quotes around description? Also you have an extra OR at the end?!
Works fine for me with MySQL DB.

 

Thanks

Anonymous
Not applicable

Hi..its postgres server that i need to connect to..so the syntax needs double quotes for column name..the extra or is not in the actual code..i just pasted a sample

Anonymous
Not applicable

Sorry, I cannot test PostgreSQL.

Maybe others can test and say if there is a bug?!

Cheers!
A

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors