Re: Nulls, integrity, the closed world assumption and events
Date: 25 Jan 2007 19:46:17 -0800
Message-ID: <1169783177.251685.268470_at_v45g2000cwv.googlegroups.com>
> Neo, I'm still waiting for you to provide the the dbd query > to find all cheeses occurring with Pepperoni in at least one > pizza.
Here ya go. Three pizzas hot off the oven!
(new 'chicago 'crust)
(new 'thin_crust 'crust)
(new 'mozzarella 'cheese)
(new 'provolone 'cheese)
(new 'peppers 'topping)
(new 'mushrooms 'topping)
(new 'peperoni 'topping)
(new 'pizza_1 'pizza)
(set (it) crust chicago)
(set (it) cheese mozzarella)
(set (it) cheese provolone)
(set (it) topping peppers)
(set (it) topping mushrooms)
(set (it) topping peperoni)
(new 'pizza_2 'pizza)
(set (it) crust thin_crust)
(set (it) cheese mozzarella)
(set (it) cheese provolone)
(set (it) topping mushrooms)
(new 'pizza_3 'pizza)
(set (it) crust thin_crust)
(set (it) cheese mozzarella)
(set (it) topping peperoni)
(; Get pizzas with all cheeses
and pepperoni topping)
(; Gets pizza_1)
(& (get pizza instance *)
(getAll * cheese (get cheese instance *)) (get * topping peperoni))
> Are you off upgrading dbd to support this or what?
Not this time :) Someone already requested this type of query. Search ng for selectAll for prior example or see link below.
"Pilots Who Fly All Jets"
www.dbfordummies.com/example/ex220.asp
Received on Fri Jan 26 2007 - 04:46:17 CET