Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
express a specific example for cartesian product, union, and set difference as everyday English and as relational algebra using the table you created in the previous example.
Is it possible to have union or cartesian product with only one relation(table)? sorry for the table i cant make it fit, but the attributes are licenceNo, yrinsured,yeinsuredExpired,model,color,auto/man,owner

Please may someone help, I am still waiting for an answer. Can this be done to this table and how?
01  licenceNo    yr_insured    yr_insuredExpired    model    color    auto/man    owner
02  111-aaa                1999          2009             beatle    pink     auto     Johnson
03  222-bbb                1999          2009            mustang    white    auto     Trot
04  333-ccc                2000          2010            tacoma    blue      auto     White
05  444-ddd                2007          2017             f-350    blue      auto     Black
06  555-eee                2005          2015            d-2500    black     auto     Smith
07  666-fff                2007          2017           corolla    white     man      Lee
08  777-ggg                2010          2020            matrix    white     auto     Kim
09  888-hhh                2008          2018             civic    green     man      Singh
10  999-iii                2008          2018           escalde    black     auto     Williams
11  000-jjj                2009          2019              civic    red      auto     Vanderhoot
Posted
Updated 4-Oct-10 8:50am
v4

1 solution

Well, yes and no. :)

For example in an employee table that includes a manager attribute, one solution to discovering the hierarchy is to use a self join which can result in a cartesian product.

So yes, because there would only be one table. No because it is being treated as two tables for the purposes of the join.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900