Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

using 2 different sql tables
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: using 2 different sql tables
#55278
using 2 different sql tables 9 Years, 4 Months ago Karma: 0
HOw do i place this in a table

SELECT
created_on,
order_item_sku,
order_item_name,
product_quantity,
product_item_price
FROM
jos_virtuemart_order_items

SELECT
product_s_desc
FROM
jos_virtuemart_products_es_es
The administrator has disabled public write access.
 
#55279
Re:using 2 different sql tables 9 Years, 4 Months ago Karma: 760
Hello,

Use JOIN construction:

Code:


SELECT
  OI.created_on,
  OI.order_item_sku,
  OI.order_item_name,
  OI.product_quantity,
  OI.product_item_price,
  P.product_s_desc
FROM
  jos_virtuemart_order_items OI LEFT JOIN jos_virtuemart_products_es_es P
    ON OI.virtuemart_product_id = P.virtuemart_product_id



Regards,
ARI Soft
The administrator has disabled public write access.
 
#55299
Re:using 2 different sql tables 9 Years, 4 Months ago Karma: 0
Thanks, just perfect.
The administrator has disabled public write access.
 
Go to topPage: 1