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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
oh right cool, happy to help.
ASKER
it works with left join command
i learned it
MeCeX