Merge two rows in SQL

Posted by Jason on Stack Overflow See other posts from Stack Overflow or by Jason
Published on 2010-05-31T02:37:14Z Indexed on 2010/05/31 2:42 UTC
Read the original article Hit count: 321

Filed under:
|
|

Assuming I have a table containing the following information:

FK | Field1 | Field2
=====================
3  | ABC    | *NULL*
3  | *NULL* | DEF

is there a way I can perform a select on the table to get the following

FK | Field1 | Field2
=====================
3  | ABC    | DEF

Thanks

Edit: Fix field2 name for clarity

© Stack Overflow or respective owner

Related posts about sql

Related posts about join