Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

The multi-part identifier "p.p#" could not be bound.

$
0
0

Hi,

When i executed the below query , i have an error :(

select s# from s where exists (select * from spj where spj.s# = s.s# and spj.p# = p.p#)

and relation is :

S(s#,sname,city) s# is primary key
p(p#,pname,color) p# is primary key
j(j#,jname,city)  j# is primary key
SPJ(S#,p#,j#,qty) s# and p# and j# is foreign key


Viewing all articles
Browse latest Browse all 7129

Trending Articles



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