This file contains hidden or 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
| sp_help categories | |
| sp_help orders | |
| select * from Orders; | |
| select * from Customers; | |
| select * from Suppliers; |
This file contains hidden or 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
| --lista de pedidos registrados | |
| create procedure usp_list_employees_2 | |
| as | |
| select * from Empleados; | |
| create procedure usp_filter_by_employee | |
| @employeeId int | |
| as | |
| select * | |
| from Pedidos |
This file contains hidden or 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
| CREATE DATABASE PC02 | |
| use PC02 | |
| go | |
| create table users( | |
| access char(10) primary key, | |
| password char(10) | |
| ) | |
| go | |
| create table category( | |
| idCategory char(10) primary key, |
This file contains hidden or 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
| create database dw_example2 | |
| ----------------------------- | |
| use dw_example2 | |
| ----------------------------- | |
| create table articles( | |
| id int primary key, | |
| name nvarchar(50), | |
| provider int, | |
| category int, | |
| price money, |
NewerOlder