Division

Поиск
Список
Период
Сортировка
От Bernie Huang
Тема Division
Дата
Msg-id 39C69B97.58B353A9@ec.gc.ca
обсуждение исходный текст
Ответы ERROR: replace_vars_with_subplan_refs (!?)  (Louis-David Mitterrand <cunctator@apartia.ch>)
Список pgsql-sql
Hi,

I tried the write up the following SQL statement:

result1 from sql1 = (1,2,3,4,5)
result2 from sql2 = (4,5)
result3 = result1/result2 (or is it result2/result1) = (1,2,3)

What do I have to do to get the (1,2,3) result?  I tried "query EXCEPT
query", but it seems like EXCEPT needs both tables in queries to be of
the same number of columns and column types.  And (any, all, exist)
doesn't seem to be a right solution.

Thanks for help.


- Bernie

Вложения

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

Предыдущее
От: Jie Liang
Дата:
Сообщение: info about tables
Следующее
От: Jie Liang
Дата:
Сообщение: Re: Division