Information Technology Reference
In-Depth Information
)25($&+LGHQWLILHUDUUD\HOHPHQW'2
%(*,1
/RFDWHWKHHOHPHQWQRGHZKLFKWKHLGHQWLILHUEHORQJVWR
FRQVWUXFWWKH;4/TXHU\IURPWKHURRWQRGHWRWKH
HOHPHQWQRGHWKHLGHQWLILHUEHORQJVWR
,)WKHLGHQWLILHULVµ¶7+(1
$SSHQGµ#¶WRWKHHQGRIWKH;4/TXHU\
(/6(
$SSHQGWKHLGHQWLILHUWRWKHHQGRIWKH;4/TXHU\
(1',)
6WRUHWKH;4/TXHU\WRWKHDUUD\;4/TXHU\DUUD\
(1'
&RQFDWHQDWHWKHHOHPHQWVRIWKHDUUD\;4/TXHU\DUUD\
ZLWKWKHXQLRQVLJQµ_¶WRIRUPDVLQJOH;4/TXHU\
5(7851WKHFRQFDWHQDWHG;4/TXHU\
(1'352&('85(
352&('85(PDLQ3URFHGXUH8VHULQSXW64/TXHU\
;4/4XHU\ (;(&352&('85(%UHDNGRZQ64/4XHU\8VHULQSXW
4/TXHU\
6XEPLWWKH;4/4XHU\WRWKH;0/'%6HUYHU
,)QR;0/GRFXPHQWUHWXUQHG7+(1
5(7851
(/6(
5HWULHYHWKHFRUUHVSRQGLQJFROXPQKHDGHUV
)RUPDWWKHUHWXUQHG;0/GRFXPHQWLQWRWDEXODUIRUPDW
5(7851WKHGDWDWRXVHU
(1',)
(1'352&('85(
Case Study of Translating an SQL Query into XPath Query
Case studies of queries for security trading client statement are used to illustrate
query translation between XPath and SQL.
Table record sequence number column
For any table to be used for query translation, an extra column— seqno is
required. These columns are used by the XML gateway and therefore the following
paragraphs first explain the usage and maintenance of these columns.
For each table, the last column is seqno . This seqno columns are used to ensure
the records returned from database is in right order and this column is used for
translation XQL location index functions (e.g., position()).
Search WWH ::




Custom Search