Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Unable to fetch Details

Author  Topic 

nistala86
Starting Member

1 Post

Posted - 2014-02-12 : 01:55:51
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

Regards
Ramakrishna

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2014-02-12 : 03:11:46
[code]select orderid from joins orders where orderid IS NULL[/code]


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -