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
Patrick Kabeya
NA
5
538
JOINing a Table to Itself
Mar 28 2017 8:38 PM
I have a list of records (Church Dioceses) in which I would like to pull information into a gridview.
There's 12 priest per diocese but only about 3 are "primary". I need to show only the 3 primaries and I'm unable to figure it out. Any help would do.
Here is my code: SELECT [Contact_ID], [First_Name], [Last_Name], [IsPrimary] FROM [Contacts] WHERE (([IsPrimary] = @IsPrimary) AND ([Contact_ID] = @Contact_ID)).
FYI: each diocese has it's own unique ID
What Am I doing wrong? please help I'm a newbie.
Thank You
Reply
Answers (
1
)
Website Administration Tool
EDPLUS for Excel to datatable