Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Join two tables

Former Member
0 Likes
1,027

hi experts,

I have an internal tables. it fetches

values from 2 tables : cosp and csks.

i need to use csks-kostl in my report.

how can I join these two tables. There is

no common key.

5 REPLIES 5
Read only

Former Member
0 Likes
821

Hi,

You need to have a common field between 2 tables if you want to put a join between them.

Or otherwise,

Find the check table of the primary keys of the tables.

Try to find the common fields from one of the check tables of the primary keys.

Example,

If you want to join tables A and B.

Both tables don't contain common fields.

A has primary key fields X and Y.

go to check table of X or Y.

Let check table of X is C.

check any field in C which are exist in table B.

Join tables A and C.

Based on this pick the data from B.

Reward if helpful

Regards,

preet

Read only

Former Member
0 Likes
821

Hi,

COSP>COEP>COBK

|

CSKS-->CSKT

Read only

0 Likes
821

Hi,

Using these tables u need to link the tables

Read only

0 Likes
821

hi prince,

can u explain it?

i didn't get the idea.

Read only

Former Member
0 Likes
821

HI

check link between

COSP-OBJNR = CSKS--OBJNR

fetch corresponding csks-kostl as per your requirement.

Reward if its helpfull

Regards.

Jay