質問編集履歴
1
期待するSQL文のサンプル
test
CHANGED
File without changes
|
test
CHANGED
@@ -29,3 +29,25 @@
|
|
29
29
|
どなかたお詳しい方、お力添えお願いします。![イメージ説明](508919a87c42b46f14c81d8cba7c165d.png)
|
30
30
|
|
31
31
|
![イメージ説明](d62f74d69c3ce5c21428260470016eeb.png)
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
SQLのイメージです。
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
Select pageviews, id from wp_popularpostssummary
|
40
|
+
|
41
|
+
where id IN (
|
42
|
+
|
43
|
+
SELECT DISTINCT *,id from wp_posts
|
44
|
+
|
45
|
+
WHERE post_date >= DATE_ADD(NOW(), INTERVAL -1 MONTH)
|
46
|
+
|
47
|
+
AND id IN (
|
48
|
+
|
49
|
+
Select DISTINCT postid from wp_popularpostssummary
|
50
|
+
|
51
|
+
)
|
52
|
+
|
53
|
+
);
|