Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Object > Re: Storing dat...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 13 of 34 Topic 276 of 365
Post > Topic >>

Re: Storing data and code in a Db with LISP-like interface

by Bob Badour <bbadour@[EMAIL PROTECTED] > Apr 21, 2006 at 02:49 PM

Pascal Bourguignon wrote:

> Bob Badour <bbadour@[EMAIL PROTECTED]
> writes:
> 
>>Can it handle n-ary relations? Like "John bought 10 apples each at
>>10cents" ?
> 
> 
> Of course:
> 
> bought(john,10,apple,10,cent).
> 
> How many apple did john buy?
> 
> ?- bought(john,HowMany,apple,_price,_money).

Thank you, that's much more revealing than 100 binary relations.

Does prolog summarize the results? Or does it list each individual
purchase?

Consider:

bought(john,10,apple,10,cent).
bought(john,3,apple,15,cent).

?- bought(john,HowMany,apple,_price,_money).
 




 34 Posts in Topic:
Re: Storing data and code in a Db with LISP-like interface
"Nick Malik [Microso  2006-04-12 00:57:05 
Re: Storing data and code in a Db with LISP-like interface
"Nick Malik [Microso  2006-04-13 16:48:22 
Re: Storing data and code in a Db with LISP-like interface
Bob Badour <bbadour@[E  2006-04-14 00:56:12 
Re: Storing data and code in a Db with LISP-like interface
Bob Badour <bbadour@[E  2006-04-16 16:25:50 
Re: Storing data and code in a Db with LISP-like interface
"Nick Malik [Microso  2006-04-17 07:39:07 
Re: Storing data and code in a Db with LISP-like interface
Bob Badour <bbadour@[E  2006-04-17 20:07:26 
Re: Storing data and code in a Db with LISP-like interface
"Nick Malik [Microso  2006-04-18 23:13:34 
Re: Storing data and code in a Db with LISP-like interface
"Nick Malik [Microso  2006-04-22 10:11:59 
Re: Storing data and code in a Db with LISP-like interface
Pascal Bourguignon <pj  2006-04-23 01:55:15 
Re: Storing data and code in a Db with LISP-like interface
"Nick Malik [Microso  2006-04-28 09:23:34 
Re: Storing data and code in a Db with LISP-like interface
Bob Badour <bbadour@[E  2006-04-21 13:05:58 
Re: Storing data and code in a Db with LISP-like interface
Pascal Bourguignon <pj  2006-04-21 16:33:02 
Re: Storing data and code in a Db with LISP-like interface
Bob Badour <bbadour@[E  2006-04-21 14:49:06 
Re: Storing data and code in a Db with LISP-like interface
Pascal Bourguignon <pj  2006-04-21 17:13:44 
Re: Storing data and code in a Db with LISP-like interface
Bob Badour <bbadour@[E  2006-04-21 17:13:50 
Re: Storing data and code in a Db with LISP-like interface
Bob Badour <bbadour@[E  2006-04-21 18:33:19 
Re: Storing data and code in a Db with LISP-like interface
Bob Badour <bbadour@[E  2006-04-21 20:44:02 
Re: Storing data and code in a Db with LISP-like interface
"David Cressey"  2006-04-22 15:04:03 
Re: Storing data and code in a Db with LISP-like interface
Bill Atkins <NOatkinwS  2006-04-22 12:57:37 
Re: Storing data and code in a Db with LISP-like interface
Bob Badour <bbadour@[E  2006-04-22 17:29:38 
Re: Storing data and code in a Db with LISP-like interface
A..L. <alewando@[EMAIL  2006-04-22 14:11:05 
Re: Storing data and code in a Db with LISP-like interface
Frank Hamersley <terab  2006-04-23 08:30:45 
Re: Storing data and code in a Db with LISP-like interface
"Dmitry A. Kazakov&q  2006-04-21 22:27:47 
Re: Storing data and code in a Db with LISP-like interface
"Dmitry A. Kazakov&q  2006-04-22 11:12:09 
Re: Storing data and code in a Db with LISP-like interface
Sasa <sasa555@[EMAIL P  2006-04-21 22:38:36 
Re: Storing data and code in a Db with LISP-like interface
Bob Badour <bbadour@[E  2006-04-21 21:03:30 
Re: Storing data and code in a Db with LISP-like interface
Sasa <sasa555@[EMAIL P  2006-04-22 07:40:29 
Re: Storing data and code in a Db with LISP-like interface
"Nick Malik [Microso  2006-04-22 10:47:30 
Re: Storing data and code in a Db with LISP-like interface
Bob Badour <bbadour@[E  2006-04-22 18:46:57 
Re: Storing data and code in a Db with LISP-like interface
Sasa <sasa555@[EMAIL P  2006-04-22 21:58:37 
Re: Storing data and code in a Db with LISP-like interface
Bob Badour <bbadour@[E  2006-04-22 20:10:22 
Re: Storing data and code in a Db with LISP-like interface
"Nick Malik [Microso  2006-04-22 10:20:37 
Re: Storing data and code in a Db with LISP-like interface
"Nick Malik [Microso  2006-04-22 12:29:41 
Re: Storing data and code in a Db with LISP-like interface
"Nameless" <  2006-04-23 17:28:24 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 13:32:30 CDT 2008.