SELECT '<a href="game.php?game=' || g.id || '#ad">' || g.gamename || '</a>' AS ゲーム名 , '<a href="user_game.php?user=' || 'urlencode("' || u.uid || '")&game=' || g.id || '#title">' || u.uid || '</a>' AS ユーザーID , u.tokuten AS 得点 , u.play_tourokubi::date AS 登録日 FROM userreview u , gamelist g WHERE g.id = u.game AND u.play_tourokubi > now() - '1weeks'::INTERVAL AND u.tokuten IS NOT NULL ORDER BY play_tourokubi DESC ;
SELECT '<a href="game.php?game=' || g.id || '#ad">' || g.gamename || '</a>' AS ゲーム名 , '<a href="user_game.php?user=' || 'urlencode("' || u.uid || '")&game=' || g.id || '#title">' || u.uid || '</a>' AS ユーザーID , u.tokuten AS 得点 , u.play_tourokubi::date AS 登録日 FROM userreview u , gamelist g WHERE g.id = u.game AND u.play_tourokubi > now() - '1weeks'::INTERVAL AND u.tokuten IS NOT NULL ORDER BY play_tourokubi DESC;