NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

create database Eczane
go
use Eczane
go
create table Firmalar ( T_Id integer not null identity(1,1) primary key,
T_Adi nvarchar(50),
Yetkili nvarchar(50),
Adres nvarchar(max),
Tel varchar(20))
go
Create Table Branslar(BransId int primary key, BransAd varchar(20))
go
Create Table Hekimler (HekimNo int primary key not null identity(1,1),
HekimAd nvarchar(20) not null,
Cinsiyet char(5),
BransId int FOREIGN KEY REFERENCES Branslar(BransId) not null,
KAdi nvarchar(max))

/* Fk Verme*/
--alter table Hekimler add Constraint Fk_BransHekimler Foreign key(BransId) references Branslar(BransId)
-- Primary Verme
--alter table Hekimler add constraint pk_Ozellikgi Primary key (HekimNo)

Create Table Etkiler(EtkiNo int primary key not null,
EtkiAdi nvarchar(30))
go
Create Table Turler(TurId int primary key identity(1,1), TurAdi nvarchar(25))
go

Create Table İlaclar(BarkodNo int primary key identity,
İlacAdi nvarchar(50),
U_Tarihi nvarchar(25),
SKT nvarChar(25),
Miktar int,
Fiyat decimal(18,2),
YasGrubu nvarchar(50),
EtkiNo int foreign key references Etkiler(EtkiNo),
TurId int foreign key references Turler(TurId),
T_Id int foreign key references Firmalar(T_Id)

)
go
Create table Stoklar (StokId int not null,
A_Tarihi nvarchar(20),
S_Tarih nvarchar(20),
Miktar int,
BarkodNo int foreign key References İlaclar(BarkodNo))
go
alter table Stoklar add constraint Pk_Ozelik primary key (StokId)
go

Create table Receteler (R_No int not null,
Tarih nvarchar(20),
Miktar int,
Tutar decimal(18,2),
R_Turu int,
HekimlerId int,
Musteri_Id int,
BarkodNo int,
CalisnaNo int
)
go
-- foreign key Verilecek
create table Musteriler (Musteri_Id int primary key identity(1,1),
Tc_Kimlik nvarchar(20),
Isim nvarchar(20),
DTarihi nvarchar(20),
Yas int,
Adres nvarchar(max),
Tel nvarchar(20))
go
Create table Calisanlar(CalisanId int primary key identity(1,1),
Isim nvarchar(20),
Maas Decimal(18,2),
I_G_Tarihi nvarchar(20),
Yas int,
Tel nvarchar(20),
Adres nvarchar(max))
go


-- İlişkilendirildi.
alter table Receteler add constraint fk_ReceteHekimler foreign key (HekimlerId) references Hekimler(HekimNo)
go
alter table Receteler add constraint fk_Receteİlaclar foreign key (BarkodNo) references İlaclar(BarkodNo)
go
alter table Receteler add constraint fk_RecetelerCalisalar foreign key (CalisnaNo) references Calisanlar(CalisanId)
go
insert into Branslar values (1,'Goz Hastaliklari')
go
insert into Branslar(BransId,BransAd) values (2,'Eklem Hastalıkları')
     
 
what is notes.io
 

Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 14 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.