SQL Query [message #392396] |
Tue, 17 March 2009 15:45 |
nghorakavi
Messages: 4 Registered: February 2008
|
Junior Member |
|
|
HI
I have three tables
Division ( DIV_CD, DIV_Description)
Location (LOC_CD, Loc_Name)
GLCode ( GLAccount_Cd,GLAcct_name)
Can you help me in getting the query for this reqmt.
For each Division and LOcation code, I need to map all the GLCodes
for e.g. in Division i have Audio, in Location Sea, Seattle
for Audio and Seattle, I need to get all the GL Accountcodes.
What would be the SQL Query
Thanks,
Narsi.
|
|
|
|
Re: SQL Query [message #392405 is a reply to message #392404] |
Tue, 17 March 2009 16:24 |
nghorakavi
Messages: 4 Registered: February 2008
|
Junior Member |
|
|
I am thinking of putting Cross join Division and Location the result is again cross join with GL table. Does it give for each division and location all the GL Accounts mapped
Thanks in advance.
|
|
|
|
Re: SQL Query [message #392407 is a reply to message #392406] |
Tue, 17 March 2009 16:31 |
nghorakavi
Messages: 4 Registered: February 2008
|
Junior Member |
|
|
currently i have asked to design and need to know that this will work or not. Appreciate any other solution.
thanks,
Narsi.
|
|
|
|