Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
datamartapotek
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Prince Silaban
datamartapotek
Commits
a79146d5
Commit
a79146d5
authored
Jun 05, 2020
by
Prince Silaban
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add new file
parents
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
141 additions
and
0 deletions
+141
-0
ApotekXYZ_db.sql
ApotekXYZ_db.sql
+141
-0
No files found.
ApotekXYZ_db.sql
0 → 100644
View file @
a79146d5
USE
[
ApotekXYZ_db
]
GO
/****** Object: Table [dbo].[Laporan] Script Date: 05/06/2020 14:37:33 ******/
SET
ANSI_NULLS
ON
GO
SET
QUOTED_IDENTIFIER
ON
GO
SET
ANSI_PADDING
ON
GO
CREATE
TABLE
[
dbo
].[
Laporan
](
[
ID
Laporan
]
[
varchar
](
10
)
NOT
NULL
,
[
Judul
Laporan
]
[
varchar
](
50
)
NULL
,
CONSTRAINT
[
PK_Laporan
]
PRIMARY
KEY
CLUSTERED
(
[
ID
Laporan
]
ASC
)
WITH
(
PAD_INDEX
=
OFF
,
STATISTICS_NORECOMPUTE
=
OFF
,
IGNORE_DUP_KEY
=
OFF
,
ALLOW_ROW_LOCKS
=
ON
,
ALLOW_PAGE_LOCKS
=
ON
)
ON
[
PRIMARY
]
)
ON
[
PRIMARY
]
GO
SET
ANSI_PADDING
OFF
GO
/****** Object: Table [dbo].[Medicine group fact] Script Date: 05/06/2020 14:37:33 ******/
SET
ANSI_NULLS
ON
GO
SET
QUOTED_IDENTIFIER
ON
GO
SET
ANSI_PADDING
ON
GO
CREATE
TABLE
[
dbo
].[
Medicine
group
fact
](
[
Tipe_obat
]
[
varchar
](
10
)
NULL
,
[
ID
obat
]
[
varchar
](
10
)
NULL
,
[
ID
Laporan
]
[
varchar
](
10
)
NULL
,
[
persentasi
jumlah
obat
dalam
satu
rak
]
[
decimal
](
18
,
0
)
NULL
)
ON
[
PRIMARY
]
GO
SET
ANSI_PADDING
OFF
GO
/****** Object: Table [dbo].[Medicine Transaction Fact] Script Date: 05/06/2020 14:37:33 ******/
SET
ANSI_NULLS
ON
GO
SET
QUOTED_IDENTIFIER
ON
GO
SET
ANSI_PADDING
ON
GO
CREATE
TABLE
[
dbo
].[
Medicine
Transaction
Fact
](
[
ID
Waktu
]
[
datetime
]
NULL
,
[
ID
Obat
]
[
varchar
](
10
)
NULL
,
[
ID
Owner
]
[
varchar
](
10
)
NULL
,
[
ID
Laporan
]
[
varchar
](
10
)
NULL
,
[
Presentasi
transaksi
]
[
decimal
](
18
,
0
)
NULL
,
[
Jumlah
Transaksi
]
[
int
]
NULL
)
ON
[
PRIMARY
]
GO
SET
ANSI_PADDING
OFF
GO
/****** Object: Table [dbo].[Obat] Script Date: 05/06/2020 14:37:33 ******/
SET
ANSI_NULLS
ON
GO
SET
QUOTED_IDENTIFIER
ON
GO
SET
ANSI_PADDING
ON
GO
CREATE
TABLE
[
dbo
].[
Obat
](
[
ID
Obat
]
[
varchar
](
10
)
NOT
NULL
,
[
Tipe
Obat
]
[
varchar
](
10
)
NOT
NULL
,
[
Nama
Obat
]
[
varchar
](
15
)
NULL
,
[
Jumlah
Obat
]
[
int
]
NULL
,
[
Harga
Obat
]
[
bigint
]
NULL
,
CONSTRAINT
[
PK_Obat
]
PRIMARY
KEY
CLUSTERED
(
[
ID
Obat
]
ASC
)
WITH
(
PAD_INDEX
=
OFF
,
STATISTICS_NORECOMPUTE
=
OFF
,
IGNORE_DUP_KEY
=
OFF
,
ALLOW_ROW_LOCKS
=
ON
,
ALLOW_PAGE_LOCKS
=
ON
)
ON
[
PRIMARY
]
)
ON
[
PRIMARY
]
GO
SET
ANSI_PADDING
OFF
GO
/****** Object: Table [dbo].[Owner] Script Date: 05/06/2020 14:37:33 ******/
SET
ANSI_NULLS
ON
GO
SET
QUOTED_IDENTIFIER
ON
GO
SET
ANSI_PADDING
ON
GO
CREATE
TABLE
[
dbo
].[
Owner
](
[
ID
Owner
]
[
varchar
](
10
)
NOT
NULL
,
[
Nama
Owner
]
[
varchar
](
20
)
NULL
,
[
Address
]
[
varchar
](
20
)
NULL
,
[
Phone
number
]
[
numeric
](
18
,
0
)
NULL
,
CONSTRAINT
[
PK_Owner
]
PRIMARY
KEY
CLUSTERED
(
[
ID
Owner
]
ASC
)
WITH
(
PAD_INDEX
=
OFF
,
STATISTICS_NORECOMPUTE
=
OFF
,
IGNORE_DUP_KEY
=
OFF
,
ALLOW_ROW_LOCKS
=
ON
,
ALLOW_PAGE_LOCKS
=
ON
)
ON
[
PRIMARY
]
)
ON
[
PRIMARY
]
GO
SET
ANSI_PADDING
OFF
GO
/****** Object: Table [dbo].[Tipe Obat] Script Date: 05/06/2020 14:37:33 ******/
SET
ANSI_NULLS
ON
GO
SET
QUOTED_IDENTIFIER
ON
GO
SET
ANSI_PADDING
ON
GO
CREATE
TABLE
[
dbo
].[
Tipe
Obat
](
[
Tipe
Obat
]
[
varchar
](
15
)
NOT
NULL
,
[
Deskripsi
]
[
varchar
](
20
)
NULL
,
[
Status
]
[
varchar
](
10
)
NULL
,
CONSTRAINT
[
PK_Tipe
Obat
]
PRIMARY
KEY
CLUSTERED
(
[
Tipe
Obat
]
ASC
)
WITH
(
PAD_INDEX
=
OFF
,
STATISTICS_NORECOMPUTE
=
OFF
,
IGNORE_DUP_KEY
=
OFF
,
ALLOW_ROW_LOCKS
=
ON
,
ALLOW_PAGE_LOCKS
=
ON
)
ON
[
PRIMARY
]
)
ON
[
PRIMARY
]
GO
SET
ANSI_PADDING
OFF
GO
/****** Object: Table [dbo].[Waktu] Script Date: 05/06/2020 14:37:33 ******/
SET
ANSI_NULLS
ON
GO
SET
QUOTED_IDENTIFIER
ON
GO
SET
ANSI_PADDING
ON
GO
CREATE
TABLE
[
dbo
].[
Waktu
](
[
ID
Waktu
]
[
datetime
]
NOT
NULL
,
[
Date
]
[
int
]
NULL
,
[
Month
]
[
varchar
](
10
)
NULL
,
[
Year
]
[
int
]
NULL
,
CONSTRAINT
[
PK_Waktu
]
PRIMARY
KEY
CLUSTERED
(
[
ID
Waktu
]
ASC
)
WITH
(
PAD_INDEX
=
OFF
,
STATISTICS_NORECOMPUTE
=
OFF
,
IGNORE_DUP_KEY
=
OFF
,
ALLOW_ROW_LOCKS
=
ON
,
ALLOW_PAGE_LOCKS
=
ON
)
ON
[
PRIMARY
]
)
ON
[
PRIMARY
]
GO
SET
ANSI_PADDING
OFF
GO
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment