[GENERAL] Problem with a GROUP BY clause

1999-07-31 Thread Mark Dalphin
Hi, I am running Postgresql ver 6.5.1 on an SGI (Irix). I am trying to write a query to return some top scoring items, using a GROUP BY clause, however, I am having trouble with "empty" results. For example: htg=> SELECT LocusID, Score FROM Match htg-> WHERE SeqID=4358; locusid|score ---+-

Re: [GENERAL] Search

1999-07-31 Thread Gilles Darold
Hi, For case insensitive you must use the regexp search as follow : SELECT title, firstname, lastname, description FROM stuff WHERE title *~ '.*.*' AND firtsname *~ '.*.*'; > > P.S.: as far as I know there is no locale for windows-1251 and, > unfortunately, I can't store data in koi8-r w

[GENERAL] Search

1999-07-31 Thread Dmitry Popov
Greetings, I store text data in windows-1251 encoding in my pgSQL database and when I execute SQL command like SELECT title, firstname, lastname, description FROM stuff WHERE title LIKE '%%' AND firtsname LIKE '%%' AND lastname LIKE '%%' AND description LIKE '%%' the response comes reall