Help! How Do I Use Inner Join?
I love using Coldfusion, but my coding knowlege is basic. I just don't understand inner join coding yet. Using the below code, I can get Column1 (barcode) and Column2 (quantity). How can I use inner join to get Columns with product_name and price from another table (inventory - based on same barcode number in both tables) so that I can insert ALL of the four fields into a new table (cart1)
<!--- FIND DUPLICATES AND SUM QUANTITY --->
<cfquery name="CountBarcodesTemp" datasource='inventory'>
SELECT barcode, sum(quantity) as quantitysum
FROM temp
GROUP BY barcode
</cfquery>
- Thanks.
