basic problem is as follows
i have three tables, table C has the primary key and unique
entries, A and B hold foriegn keys that are many to one into
table C
table A table B table C
f_key f_key p_key
sample data
data A data B data C
11 12 11
11 12 12
11 14 13
11 15 14
12 15
13
14
i would like a cursor result to look like this
f_key_a f_key_b (don't care about C fields)
11 null
11 null
11 null
11 null
12 12
null 12
13 null
14 14
null 15
anyone suggest an sql statment / view for above? i'm creating the cusor manually at the momement. Note i can't
afford repeating entries for every match between f_key_a and f_key_b. thks
![[pc3] [pc3] [pc3]](/data/assets/smilies/pc3.gif)
i have three tables, table C has the primary key and unique
entries, A and B hold foriegn keys that are many to one into
table C
table A table B table C
f_key f_key p_key
sample data
data A data B data C
11 12 11
11 12 12
11 14 13
11 15 14
12 15
13
14
i would like a cursor result to look like this
f_key_a f_key_b (don't care about C fields)
11 null
11 null
11 null
11 null
12 12
null 12
13 null
14 14
null 15
anyone suggest an sql statment / view for above? i'm creating the cusor manually at the momement. Note i can't
afford repeating entries for every match between f_key_a and f_key_b. thks
![[pc3] [pc3] [pc3]](/data/assets/smilies/pc3.gif)