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
sankeerth m
NA
484
23.6k
SqlInsert Query I am unable to restirct Duplicate entries
May 16 2020 12:20 AM
"INSERT INTO kpicolor(KPIName, MinVal, MaxVal, ColorVal, Markersize, UserSession) " +
"SELECT * FROM(SELECT @KPIName, @MinVal, @MaxVal, @ColorVal, @Markersize, @UserSession) AS tmp WHERE NOT EXISTS " +
"(Select KPIName from kpicolor where @MinVal between MinVal And MaxVal And KPIName = @KPIName AND UserSession='" + userSession + "'); ";
if i am adding 1 to 50 it is restricting between numbers. if i add 51 to 100 it is appending the row. after that i am inserting 101 to above numbers it unable to insert. but if add from 52 to 150 it adding again. please help me out this sql query
Reply
Answers (
2
)
Datetime issue after Deployed in iis in Cloud server?
an error occurred running the unity content on this page see