NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

Create Database okul
Go
Use okul
Go
Create Table ogrenciler --kategori
(
OgrenciiD int identity,
OgrenciAdi Varchar(100),
Ogrencisoyadi Varchar(100),
TcKimlik varchar(11),
sinifid int, veliid int, okulid int, dersid int,
ogrno varchar(20),

Constraint PK_ogrenciler_Ogrenciid Primary Key(Ogrenciid),
Constraint AN_ogrenciler_TcKimlik Unique(TcKimlik),
Constraint CK_ogrenciler_TcKimlik check (TcKimlik LIKE '[1-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'),
Constraint AN_ogrenciler_ogrno Unique(ogrno),


)
Go
Create Table veliler --urunler
(
veliid int identity,
veliad Varchar(100),
velisoyad Varchar(100),
velitc Varchar(11),
ogreid int,
ogrid int,

Constraint PK_veliler_veliid
Primary Key(veliid),
Constraint FK_veliler_ogrid
Foreign Key(ogrid)
References ogrenciler(ogrenciid), --ogrenciler tablosuna bagladık
Constraint AN_veliler_velitc Unique(velitc),
Constraint CK_veliler_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 ogretmenler --siparisler
(
ogreid int identity,
ogread Varchar(150),
ogresoyad Varchar(100),
SiparisiVeren Varchar(100),
ogredogumtarih date,
bransid int,
veliid int,
ogrid int,
okulid int,
sinifid int,
Constraint PK_ogretmenler_ogreid Primary Key(ogreid),
Constraint FK_ogretmenler_ogreid Foreign Key(ogreid) References veliler(veliid),



)
Go
Create Table siniflar --SiparisDetay
(
sinifid int identity,
sinifad Varchar (100),
ogrid int,
okulid int,

Constraint PK_siniflar_sinifid Primary Key(sinifid),
Constraint FK_siniflar_veliid Foreign Key(veliid) References veliler(veliid),
Constraint FK_siniflar_ogrid Foreign Key(ogrid) References ogrenciler(ogrid),
Constraint FK_siniflar_ogreid Foreign Key(ogreid) References ogretmenler(ogreid)
)
go
create table okullar
( okulid int identity ,
okulad varchar(50),
okultur varchar(50),
ogrid int,
ogreid int,
constraint PK_okullar_okulid primary key(okulid),
Constraint FK_okullar_ogrid Foreign Key(ogrid) References ogrenciler(ogrid),
Constraint FK_okullar_ogreid Foreign Key(ogreid) References ogretmenler(ogreid)
)

Go
Create Table dersler --TedarikciFirmalar
(
dersid int identity,
dersad Varchar (150),
derssaati int,
okulid int,
sinifid int,
ogreid int,
ogrid int

Constraint PK_dersler_derslerid Primary Key(dersid),
Constraint FK_dersler_velilerid Foreign Key(veliid) References veliler(veliid),
Constraint FK_dersler_ogrencilerid Foreign Key(ogrid) References ogrenciler(ogrid),
Constraint FK_dersler_ogretmenlerid Foreign Key(ogreid) References ogretmenler(ogreid),
Constraint FK_dersler_siniflarid Foreign Key(sinifid) References siniflar(sinifid),
Constraint FK_dersler_okullarid Foreign Key(okulid) References okullar(okulid)


)
go
create table puanlar
(
puanid int identity,
dersid int,
okulid int,
ogrid int,
ogreid int,
veliid int,

constraint PK_puanlar_puanid primary key (puanid),

Constraint FK_puanlar_velilerid Foreign Key(veliid) References veliler(veliid),
Constraint FK_puanlar_ogrencilerid Foreign Key(ogrid) References ogrenciler(ogrid),
Constraint FK_puanlar_ogretmenlerid Foreign Key(ogreid) References ogretmenler(ogreid),
Constraint FK_puanlar_siniflarid Foreign Key(sinifid) References siniflar(sinifid),
Constraint FK_puanlar_okullarid Foreign Key(okulid) References okullar(okulid)

)
     
 
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.