Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- create database Komis
- use Komis
- create table Komisy (
- id_komisu int primary key not null identity (1,1),
- Nazwa nvarchar(40) not null,
- Miasto nvarchar(40) not null,
- Ulica nvarchar(40) not null,
- Pracownicy int not null foreign key references pracownicy(id_pracownika))
- create table Przyjecia (
- id_przyjecia int primary key not null identity (1,1),
- data_przyjecia date,
- id_pracownika int not null foreign key references pracownicy(id_pracownika),
- id_komisu int not null foreign key references Komisy(id_komisu),
- id_samochodu int not null foreign key references Samochody(id_samochodu))
- create table pracownicy (
- id_pracownika int primary key not null identity (1,1),
- Imie nvarchar(40) not null,
- Nazwisko nvarchar(40) not null,
- PESEL int not null,
- Adres nvarchar(40))
- create table Samochody (
- id_samochodu int primary key not null identity (1,1),
- stan nvarchar(40),
- kolor nvarchar(40),
- Cena money not null,
- id_marki int not null foreign key references Marka(id_marki))
- create table Marka (
- id_marki int primary key not null identity (1,1),
- Nazwa_marki nvarchar(40) not null,
- Kraj_pochodzenia nvarchar(40),
- Model nvarchar(40) not null,
- typ_nadwozia nvarchar(40))
Advertisement
Add Comment
Please, Sign In to add comment