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
Mohan Arumugam
NA
465
37.6k
duplicate record in one to many relationship
Jun 14 2018 5:36 AM
How to prevent duplicate records in one too many relationships using SQL join query
create procedure loantype5
(@id int)
as
begin
select customer.Id,interest20.principalamount as principalamount,interest20.loantype as loantype,emi22.principalamount1 as principalamount1,emi22.loantype1 as loantype1 from customer
left join interest20 on customer.Id=interest20.customerid
left join emi22 on
where customer.Id=@id
group by
customer.Id,
interest20.principalamount,
interest20.loantype,
emi22.principalamount1,
emi22.loantype1
end
Reply
Answers (
3
)
How to Create Batch File for BackUp
Stored procedure