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
Sousa Pambo
NA
92
24.1k
get the Last and penultimate Data - vb. net and SQL
Dec 4 2015 6:18 AM
Hello, friends. I need your help. I'm programming in vb.net and I'd like to get the Last and the penultimate data Array among many data. E.g.
Luis Figo.
Note: I don't want to especify the value (7 ou 9). Actually the last is easy, I use: "select max(idConsumo) as idCon from tblClient where idClient = '" & idC & "' "
idClient
idConsumo
Name
5
2
Luis Figo
2
3
Paudio Paulo
4
4
Joao Pinto
1
5
Celsa Pambo
4
6
Joao Pinto
5
7
Luis Figo
2
8
Paudio Paulo
5
9
Luis Figo
Please HELP!
Reply
Answers (
3
)
inserting a text with a side on the database
Communication between USB and WPF application