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

Unable to fetch Details

$
0
0

Hi

i created a view with a simple join query

there are 2 rows with orderid as null, i am unable to fetch the details when i give WHERE Condition as 

"select orderid from joins where orderid=NULL"

Query :

create view joins as 
select  A.customerid,A.Companyname,A.Contactname,A.City,B.OrderId from Customers A 
left join orders B
on A.Customerid=B.Customerid

kindly help


Viewing all articles
Browse latest Browse all 8428

Trending Articles



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