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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 outer join

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2000-11-25 : 12:16:41
denis writes "I use windows NT 4.0 and SQL SERVER 7.0

I have to tables ADRESSE and CTT_Adresse. I make a view like that :
CREATE VIEW dbo.vPrestataireAdresseContrat
AS
SELECT adr_id, cttadr_id
FROM adresse, ctt_adresse
WHERE adresse.adr_id *= ctt_adresse.cttadr_id_adr

The result is when no records exist in ctt_adresse for an adresse a null value is returned in the view. After that i can't make simple querys on cttadr_id_adr like

select * from vPrestataireAdresseContrat
where vPrestataireAdresseContrat.cttadr_id_adr = 1

what can i do?

thanks for your help !"
   

- Advertisement -