3
Answers

get the Last and penultimate Data - vb. net and SQL

Sousa Pambo

Sousa Pambo

8y
378
1
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 & "' "
 
idClientidConsumoName
52Luis Figo
23Paudio Paulo
44Joao Pinto
15Celsa Pambo
46Joao Pinto
57Luis Figo
28Paudio Paulo
59Luis Figo
 
Please HELP! 
Answers (3)