Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

Link rows of data in an SQL database

$
0
0

Hi all,

I have an SQL Server with data being fed into a table by a piece of equipment. There are two rows of data that make up one piece of information, and I need to create a view or stored procedure that will combine the two rows to give one row of information that's presented to the user.

The data looks like this :

ID  Weight  Location   Date      Time

1    1000      NULL      14/7/14   16:17:01

2     NULL     5            14/7/14   16:17:01

What I need is :

1    1000       5            14/7/14   16:17:01

Can somebody suggest something that might help ?


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>