python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
MariaDB: Using PK for inner query result
I have three tables (MariaDB 10.6.5): person, private_person and corporate_person. In the person are Ids stored, in the other tables are names stored, both connected to the person per FK:
CREATE TABLE...
Dave_B.
Votes: 0
Answers: 2
SqLite query with multiple aggregation functions are slow - need help to optimize the query
I need help optimizing this query for sqlite (query run from php):
select max(aid) as aid, max(mid) as mid ,max(tid) as tid,
max(m.id) as m_mid, max(t.id) as m_tid, max(a.id) as m_aid
from dv...

DDS
Votes: 0
Answers: 1
How can I use an operator In the where clause to compare the results returned from a subquery?
I would like to use a greater than operator to find the students in the outer query that have a greater salary than the students in the subquery.
I tried using a > the operator in the where clause,...
zahid habib
Votes: 0
Answers: 1
Getting different results from Subquery and JOIN which seem to be the same
I'm doing a challenge problem on DataCamp. It uses two tables, "economies" which contains economic information by country code, and "countries" which contains general country infor...
Christopher V Elwood
Votes: 0
Answers: 1