PASTEBIN
| #1 paste tool since 2002
create new paste
tools
api
archive
faq
PASTEBIN
create new paste
trending pastes
sign up
login
my alerts
my settings
my profile
Don't like ads?
PRO users
don't see any ads ;-)
Public Pastes
Untitled
6 sec ago
Untitled
6 sec ago
Untitled
VB.NET | 13 sec ago
ALeXaNDeR
C++ (with QT extensions) | 10 sec ago
Untitled
19 sec ago
Untitled
Lua | 24 sec ago
Untitled
29 sec ago
historiasaker
38 sec ago
Untitled
By: a guest on
May 4th, 2012
| syntax:
None
| size: 0.25 KB | hits: 11 | expires: Never
download
|
raw
|
embed
|
report abuse
|
print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
SELECT node.type, count(node.nid) as count, node.nid, node.title
FROM node node, content_field_tourist_attraction ta
WHERE ta.field_tourist_attraction_nid = node.nid AND node.type IN ('tourist_attraction')
GROUP BY node.nid ORDER BY count DESC;
create a
new version
of this paste
RAW Paste Data
SELECT node.type, count(node.nid) as count, node.nid, node.title FROM node node, content_field_tourist_attraction ta WHERE ta.field_tourist_attraction_nid = node.nid AND node.type IN ('tourist_attraction') GROUP BY node.nid ORDER BY count DESC;