0% found this document useful (0 votes)
18 views3 pages

Create Table Nvarchar Primary Key Nvarchar Nvarchar Nvarchar

The document contains SQL statements that create 8 tables: Autovehicule_dw, Soferi_dw, Zone_dw, Judete_dw, Localitati_sosire_dw, Curse_dw, Tip_autovehicule1_dw. The tables define columns for vehicle data, drivers, zones, counties, departure locations, trips, and vehicle types. Primary keys are defined for each table.

Uploaded by

Ghita Sinatovici
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views3 pages

Create Table Nvarchar Primary Key Nvarchar Nvarchar Nvarchar

The document contains SQL statements that create 8 tables: Autovehicule_dw, Soferi_dw, Zone_dw, Judete_dw, Localitati_sosire_dw, Curse_dw, Tip_autovehicule1_dw. The tables define columns for vehicle data, drivers, zones, counties, departure locations, trips, and vehicle types. Primary keys are defined for each table.

Uploaded by

Ghita Sinatovici
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

CREATE TABLE Autovehicule_dw

(id_autovehicul nvarchar(255)PRIMARY KEY,


nr_inmatriculare nvarchar(50),
tip_autovehicul nvarchar(50),
marca nvarchar(50)
);

CREATE TABLE Soferi_dw


(CNP_sofer nvarchar(50)PRIMARY KEY,
nume nvarchar(50)
);

CREATE TABLE Zone_dw


(id_zona nvarchar(50)PRIMARY KEY,
zona nvarchar(255)
);

CREATE TABLE Judete_dw


(id_judet nvarchar(255)PRIMARY KEY,
judet nvarchar(255),
id_zona nvarchar(50)
);

CREATE TABLE Localitati_sosire_dw


(id_localitate_sosire nvarchar(255)PRIMARY KEY,
localitate nvarchar(255),
id_judet nvarchar(255)
);

CREATE TABLE Curse_dw


(id_cursa nvarchar(10)PRIMARY KEY,
data_plecare datetime,
distanta int,
pret_bilet int,
consum_mediu int,
id_autovehicul nvarchar(255),
CNP_sofer nvarchar(50),
id_localitate_sosire nvarchar(255),
nr_pasageri int,
cifra_afaceri int
);

CREATE TABLE Tip_autovehicule1_dw


(tip_autovehicul nvarchar(50)PRIMARY KEY
);

You might also like