Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

please help with the sql

$
0
0
Could you please help with me with the sql

Task - Load data into new table C from table A and table B


TABLE A has two columns where

COL A is primary key (sequence number)

***********************
COL A * COL B * COL C *
***********************
1 10 10
2 20 20
3 40 30
***********************

TABLE B
****************
COL B * COL C *
****************
10 TEN
20 TWENTY
30 THIRTY
40 FORTY
****************


RESULT :

TABLE C

***********************
COL A * COL B * COL C *
***********************
1 TEN TEN
2 TWENTY TWENTY
3 FORTY THIRTY
***********************

Viewing all articles
Browse latest Browse all 13329

Trending Articles