views:

60

answers:

3

(Or possibly another language?)

I know both SQL and Object Pascal first appeared in 1986, but I'm not sure which one had the in keyword first, so anyone who can point me to a definitive source will get my thanks and some reputation.

Yes I searched for the answer, but I think my Google-fu is weak. :(

+1  A: 

Pascal itself had in much earlier than 1986 (Pascal was first published in 1970). It was used for set membership testing. My Pascal is rusty, but it went something like this:

type mysettype = set of 1..10;
var myset: mysettype;

if 5 in myset then begin
    writeln("found it!");
end;

Further information can be found on the Wikipedia Pascal page.

Also, here is a citation from Wirth's PASCAL User Manual and Report that mentions in as one of the relational operators.

Greg Hewgill
A: 

I think Turbo Pascal already had the in operator in the early 80s

vc 74
A: 

Oracle V2 was released in 1979 as a commercial relational database by Relational Software, Inc (using SQL before its standardisation by ANSI in 1986); followed by IBM's System R. The SQL-86 standard certainly included the IN operator, but can't confirm whether or not it appeared between 1979 and 1986.

Mark Baker