Skip to content

LIKE statement SQL

Dont work brackets in LIKE statement I use MySQL WorkBench, I dont understand why SELECT * from user where name like’B[io]’ dont work. My DataBase: Answer Because MySQL does not support character classes in like expressions. Neither does the SQL standard. Use regular expressions: Incidentally, the…

error on MySQL when i add month to the query [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed last year. Improve this question I have a dataset including a endDate and a startDate: endDate startDate…

Hibernate Table or view does not exist Oracle

I Have a problem executing an hibernate query on Oracle: my persistence.xml: my entity class com.entity.User: my java class: but when i execute my code, i obtain: Can you help me to find the error? NOTE: if a use a PreparedStatement with the same connections and query i don’t have any issue, so it is no…

SQL returning 1 single column value on a multiple row

This is my query so far. But what I need is to return one single value of a column like this. But in my query so far, this is the returning output. This my query. How can I get rid of the double values? Answer You can use analytical function as follows: Let’s say the column you highlighted is sol.actual…