Quantcast
Channel: Database Design forum
Viewing all articles
Browse latest Browse all 2729

Having Single table for multiple temp tables in sql

$
0
0

I have a procedure having 3 temp tables have same dept column and different measures as below

Dept  Tickets
d1 12
d2 13
d3 14
d4 15
d5 16
d6 17

Dept Calls
d112
d213
d314
d415
d516
d617

Dept Chats
d112
d213
d314
d415
d516
d617

I need to show all of them in a single table like below.

Dept  Tickets Calls Chats
d1 12 12 12
d2 13 13 13
d3 14 14 14
d4 15 15 15
d5 16 16 16
d6 17 17 17

Pleass help


Viewing all articles
Browse latest Browse all 2729

Trending Articles



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