4
Whereas I have 2 tables in the comic, "news" and "news", each with its own fields:
It is possible to make a SELECT
in both tables at the same time so that I return the 4 highest values of the "printed" fields (table NOTICIAS) and "clicks" (table NOVIDADES), the two combined?
The expected result would be this (ordering from highest to lowest):
- Wrong (15 views)
- Hello (9 views)
- Medium (6 views)
- Good (5 views)
Tables have no foreign key relation??
– user28595
@Diegofelipe I’m sorry, but I don’t understand your question.
– Sam
the news id is the same news id?
– Marllon Nasser
If there is any link between the tables, if one has a key field of the other.
– user28595
@Marllonnasser The tables have their own Ids and one has no relation to the other.
– Sam