I have a database sql server 2012, where I have a table that contains a datetime field, and what I need is to get the last insert that was made, I have the following table and I hope you can help me
----------------------------------------------------------------------
|cod_reporte|nombre_ruta |email |tipo |descripcion |fecha |
----------------------------------------------------------------------
| int | varchar |varchar |varchar |varchar |datetime |
-----------------------------------------------------------------------
What I need exactly is to get the last insert, specifying a route
example: route 1 = ..... .....
route 2 = ..... ....
I hope you can help me