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
Thulasiram pakala
907
872
115.2k
Sql Increment Issue
May 8 2019 2:18 AM
hi i want to increment sr no like
INI/DE/2019-20/kah10990/1
INI/DE/2019-20/kah10990/2
in this i pass INI/DE/2019-20/kah10990/ this values code side
i am using this query its work
Select isnull(max(substring(uid,24,len(uid)-23)),0)+1 as Uid from tblinstinward where emlyear='2019-20' and instid='kah1099'
but sometimes this institute id len will be changed (kah10990) like (kah10990012) like
INI/DE/2019-20/kah1099011/1 like this so in this type of insert time this query is not working
Reply
Answers (
3
)
optimize queries
select values from tables