Query SQL Inner Join - US
Query SQL Inner Join - US
sum = 0.
SELECT seatsocc
FROM sflight INTO xseatsocc
WHERE carrid = 'LH'
AND fldate LIKE '2003%'.
sum = sum + xseatsocc.
ENDSELECT.
WRITE: / sum.
sum = 0.
SELECT carrid connid fldate FROM sflight
INTO (xcarrid, xconnid, xfldate)
WHERE carrid = 'LH'
AND seatsmax = sflight~seatsocc.
SELECT SUM( loccuram ) FROM sbook
INTO sbook_wa-loccuram
WHERE carrid = xcarrid
AND connid = xconnid
AND fldate = xfldate
AND loccurkey = 'EUR'.
sum = sum + sbook_wa-loccuram.
ENDSELECT.
Public Web:
SAP Customer Services Network: www.sap.com/services/
SAP Help Portal: help.sap.com
Consulting Contact
Roy Wood, VP SAP NetWeaver Consulting Practice ([email protected])
SAP TechEd 03 Las Vegas
2003 SAP Labs, LLC ABAP152, Ulrich Koch 50
SAP AG 2003, ABAP152, Ulrich Koch, Tobias Wenner / 99
Q&A
Questions?
SAP AG 2003, ABAP152, Ulrich Koch, Tobias Wenner / 100
Feedback
Please complete your session
evaluation and drop it in the box on
your way out.
Be courteous deposit your trash,
and do not take the handouts for the
following session.
The SAP TechEd 03 Las Vegas Team
SAP TechEd 03 Las Vegas
2003 SAP Labs, LLC ABAP152, Ulrich Koch 51
SAP AG 2003, ABAP152, Ulrich Koch, Tobias Wenner / 101
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express
permission of SAP AG. The information contained herein may be changed without prior notice.
Some software products marketed by SAP AG and its distributors contain proprietary software components of other
software vendors.
Microsoft
, WINDOWS
, NT
, EXCEL
, Word
, PowerPoint
, DB2
, Parallel Sysplex
, MVS/ESA, AIX
, S/390
, AS/400
, OS/390
,
OS/400
, Netfinity
, Tivoli
, Informix
and Informix
Dynamic Server
TM
are trademarks of IBM Corporation in USA and/or other countries.
ORACLE
, X/Open
, OSF/1
, and Motif
, Program Neighborhood
, MetaFrame
, WinFrame
, VideoFrame
, MultiWin
and
other Citrix product names referenced herein are trademarks of Citrix Systems, Inc.
HTML, DHTML, XML, XHTML are trademarks or registered trademarks of W3C
is a registered trademark of Sun Microsystems, Inc., used under license for technology invented
and implemented by Netscape.
MarketSet and Enterprise Buyer are jointly owned trademarks of SAP AG and Commerce One.
SAP, R/3, mySAP, mySAP.com, xApps, xApp and other SAP products and services mentioned herein as well as
their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other
countries all over the world. All other product and service names mentioned are the trademarks of their respective
companies.
Copyright 2003 SAP AG. All Rights Reserved