Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Libros
create table Libros ( codigo int identity, nombre varchar (100), autor varchar (100), editorial varchar (100), precio float, cantidad int, fechaingreso datetime ); exec sp_columns libros; insert into Libros ( nombre, autor, editorial, precio, cantidad, fechaingreso) values ('cienaños de soledad', 'Gabrile Garcia Marques','la sabana',null,10,'06-17-2019') ; insert into Libros ( nombre, autor, editorial, precio, cantidad, fechaingreso) values ('El hombre que calculaba', 'Malba Tahan','NORIEGA',null,11,'06-17-2019') ; insert into Libros ( nombre, autor, editorial, precio, cantidad, fechaingreso) values ('Don quijote de la mancha', 'Miguel de Cervantes3','Francisco de Robles',50000,32,'06-17-2019') ; insert into Libros ( nombre, autor, editorial, precio, cantidad,fechaingreso) values ('La franja amarilla', 'WILLIAM OSPINA','Penguin Random House Grupo Editorial Colombia',null,22,'06-17-2019') ; insert into Libros ( nombre, autor, editorial, precio, cantidad,fechaingreso) values ('algebra', 'Aurelio Baldor','Grupo Editorial Patria',null,7,'06-17-2019') ; select* from Libros; select nombre, editorial from Libros where codigo=4; --delete from Libros where codigo=5; select* from Libros; update Libros set precio=42000 where codigo=1 ; update Libros set precio=30000 where codigo=2 ; update Libros set precio=45000 where codigo=4 ; update Libros set precio=28000 where codigo=5 ; select* from Libros; update Libros set cantidad=null where codigo=4 select* from Libros;
run
|
edit
|
history
|
help
0
QUAN LY MAYBAY
Train Reservation
Select empID whose salary is greater than their managers
bc160402152
Yan_1st_wall
3a
MyShopSchema
Shalvika's Query
ms sql 3
Demo