Terry Dykstra [TeamSybase]
2009-06-16 03:49:46 UTC
Assuming Oracle:
select * from (
Select tabl_a.*, tabl_b.*
From tabl_a, tabl_b
Where table_a.field_1 = table_b.field_1
Order By table_a.field_2 )
where rownum < x
--
Terry Dykstra (TeamSybase)
http://powerbuilder.codeXchange.sybase.com/
http://casexpress.sybase.com
product enhancement requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement
select * from (
Select tabl_a.*, tabl_b.*
From tabl_a, tabl_b
Where table_a.field_1 = table_b.field_1
Order By table_a.field_2 )
where rownum < x
--
Terry Dykstra (TeamSybase)
http://powerbuilder.codeXchange.sybase.com/
http://casexpress.sybase.com
product enhancement requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement
IM 10.5 Build 4523
What is the syntax to returning only the last 'x' rows for a
Select *
From tabl_a, tabl_b
Where table_a.field_1 = table_b.field_1
Order By table_a.field_2
The Order By field is the field I want to use for the
criteria of the "Last 'x' Rows"
Thanks
What is the syntax to returning only the last 'x' rows for a
Select *
From tabl_a, tabl_b
Where table_a.field_1 = table_b.field_1
Order By table_a.field_2
The Order By field is the field I want to use for the
criteria of the "Last 'x' Rows"
Thanks