Skip to content

REPLACE empty string

I discover some behavior I didn’t know before. Why this line of code does not work? I can’t even have ” in where condition. It just doesn’t work. I have this from imported Excel where in some cells are no values but I’m not able to remove them unless I used LEN(”) = 0 funct…

How to subtract years from sysdate

What would be the expression to check if someone’s 20 years or over without hard-coding the date? In the SQL SELECT student_fname FROM students WHERE dob<'05-MAR-1995'; I was thinking about …

Query to check if a certain row has 2 words

How to return rows where a column has 2 words (that is, strings separated by a space) in it? It must be purely using SQL. Answer I dont know the names when querying. Its a big dataset. I only have to check if the name contains a spacebar basically (from a comment). If you want to distinguish names that have