Quantcast
Viewing latest article 7
Browse Latest Browse All 5347

Query to get Unique Row for one table and matching records in next rows and repeat

Need help to know how can i write a query for below

Table1
ConIDName
1A
2B
3C
4D

Table 2
QidConIdQuestion
11How
21What
31Why
42Do You
52Why not

Table 3
AnsIdQidAnswer
11Yes
21No
32TRUE
42FALSE
52N/A
63Yes
74No

--------------OUTPUT--------------

ConId          Qid      Anid Text
1                       1 How
          1      Yes
          2      No
    
1           2 Why
         3       TRUE
                               4       FALSE
       5       N/A
2             4 How
      1      Yes
      2      No


Viewing latest article 7
Browse Latest Browse All 5347

Trending Articles



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