Link to home
Start Free TrialLog in
Avatar of mece
mece

asked on

SQL Query from diffrent tables - How to

Hi,

I have 3 databases like below;

DB1
MUSID : autoinc
...

DB2
TekID : autoinc
MUSID : number
...

DB3:
DB3ID : autoinc
TekID: number
Money : currency
MoneyID : number

I want to select the sum of money grouping by moneyid and MUSID.
That is like
MUSID  MoneyID  Sum of Money
-------------------------------------
1              1                100
1              2                150
2              1                98
...

How can i do that with sql code ? I'm programming with delphi and none of the tables hav relationship between.

Thanx..

MeCeX
ASKER CERTIFIED SOLUTION
Avatar of SimonLarsen
SimonLarsen

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mece
mece

ASKER

thanx for the way

it works with left join command
i learned it

MeCeX
oh right cool, happy to help.