Xref: utzoo comp.databases:6857 rec.puzzles:6426 Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!unido!tub!fauern!tumuc!guug!greil From: greil@guug.guug.de (Anton Greil) Newsgroups: comp.databases,rec.puzzles Subject: SQL puzzle Keywords: SQL, recreation Message-ID: <125@guug.guug.de> Date: 2 Aug 90 11:55:33 GMT Sender: greil@guug.guug.de (Anton Greil) Organization: GUUG e.V., Munich, W.-Germany Lines: 22 Can you solve the following puzzle by SQL? "Here is an arithmetical problem which is belonging to the great classics. Two natural numbers were selected which are greater than 1 and less than 100. The sum of these two numbers was told Mr. S, the product of the numbers was told Mr. P. Each of the two men doesn't know the number of the other. Mr. P rings up Mr. S: P: I can't find the two numbers. S: I knew, that you would not succeed. P: Oh ... But now, I know them! S: In this case, I know them too." (from: Jaques ARSAC: Jeux et casse-tete a programmer, Paris 1985 Computer Denkspiele, selbst programmiert, Muenchen 1987) There is just one solution for this problem!