Last active
August 16, 2017 23:55
-
-
Save gregori/b8b2486265b46880bedafe8603560312 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Bancos de Dados I | |
group: Banco | |
description[[Banco de Dados de exemplo do livro Sistemas de Bancos de Dados de Silberschatz | |
* a relação _emprestimo_ contém informações sobre empréstimos bancários. | |
a relação _tomador_ vincula os clientes aos empréstimos | |
* a relação _conta_ contém as informações sobre contas correntes. | |
a relação _depositante_ vincula os clientes às contas correntes | |
* a relação _cliente_ lista os dados dos clientes | |
]] | |
emprestimo = { | |
numero_emprestimo:string, nome_agencia:string, quantia:number | |
"L-11", "Round Hill", 900 | |
"L-11", "Downtown", 1500 | |
"L-15", "Perryridge", 1500 | |
"L-16", "Perryridge", 1300 | |
"L-17", "Downtown", 1000 | |
} | |
depositante = { | |
nome_cliente:string, numero_conta:string | |
Hayes, A-102 | |
Johnson, A-101 | |
Johnson, A-201 | |
Jones, A217 | |
Turner, A-203 | |
} | |
tomador = { | |
nome_cliente:string, numero_emprestimo:string | |
Adams, L-16 | |
Curry, L-93 | |
Hayes, L-15 | |
Jackson, L-14 | |
Jones, L-17 | |
} | |
conta = { | |
numero_conta:string, nome_agencia:string, saldo:number | |
A-101, Downtown, 500 | |
A-102, Perryridge, 400 | |
A-201, Brighton, 900 | |
A-215, Mianus, 700 | |
A-217, Brighton, 750 | |
} | |
cliente = { | |
nome_cliente:string, rua_cliente:string, cidade_cliente:string | |
Adams, Spring, Pittsfield | |
Brooks, Senator, Brooklyn | |
Curry, North, Rye | |
Glenn, "Sand Hill", Woodside | |
Green, Walnut, Stamford | |
Hayes, Main, Harrison | |
Johnson, Alma, "Palo Alto" | |
Jones, Main, Harrison | |
Lindsay, Park, Pittsfield | |
Smith, North, Rye | |
Turner, Putnam, Stamford | |
Williams, Nassau, Princeton | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment