kennyaidan
Programmer
Hi ,
i am a beginner sql programmer and i am having trouble with a particular sql select statement that i want to execute. I want to select the first row's values based upon id value after i do a select all statement order by desc. The select all code if have is
"select * from story1 order by id desc"
The story1 table looks like the following
id | name | age |
01 Aidan 18
02 Rob 19
The select all statement works fine, however i can't get it to output the first row only ie "01 Aidan 18"
Does anyone know code that could help me
thanks
aidan
i am a beginner sql programmer and i am having trouble with a particular sql select statement that i want to execute. I want to select the first row's values based upon id value after i do a select all statement order by desc. The select all code if have is
"select * from story1 order by id desc"
The story1 table looks like the following
id | name | age |
01 Aidan 18
02 Rob 19
The select all statement works fine, however i can't get it to output the first row only ie "01 Aidan 18"
Does anyone know code that could help me
thanks
aidan