Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

query to return data from three tables

$
0
0

Hi All,


I have three tables

table1

ID      value1

1       abc

table2

ID    link_ID                 ref_type               object_ID

1       ID of table1(1)        hyperlink         121

2        ID of table2 (1)     file                    121

table3

ID      file_Name     size

1        hello            20 KB

i want to write a query that will return below output if we will pass 121 as where condition in a query

File_Name     value       ref_type          size

Null               abc           hyperlink        0

Hello            null            file                 20KB

please reply me as soon as possible its urgent






Viewing all articles
Browse latest Browse all 8428

Trending Articles



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