Skip to content

Updating webclient response from database

I have situation where I can’t update column at database. The problem is that only method setIsPurchased is executed and the flag is_purchase at SQL table changed to true, but the next line with setPurchasedDate which has to set current time is not executed. The response from database is Mono<Void&gt…

Spring Data JPA Native Query N + 1 problem

I’ve run into some code which behaviour is not clear for me. We have first entity: @Data @Entity @Table(name = “Info”) public class Info { @OneToOne @JoinColumn(name = “data_id”) …

MYSQL JOINS, Got Stuck [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 months ago. Improve this question good day! i’m in the middle of learning new thing in mysql, i need join 2 tables, tab…

Respecting GROUP BY Clause in a MySQL SUB-QUERY

I have a query which returns some figures from a table of sales data. The table contains data for a number of different sales managers. I need to return data for the individual managers and also some calculated figures. One of the figures I’m trying to get at involves a subquery. Getting the figures for…

MYSQL Update same column with multiple where clause

I found this question, seems like same as mine. However, there’s a little difference between the two as that one is using the same column in where clause and I have a different one. This is what I’m trying to achieve; is it possible to do that in one query? EDIT: The data type of recent is Boolean…