🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.sql
Article #635

ib2007 -Last Row

#635
From: joseph
Date: Mon, 17 Sep 2007 07:44
19 lines
1334 bytes
In IB2007, is there a simple way to return only the last row?

I can do a sub-select query like this:

select pe1.updatetype, pe1.CreationDate
from PosExport pe1
where pe1.roomreservationid = 11532
And pe1.UpdateType <> "S"
And pe1.posexportid in
 (Select Max(pe2.PosExportID)
  From PosExport pe2
  Where pe2.roomreservationid = 11532
  And pe2.UpdateType <> "S")

posexportid is the primary key in this table.


Thanks,
Joseph
Technical Details
Message-ID: <46ee3041$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!feeder3.cambrium.nl!feeder2.cambrium.nl!feed.tweaknews.nl!193.201.147.84.MISMATCH!xlned.com!feeder1.xlned.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 114a0e,562e2547ff611dd5
X-Google-Attributes: gid114a0e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "joseph" <jpell@di-ve.com>
Newsgroups: borland.public.interbase.sql
Subject: ib2007 -Last Row
Date: Mon, 17 Sep 2007 09:44:01 +0200
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1807
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1896
NNTP-Posting-Host: 194.158.51.158
Message-ID: <46ee3041$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1190015041 194.158.51.158 (17 Sep 2007 00:44:01 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!feeder3.cambrium.nl!feeder2.cambrium.nl!feed.tweaknews.nl!193.201.147.84.MISMATCH!xlned.com!feeder1.xlned.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail