M miladhatam May 9, 2007 #1 hi how can i select last 5 fields of my table i don't know it sql command
A Alexey Smirnov May 9, 2007 #2 hi how can i select last 5 fields of my table i don't know it sql command Click to expand... SELECT field6, field7, field8, field9, field10 FROM mytable
hi how can i select last 5 fields of my table i don't know it sql command Click to expand... SELECT field6, field7, field8, field9, field10 FROM mytable
M miladhatam May 10, 2007 #3 sorry alexy oh i made a mistake i want to select 5 last records sorry ... have any idea ? thanks
A Alexey Smirnov May 10, 2007 #4 sorry alexy oh i made a mistake i want to select 5 last records sorry ... have any idea ? thanks Click to expand... SELECT TOP 5 * FROM mytable ORDER BY something DESC where "something" is a name of the field which used for a consecutive values like rowid, date created, etc...
sorry alexy oh i made a mistake i want to select 5 last records sorry ... have any idea ? thanks Click to expand... SELECT TOP 5 * FROM mytable ORDER BY something DESC where "something" is a name of the field which used for a consecutive values like rowid, date created, etc...
J Juan T. Llibre May 10, 2007 #5 Is there a date-of-record field ? select top 5 * from yourtable order by datefield desc Juan T. Llibre, asp.net MVP asp.net faq : http://asp.net.do/faq/ foros de asp.net, en español : http://asp.net.do/foros/ ===================================
Is there a date-of-record field ? select top 5 * from yourtable order by datefield desc Juan T. Llibre, asp.net MVP asp.net faq : http://asp.net.do/faq/ foros de asp.net, en español : http://asp.net.do/foros/ ===================================