0

I really need some answer to resolve my problem. Here's the situation,
I wanted to create a student number using mysql database and vb.net in this form:

currentyear-(no. of student in record)

Student no. is auto generated.(the no. of student in record part)

Example:
I entered to school in the year 2006
I am student 141791
therefore my Student no. is 2006-141791.


Please let me know how to code it.
Tnx in advance.

3
Contributors
2
Replies
6
Views
5 Years
Discussion Span
Last Post by M.Waqas Aslam
1

Presuming you hold year first enrolled in the Student table you are best to use a calculated field in a view that concatenates these to fields

YearEnrolled & '-' & StudentId AS StudentNo

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.