Jump to content

Need help with syntax for sum in mysql query


jacob

Recommended Posts

Hello everyone, I currently working on a project to show price estimation which requires me to sum a value from two tables in mysql. Ok, below are the tables and values that I have. in example, From these table, I need to get sum price value for car in table1 with price value of india in table2. What would be the mysql syntax? thank you in advance for your help.

 

table1

 

follow_by price

car | 500

foot | 1000

 

table2

 

location price

china | 10000

india | 15000

thailand | 20000

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.