-
Notifications
You must be signed in to change notification settings - Fork 0
/
SQLQuerySzkolenia.sql
39 lines (32 loc) · 1.05 KB
/
SQLQuerySzkolenia.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
USE [szkoleniaBHP]
GO
/****** Object: Table [dbo].[SZKOLENIA] Script Date: 8/20/2364 2:57:16 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[SZKOLENIA](
[SZKOLENIAID] [int] IDENTITY(1,1) NOT NULL,
[IMIE] [varchar](100) NULL,
[NAZWISKO] [varchar](100) NULL,
[OKRES_WAŻNOŚCI] [varchar](100) NULL,
[EGZAMIN] [varchar](100) NULL,
[OCENA] [varchar](100) NULL,
[KOMISJA] [varchar](100) NULL,
[PRACOWNIKID] [int] NULL,
[TYP] [varchar](50) NULL,
[DATA_SZKOLENIA] [date] NULL,
[FIRMYID] [int] NULL,
[DATA_URODZENIA] [date] NULL,
PRIMARY KEY CLUSTERED
(
[SZKOLENIAID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SZKOLENIA] WITH CHECK ADD FOREIGN KEY([FIRMYID])
REFERENCES [dbo].[FIRMY] ([FIRMYID])
GO
ALTER TABLE [dbo].[SZKOLENIA] WITH CHECK ADD FOREIGN KEY([PRACOWNIKID])
REFERENCES [dbo].[PRACOWNIK] ([PRACOWNIKID])
GO