Update SQL query to select specific host episodes
This commit is contained in:
parent
47c51ec9a2
commit
30f0c9924a
@ -8,15 +8,18 @@
|
||||
%-->
|
||||
<!--% query_shows = DBI.prepare('
|
||||
SELECT
|
||||
substr(\'0000\' || eps.id, -4, 4) AS [id],
|
||||
eps.id,
|
||||
CASE eps.explicit WHEN 1 THEN \'Explicit\' ELSE \'Clean\' END AS explicit ,
|
||||
eps.date, eps.license, eps.duration,
|
||||
eps.title, eps.summary, eps.tags,
|
||||
eps.series, eps.notes,
|
||||
eps.notes,
|
||||
hosts.local_image,
|
||||
substr(\'0000\' || hosts.hostid, -4, 4) AS [host_id],
|
||||
hosts.host, hosts.email
|
||||
FROM eps INNER JOIN hosts ON eps.hostid = hosts.hostid
|
||||
hosts.hostid,
|
||||
hosts.host, hosts.email,
|
||||
miniseries.name AS series
|
||||
FROM eps
|
||||
INNER JOIN hosts ON eps.hostid = hosts.hostid
|
||||
INNER JOIN miniseries ON eps.series = miniseries.id
|
||||
WHERE hosts.hostid = ?
|
||||
ORDER BY date DESC ')
|
||||
%-->
|
||||
|
Reference in New Issue
Block a user