Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
teste
create table produtos( cod int primary key not null auto_increment, modelo varchar(30) not null, cor varchar(20) not null, objetivo int(7), tamanho varchar(2) not null, qtd_estoque int not null, preco float not null ); create table venda( modelo int, qtd_vendida int, data date, hora char(5), v_total float not null, produto_vendido int not null, foreign key (produto_vendido) references produtos(cod) ); create view calcados as select p.modelo, p.preco from produtos p where tamanho >= 30; create trigger tr_arrdeonda_produto before insert on produtos for each row set new.preco = round(new.preco);
run
|
edit
|
history
|
help
0
MySQL Sandbox: Superheroes
rutujafulari
mysql - having
Práctica MySQL 1
sort players by sum of results
My mysql code - sunil
loan
SMI_SQL
kuy09:admin@pkms99.info
Srinivas