![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Correction to the sql statement.... Select Customer_Name, Customer_Telephone, Order_Amount from Orders where Order_Amount > 100 |
#3
| |||
| |||
|
|
On Feb 7, 5:55*pm, SpreadTooThin <bjobrie... (AT) gmail (DOT) com> wrote: Correction to the sql statement.... Select Customer_Name, Customer_Telephone, Order_Amount from Orders where Order_Amount > 100 Is it really this simple? SELECT table1.column1, table2.column2 FROM table1, table2 WHERE table1.column1 = table2.column1; Really? *I would have thought there needed to be nested select statements... Is this an oversimplification? Here the WHERE statement is a comparison between the two tables? What happens when the WHERE statement is only on one or the other? |
#4
| |||
| |||
|
|
On Feb 7, 6:02 pm, SpreadTooThin<bjobrie... (AT) gmail (DOT) com> wrote: On Feb 7, 5:55 pm, SpreadTooThin<bjobrie... (AT) gmail (DOT) com> wrote: Correction to the sql statement.... Select Customer_Name, Customer_Telephone, Order_Amount from Orders where Order_Amount> 100 Is it really this simple? SELECT table1.column1, table2.column2 FROM table1, table2 WHERE table1.column1 = table2.column1; Really? I would have thought there needed to be nested select statements... Is this an oversimplification? Here the WHERE statement is a comparison between the two tables? What happens when the WHERE statement is only on one or the other? Pardon me if I talk to myself while I wait for answers... select Customer.Customer_Name, Customer.Customer_Telephone, Orders.Order_Amount from Customer, Orders where Orders.Order_amount 100 What doesn't seem right here is that shouldn't there be two selects here? an inner and an outter? This being the inner select Select Customer_Name, Customer_Telephone, Customer_ID from Customer and this being the outer select Select Customer_ID, Order_Amount from Orders where Order_Amount> 100 |
![]() |
| Thread Tools | |
| Display Modes | |
| |