0% acharam este documento útil (0 voto)
16 visualizações2 páginas

SQL Tables Script

Direitos autorais
© © All Rights Reserved
Levamos muito a sério os direitos de conteúdo. Se você suspeita que este conteúdo é seu, reivindique-o aqui.
Formatos disponíveis
Baixe no formato PDF, TXT ou leia on-line no Scribd
0% acharam este documento útil (0 voto)
16 visualizações2 páginas

SQL Tables Script

Direitos autorais
© © All Rights Reserved
Levamos muito a sério os direitos de conteúdo. Se você suspeita que este conteúdo é seu, reivindique-o aqui.
Formatos disponíveis
Baixe no formato PDF, TXT ou leia on-line no Scribd
Você está na página 1/ 2

create table livros(

livrosid integer primary key,

titulo varchar,

valor decimal,

autor varchar,

dataPublicacao date,

quantidadeEstoque int,

editoraId,

foreign key (editoraId) references editoras(editoraId)

);

create table cliente(

idCliente integer primary key,

nomeCliente varchar,

endereco varchar,

telefone int,

email varchar

);

create table funcionarios(

funcionarioid integer primary key,

nome varchar,

cargo varchar,

dataDeContratacao date,

salario decimal

);
create table vendas(

vendaId integer primary key,

Data date,

valorTotal decimal,

clienteid,

foreign key (clienteid) references cliente(clienteid)

);

create table editoras(

editoraId integer primary key,

nome varchar,

endereco varchar

);

create table fornecedores(

fornecedorId integer primary key,

nome varchar,

contato varchar

);

create table categoria(

categoriaId int primary key,

nome varchar

);

Você também pode gostar

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy