NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

create database ODS
go
use ODS
go
create table Veli(
VeliTc varchar(11),
VeliAdi Varchar(50) not null,
VeliSoyadi varchar(50) not null,
constraint PK_Veli_VeliTc primary key (VeliTc),
constraint CK_Veli_VeliTc
check(VeliTc Like '[1-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]')
)

go

create table Ders(
DersKodu int identity,
DersAdi varchar(50) not null,
DersSaatSayisi smallint not null,
Constraint PK_Ders_DersKodu primary key (DersKodu)
)

go

create table OkulTurleri(
OkulTurno int identity,
OkulTurAdi varchar(50) not null,
constraint PK_OkulTurleri_OkulTurno primary key(OkulTurno),
constraint FK_OkulTurleri_OkulTurAdi unique(OkulTurAdi)
)

go

create table OgretmenBranslari(
BransNo int identity,
BransAdi varchar(50) not null,
constraint PK_OgretmenBranslari_BransNo primary key (BransNo),
constraint FK_OgretmenBranslari_BransAdi unique(BransAdi)
)

go

create table Okul(
OkulNo int identity,
OkulAdi varchar(50) not null,
OkulTürü int,
constraint PK_Okul_OkulNo primary key (OkulNo),
constraint FK_Okul_OkulTürü foreign key (OkulTürü) references OkulTurleri(OkulTurno)
)

go

create table Ogretmen(
OgretmenTc varchar(11) not null,
OgretmenAdi varchar(50) not null,
OgretmenSoyadi varchar(50) not null,
OgretmenBransi int,
IseBaslamaTarihi date,
DogumTarihi date,
YoneticiMi bit default 0,
constraint PK_Ogretmen_OgretmenTc primary key (OgretmenTc),
constraint CK_Ogretmen_OgretmenTc
check(OgretmenTc Like '[1-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'),
constraint FK_Ogretmen_OgretmenBransi foreign key(OgretmenBransi) references OgretmenBranslari(BransNo)
)

go

create table Sinif(
SinifNo int identity,
SinifAdi varchar(50),
SinifOgretmeni varchar(11),
constraint PK_Sinif_SinifNo primary key (SinifNo),
constraint FK_Sinif_SinifOgretmeni foreign key (SinifOgretmeni) references Ogretmen(OgretmenTc)
)

go

create table Ogrenci(
OgrenciTc varchar(11),
OgrenciNo varchar(15) not null,
OgrenciAdiSoyadi varchar(60),
OgrenciSinifi int,
OgrenciVeli varchar(11),
constraint PK_Ogrenci_OgrenciTc primary key (OgrenciTc),
constraint FK_Ogrenci_OgrenciNo foreign key(OgrenciSinifi) references Sinif(SinifNo),
constraint FK_OgrenciVeli foreign key (OgrenciVeli) references Veli(VeliTc),
constraint CK_Ogrenci_OgrenciTc
check (OgrenciTc Like '[1-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'),
)

go

create table DersSinif(
OkulNo int,
DersNo int,
SinifNo int,
OgretmenTc varchar(11),
constraint FK_DersSinif_OkulNo foreign key(OkulNo) references Okul(OkulNo),
constraint FK_DersSinif_DersNo foreign key (DersNo) references Ders(DersKodu),
constraint FK_DersSinif_SinifNo foreign key (SinifNo) references Sinif(SinifNo),
constraint FK_DersSinif_OgretmenTc foreign key (OgretmenTc) references Ogretmen(OgretmenTc)
)

go

create table Puan(
PuanNo int identity,
PuaniVerenTc varchar(11),
DegerlendirilenOgretmenTc varchar(11),
PuanVerilmeTarihi datetime default getdate(),
Puan smallint,
constraint PK_Puan_PuanNo primary key (PuanNo),
constraint FK_Puan_PuaniVerenTcYonetici foreign key (PuaniVerenTc) references Ogretmen(OgretmenTc),
constraint FK_Puan_PuaniVerenTcVeli foreign key (PuaniVerenTc) references Veli(VeliTc),
constraint FK_Puan_PuaniVerenTcOgrenci foreign key (PuaniVerenTc) references Ogrenci(OgrenciTc),
constraint FK_Puan_DegerlendirilenOgretmenTc foreign key (DegerlendirilenOgretmenTc)
references Ogretmen(OgretmenTc)
)
     
 
what is notes.io
 

Notes.io is a web-based application for 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 12 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.