TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
baskaran chellasamy
NA
114
150.4k
problem in join query
Dec 8 2012 6:28 AM
Hi friends
the below is my join query for getting some result
create
procedure
sp_bindexamclass(@classid
int
,@examid
int
)
as
begin
select
en.ExamName,St.Standered_name,Sr.SubjectName,ec.Maximummark,ec.Minimummark
from
Standered_details St
inner
join
ExamClasssetting_details ec
on
St.Standered_id=ec.Classid
inner
join
SubjectRegistration_details Sr
on
Sr.SubjectCode=ec.subjectid
inner
join
ExamNameSetting_details en
on
en.ExamId=ec.ExamId
where
ec.Classid=@classid
and
ec.ExamId=@examid
end
Table relation is
1.standered details
relational key is
standered_id
to
classid
(fk) of Examclasssetting_details
2.SubjectRegistration_details
relational key is
subjectcode
to
Collapse
|
Copy Code
subjectid
of
Examclasssetting_details
3 .ExamNamesetting_details
relational key is
ExamId
to
ExamId
of Examclasssetting_deatails
all the table contains data for join query. but i couldnt get the desired result. what is the problem in join query.
Reply
Answers (
3
)
how to use(or) create int identity in stored procedure
select * from table where 3 > 2 what will return this query? anyone explain this query??