Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

HOW CAN I CREATE A VIEW FROM SAME TABLE WHERE I NEED COLUMNS DETAILS FROM DIFFERENT ROWS IN THE SAME TABLE

$
0
0

i have a table1 on the top, but i want to create a view from table 1 as  view mentioned beneath the table 2. Could any of you please help me.

table1
IDofficeemployeeactivity
1246-9999698
2##-9921480698
3104-99997025
4##-99889087025
5108-99992415
6##-99171352415
7246-9999698
8##-9921480698
9104-99997025
10##-99889087025
11108-99992415
12##-99171352415
view
IDofficeID1employeeactivity
1246221480698
31044889087025
51086171352415
7246821480698
910410889087025
1110812171352415



Viewing all articles
Browse latest Browse all 23857

Trending Articles



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