Skip to content
Advertisement

Tag: mysql

SQL complicated SELECT query

I would like to have a select query, where I get all the games that a specific user played with the points of his and the opponents team. Entity relatioship model of my database This is my current query: The current query gives me this result: userId gameId won points 1 1 true 19 Problem: From this query I only

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, table aktifitas_materi and table hari, i tried many

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 each individual manager is fine

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, and there

Advertisement