Hi All,
I am in trouble and need help in building this query.
I have following 2 tables, data_main and data_ext(extended table) linked with dataky column. And I want to write select query on data column value of these 2 tables. data column value may and may not be present in extended table(data_ext). If data column value is present in extended table(data_ext) it could be in more than one rows of it ordered by seqnum column value.
HTML Code:
data_main
--------------------
dataky| data |
--------------------
1 |Life is prec|
2 |Japan is lan|
3 |I love my fa|
4 |No, I won't.|
--------------------
data_ext
---------------------------
dataky| seqnum|data |
---------------------------
1 | 1 |ious so dri|
1 | 2 |ve carefull|
1 | 3 |y. |
2 | 1 |d of sunris|
2 | 2 |e. |
3 | 1 |mily and fr|
3 | 2 |iends. |
---------------------------
Expected output -
Life is precious so drive carefully.
Japan is land of sunrise.
I love my family and friends.
No, I won't.
Thanks and Regards,
Onida