Method: DTAS::Mlib#count_distinct
- Defined in:
- lib/dtas/mlib.rb
#count_distinct(tag) ⇒ Object
388 389 390 391 |
# File 'lib/dtas/mlib.rb', line 388 def count_distinct(tag) s = 'SELECT COUNT(DISTINCT(val_id)) FROM comments WHERE tag_id = ?' @db.fetch(s, @tag_map[tag]).single_value end |