Re: car mileage summation / sledgehammer method

Поиск
Список
Период
Сортировка
От Ross J. Reedstrom
Тема Re: car mileage summation / sledgehammer method
Дата
Msg-id 20000817093842.A17023@rice.edu
обсуждение исходный текст
Ответ на Re: car mileage summation / sledgehammer method  (Maarten Boekhold <Maarten.Boekhold@reuters.com>)
Список pgsql-sql
On Thu, Aug 17, 2000 at 01:55:19PM +0200, Maarten Boekhold wrote:
> 
> Now that's a bit stupid. Why create this view when you can do the same
> thing with a table alias (I'm I calling this by the right name?).

Now now, let's not call it stupid: how about 'not optimal'?

> 
> select m.miles, m.date, sum(d.miles) from mileage m, mileage d
> where.......
> 

This is the traditional way to do a self join, yes.

Ross
-- 
Ross J. Reedstrom, Ph.D., <reedstrm@rice.edu> 
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St.,  Houston, TX 77005


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

Предыдущее
От: Andreas Tille
Дата:
Сообщение: Beginner problems with functions (Was: Is this the wrong list?)
Следующее
От: Joerg Hessdoerfer
Дата:
Сообщение: Continuous inserts...