J
|
Jane 7/30/2008 |
Hi, create view `all_purchases` as SELECT Fruit_name AS Name, Fruit_price AS Price, Fruit_purchase_date AS Date FROM Fruit_purchases, Vegetable_purchases UNION SELECT Vegetable_name, Vegetable_price, Vegetable_purchase_date FROM Fruit_purchases, Vegetable_purchases; |
S
|
steveh 7/30/2008 |
Another option which has worked (and may be useful if you're querying customer databasses and they don't want you ctreating views) is to turn it into a subselect:- |
O
|
ossi69 3/30/2009 |
Hi, PHPRunner do not support UNION in the SQL query on the Edit SQL query tab. As workaround create view in the database directly and then use this view in the PHPRunner. Here is a sample:
|
![]() |
Sergey Kornilov admin 3/30/2009 |
No, you need to create this view in MySQL (need MySQL 5.0 or higher for this purpose). |
O
|
ossi69 3/30/2009 |
No, you need to create this view in MySQL (need MySQL 5.0 or higher for this purpose). Once this view is created in MySQL you will be able to pick it from the list of available views on Datasource tables screen.
|