SELECT MAX question

Поиск
Список
Период
Сортировка
От Jacob
Тема SELECT MAX question
Дата
Msg-id 3ac68e33_3@news.uncensored-news.com
обсуждение исходный текст
Ответы Re: SELECT MAX question  ("Eric G. Miller" <egm2@jps.net>)
Список pgsql-general
I have an sql tatement in my ASP page that has a WHERE date = (SELECT
MAX(other_date) FROM SomeTable WHERE Blah1 = Blah2) clause.  What's
happening is that the query is grabbing the latest date ONLY if something
something is in the "other_date" field.  If the "other_date" field is blank,
then the record is not chosen.  My question is, how do I grab the latest
date of "other_date" even if the it happens to be blank?



______________________________________________________________________
Posted Via Uncensored-News.Com - Still Only $9.95 - http://www.uncensored-news.com
   With Seven Servers In California And Texas - The Worlds Uncensored News Source


В списке pgsql-general по дате отправления:

Предыдущее
От: "IGB.NET"
Дата:
Сообщение: ...
Следующее
От: "Eric G. Miller"
Дата:
Сообщение: Re: SQL Script