Re: Output from select is not what expected

2001-04-18 Thread Ben Dimmock
CTED]> Sent: Wednesday, April 18, 2001 2:37 PM Subject: Output from select is not what expected > I have three tables in a database called menus and I have added 2 records > to each table so 2*3=6 records. Why is it when I do a "select * from > table1, table2, table3" I get 8

RE: Output from select is not what expected

2001-04-18 Thread Ravi Raman
hi. a join across 3 tables with 2 records each will return 8 rows...2*2*2 = 8. hth. -ravi. -Original Message- From: Fates [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 18, 2001 9:38 AM To: [EMAIL PROTECTED] Subject: Output from select is not what expected  I have three tables in

Re: Output from select is not what expected

2001-04-18 Thread Gerald Clark
Because 2*2*2=8. You need to put joining information in the where clause. I suggest you get a book on SQL. You might try "MuSQL" by Paul DuBois ( New Riders). Fates wrote: > > I have three tables in a database called menus and I have added 2 records > to each table so 2*3=6 records. Why is

Output from select is not what expected

2001-04-18 Thread Fates
 I have three tables in a database called menus and I have added 2 records to each table so 2*3=6 records. Why is it when I do a "select * from table1, table2, table3" I get 8 records back when there are only 2 records in each table? What am I doing wrong? Some of the fields are references if th