Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.databases.postgresql > #531

How to select val from range of integers

From jacki <collector@idealan.pl>
Newsgroups comp.databases.postgresql
Subject How to select val from range of integers
Date 2014-01-15 09:42 +0100
Organization CI TASK http://www.task.gda.pl/
Message-ID <lb5hmb$oug$1@news.task.gda.pl> (permalink)

Show all headers | View raw


Hi,

How can i select val from range of integers, something like:

SELECT VAL FROM (VALUES(1), (2), (3), ..., (10000));

I want to write a query which will return me values that are not exists 
in given table row.

For examle:

id, name
--------
1, a
2, b
4, c
6, d
7, e
8, f

I need to get: id=3 and id=5

Cheers!

Back to comp.databases.postgresql | Previous | NextNext in thread | Find similar


Thread

How to select val from range of integers jacki <collector@idealan.pl> - 2014-01-15 09:42 +0100
  Re: How to select val from range of integers Dimitri Fontaine <dimitri@2ndQuadrant.fr> - 2014-01-15 10:05 +0100
    Re: How to select val from range of integers jacki <collector@idealan.pl> - 2014-01-15 10:10 +0100

csiph-web