| Función |
Instrucción SQL |
| Archivos sin palabras clave |
not exists (select idKeyword from ThumbnailKeyword
where ThumbnailKeyword.idThumb = tn.idThumb)
o
tn.idthumb not in (select distinct idThumb from ThumbnailKeyword)
o
not exists (select idthumb from thumbnailkeyword tk inner
join keyword kw on tk.idkeyword = kw.idkeyword where kw.keyword
= 'KEYWORD' and tk.idthumb = tn.idthumb) |
| Archivos con al menos una palabra clave |
exists (select idKeyword from ThumbnailKeyword
where ThumbnailKeyword.idThumb = tn.idThumb) |
| Búsqueda entre dos fechas |
tn.file_time < ^udate(2000/06/05)
and tn.file_time > ^udate(1999/01/02)
OR
tn.file_time >= ^udate(2001-03-01) and tn.file_time
<= ^udate(2002-04-15)
El operador SQL "between" también funciona:
tn.file_time between ^udate(2001-07-01) and ^udate(2001-07-31)
|
| Todos los archivos cuya miniatura fue creada a partir de una fecha |
tn.thumbnail_time >= ^udate(2002/10/1) |
| Todos los archivos modificados o guardados a partir de una fecha |
tn.file_time >= ^udate(2002/10/1) |
Buscar en un rango de fechas
Por ejemplo, para encontrar todos los archivos cuya miniatura fue creada en octubre de 2002. |
tn.thumbnail_time >=
^udate(2002/10/1)
tn.thumbnail_time <= ^udate(2002/10/31) |
| Miniaturas cuya anotación contenga un texto |
tn.annotation like '%su texto aquí%' |
| Miniaturas con sólo una palabra clave específica |
Seleccione la palabra clave a buscar en la ficha Keyword del cuadro de diálogo de búsqueda de ThumbsPlus, seleccione AND como el método de combinación de lás fichas de subdiálogo y en la ficha Advanced escriba la siguiente instrucción SQL:
(select count(*) from thumbnailkeyword kw where kw.idThumb
= tn.idThumb) =1 |
| Imágenes duplicadas idénticas dentro de la base de datos de T+ |
tn.idthumb in (select distinct
a.idthumb from thumbnail as a, thumbnail as b where a.idthumb
<> b.idthumb and a.checksum = b.checksum) |
| Campo de anotaciones vacío |
tn.annotation not like '%' |
| Campo de anotaciones con datos |
tn.annotation like '%' |
| Limitar una búsqueda a una galería específica |
tn.idThumb in (select ThumbnailGallery.idThumb from ThumbnailGallery inner join Gallery on ThumbnailGallery.idGallery=Gallery.idGallery where Gallery.name = 'Fotos')
|
| Todas las miniaturas que no pertenezcan a ninguna galería |
tn.idThumb not in (select
gt.idThumb from GalleryThumb gt) |
| Todos los archivos que pertenezcan a más de una galería |
(select count(*) from GalleryThumb
gt where gt.idThumb = tn.idThumb) > 1 |
| Archivos cuya ruta contenga un texto |
exists (select*from path where path.name
like '%su texto aquí%' and path.idPath = tn.idPath) |
| Miniaturas que estén asociadas a la palabra clave "Mamá" y no a la palabra clave "Papá" |
tn.idthumb in (select distinct idthumb
from thumbnailkeyword tk where
tk.idkeyword = (select idkeyword from keyword where keyword
= 'Mamá')) and
tn.idthumb not in (select distinct idthumb from thumbnailkeyword
tk where
tk.idkeyword = (select idkeyword from keyword where keyword
= 'Papá'))
Más Información |
| Probables Duplicados (nombre y tamaño de archivo coinciden) |
tn.idthumb in
(select distinct a.idthumb
from thumbnail as a, thumbnail
as b
where a.idthumb <>
b.idthumb
and a.name =
b.name
and a.filesize
= b.filesize) |
| Nombres de archivo que incluyen caracteres no usuales |
tn.name like '%[%]%.JPG'
or tn.name like '%[~]%.JPG'
or tn.name like '%[;]%.JPG'
or tn.name like '%[^]%.JPG'
or tn.name like '%[[]%.JPG'
or tn.name like '%[]]%.JPG' |
| Todas las imágenes que no pertenezcan a una galería particular, excluidas aquellas en volúmenes offline |
tn.idPath not in
(select p.idPath from Path p, Volume v
where tn.idPath=p.idPath
and v.idVol = p.idVol
and v.filesystem = 'CDFS')
and tn.idThumb not in
(select gt.idThumb from GalleryThumb gt, Gallery g
where g.idGallery = gt.idGallery
and g.Name = 'el nombre de la galería aquí') |
| Todas las imágenes en color (paleta de colores, RGB,
o CMYK) |
tn.[colortype] <> 1
Entonces, para ordenar los archivos con las imágenes en escala de grises primero, el usuario
podría crear un nuevo campo de usuario, digamos "gris",
y darle el valor "Sí" o "S" para todas las imágenes en escala
de grises encontradas. (Edit | Select All, y luego Thumbnail
| Assign User Field).
Finalmente, podría mostrar el campo de usuario y ordenar en base al mismo. |