Casey Wise projects and web archive/sandbox

13Feb/100

dotCMS SQL Query: Dual filtered course guides

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
SELECT DISTINCT
	c.title,
	c.inode,
	c.text_area1 as 'overview'
FROM
	category a
	INNER JOIN tree b
		ON a.inode = b.parent
	INNER JOIN contentlet c
		ON b.child  = c.inode
		AND c.live=1
	INNER JOIN tree d
		ON c.inode = d.child
	INNER JOIN category e
		ON d.parent = e.inode
	INNER JOIN tree f
		ON d.parent = f.child
WHERE
	a.inode = $inode
	AND f.parent = 155153
	AND d.parent = $filterInode
ORDER BY
	c.title
Filed under: code, dotCMS Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.