Hi,
Does this sql and this expression make sense?
What makes sense to one person does not necessarily makes sense to the other
If you can describe your goal then we probably can discuss the format of the filtering
You are using two tags which are related to different services that based on different products behind the scenes (SQL Server vs Parallel Data Warehouse) which are using a (bit) different language!
A query which fit Azure SQL Database does not necessarily will fit Azure Synapse Analytics
You should inform us which service/product you use and select only the relevant tag.
A <> '' AND B LIKE '5%'
This makes sense if this your goal! This filter return what is not empty string (remember that empty string "" is not the same as null) and if the B value string starts with 5
(note that you are using string filtering and not math on numbers here)
A != ' ' && like(B,'5%')
Again, it makes sense if this is your goal, but is this supported what you ned?!?
The operator &&
is Logical AND and it can fit when you use languages that support it lime C# for example or using SSIS and such, but it is not an SQL operator.
AND
is Standard SQL operator, &&
is proprietary syntax