Book shop onlayn savdo markazi Sharti (biznes jarayoni qanday ishlaydi?)



Download 0,62 Mb.
bet2/3
Sana16.10.2022
Hajmi0,62 Mb.
#853482
1   2   3
Bog'liq
ER model

GO
ALTER TABLE dbo.bookType
ADD CONSTRAINT FK_booktitle_condition_conditionid FOREIGN KEY (conditionId) REFERENCES dbo.condition (conditionid)
GO

--
-- Create foreign key [FK_booktitle_language_languageid] on table [dbo].[bookType]
--
PRINT (N'Create foreign key [FK_booktitle_language_languageid] on table [dbo].[bookType]')
GO
ALTER TABLE dbo.bookType
ADD CONSTRAINT FK_booktitle_language_languageid FOREIGN KEY (languageId) REFERENCES dbo.language (languageid)
GO

--
-- Create foreign key [FK_booktitle_publisher_publisherid] on table [dbo].[bookType]
--
PRINT (N'Create foreign key [FK_booktitle_publisher_publisherid] on table [dbo].[bookType]')
GO
ALTER TABLE dbo.bookType
ADD CONSTRAINT FK_booktitle_publisher_publisherid FOREIGN KEY (publisherId) REFERENCES dbo.publisher (publisherid)
GO

--
-- Create table [dbo].[price]
--
PRINT (N'Create table [dbo].[price]')
GO
CREATE TABLE dbo.price (
costid int IDENTITY,
bookTypeId int NOT NULL DEFAULT (1),
conditionId int NOT NULL,
price money NOT NULL,
PRIMARY KEY CLUSTERED (costid)
)
ON [PRIMARY]
GO

--
-- Create foreign key [FK_price_bookType_bookTypeId] on table [dbo].[price]
--
PRINT (N'Create foreign key [FK_price_bookType_bookTypeId] on table [dbo].[price]')
GO
ALTER TABLE dbo.price
ADD CONSTRAINT FK_price_bookType_bookTypeId FOREIGN KEY (bookTypeId) REFERENCES dbo.bookType (bookTypeId)
GO

--
-- Create foreign key [FK_price_condition_conditionid] on table [dbo].[price]

Download 0,62 Mb.

Do'stlaringiz bilan baham:
1   2   3




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish