Skip to main content

Questions tagged [join]

An SQL join clause combines records from two or more tables or views.

0 votes
1 answer
118 views

Consider the following script on the 10 GB StackOverflow2010 database. Be warned that it clears the plan cache. IF NOT EXISTS (SELECT * FROM sys.types WHERE is_table_type = 1 AND name = 'ExampleTvp') ...
J. Mini's user avatar
  • 1,322
0 votes
1 answer
54 views

I am running Fedora 42 KDE spin, and the output from mysql -V is mysql Ver 15.1 Distrib 10.11.11-MariaDB, for Linux (x86_64) using EditLine wrapper I have a script that runs weekly that creates a ...
Jeff's user avatar
  • 161
3 votes
1 answer
188 views

I have these two queries in Postgres. One is: SELECT _id, created_at FROM pedidos WHERE _id = '123abc; Works fine, returns: { "_id": "123abc", "created_at": &...
flourigh's user avatar
  • 145
0 votes
1 answer
56 views

Running the same query on two tables that only differ in row count (~7.8M vs ~1.4M) results in two different plans, which sounds reasonable. But the execution on the smaller table is 4 to 5 times ...
Jukurrpa's user avatar
  • 195
0 votes
1 answer
163 views

A training course in the Neo4j Academy mentions that: When querying across tables, the joins are computed at read-time, using an index to find the corresponding rows in the target table. The more ...
Kt Student's user avatar
1 vote
2 answers
106 views

I have one table with player ids and names. For each round the table will be scrambled, split in half, and put side by side. Handling of unequal amount of rows in each group is not the scope of this ...
Martin Dittrich's user avatar
0 votes
1 answer
118 views

I have a question regarding LEFT JOIN and RIGHT JOIN in SQL. As I understood, both joins are the same depending upon the position of the tables. Why are LEFT JOINs more popular than RIGHT JOINs in SQL?...
Talha Tayyab's user avatar
1 vote
0 answers
44 views

I'm trying to get products and their aggregated group information. I have three tables on Postgresql database: product, product_group, and product_group_product. This is how the end result should look ...
user321862's user avatar

15 30 50 per page
1
2 3 4 5
135