File: employe2.sql

package info (click to toggle)
firebird3.0 3.0.13.ds7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 42,632 kB
  • sloc: ansic: 374,403; cpp: 319,973; sql: 14,691; pascal: 14,532; yacc: 7,557; fortran: 5,645; sh: 5,336; makefile: 1,041; perl: 194; sed: 83; awk: 76; xml: 19; csh: 15
file content (55 lines) | stat: -rw-r--r-- 2,446 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
 * The contents of this file are subject to the Interbase Public
 * License Version 1.0 (the "License"); you may not use this file
 * except in compliance with the License. You may obtain a copy
 * of the License at http://www.Inprise.com/IPL.html
 *
 * Software distributed under the License is distributed on an
 * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
 * or implied. See the License for the specific language governing
 * rights and limitations under the License.
 *
 * The Original Code was created by Inprise Corporation
 * and its predecessors. Portions created by Inprise Corporation are
 * Copyright (C) Inprise Corporation.
 *
 * All Rights Reserved.
 * Contributor(s): ______________________________________.
 */
set sql dialect 3;
create database "employe2.fdb";
/*
 *	Currency cross rates:  convert one currency type into another.
 *
 *	Ex.  5 U.S. Dollars = 5 * 1.3273 Canadian Dollars
 */

CREATE TABLE cross_rate
(
    from_currency   VARCHAR(10) NOT NULL,
    to_currency     VARCHAR(10) NOT NULL,
    conv_rate       FLOAT NOT NULL,	
    update_date     DATE,

    PRIMARY KEY (from_currency, to_currency)
);

INSERT INTO cross_rate VALUES ('Dollar', 'CdnDlr',  1.0027,  '11/09/2012');
INSERT INTO cross_rate VALUES ('Dollar', 'Yen',     79.2400, '11/09/2012');
INSERT INTO cross_rate VALUES ('Dollar', 'SFranc',  0.9495,  '11/09/2012');
INSERT INTO cross_rate VALUES ('Dollar', 'Pound',   0.6272,  '11/09/2012');
INSERT INTO cross_rate VALUES ('Pound',  'Euro',    1.2542,  '11/09/2012');
INSERT INTO cross_rate VALUES ('Pound',  'Yen',     126.3320,'11/09/2012');
INSERT INTO cross_rate VALUES ('Yen',    'Pound',   0.0079,  '11/09/2012');
INSERT INTO cross_rate VALUES ('CdnDlr', 'Dollar',  0.9973,  '11/09/2012');
INSERT INTO cross_rate VALUES ('CdnDlr', 'Euro',    0.7857,  '11/09/2012');
INSERT INTO cross_rate VALUES ('Euro', 'Dollar',    1.2716,  '11/09/2012');
INSERT INTO cross_rate VALUES ('Dollar', 'Euro',    0.7878,  '11/09/2012');
INSERT INTO cross_rate VALUES ('Ruble', 'Euro',     0.0249,  '11/09/2012');
INSERT INTO cross_rate VALUES ('Euro', 'Ruble',     40.1378, '11/09/2012');
INSERT INTO cross_rate VALUES ('Ruble', 'Dollar',   0.0316,  '11/09/2012');
INSERT INTO cross_rate VALUES ('Dollar', 'Ruble',   31.5355, '11/09/2012');
INSERT INTO cross_rate VALUES ('RLeu', 'Dollar',    0.2811,  '11/09/2012');
INSERT INTO cross_rate VALUES ('Euro', 'RLeu',      4.5281,  '11/09/2012');