NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

/*
Kategori
Tedarikçi Firma
Ürün
Satış İşlemi
Sipariş
Çalışan
Müşteri
Kargo Firma
İl
Ülke
Siparişlerin detay

*/
Create Database SatisDB
Go
Use SatisDB
Go
Create Table Kategoriler
(

KategoriNO Int Identity, /*Identity Otomatik arttırmak için */
Kategoriadi Varchar(50) NOT NULL, /*Not NUll boş bırakılamaz Varchar yazı tipi*/
KategoriAciklamasi Varchar(100) NULL, /*Null boş bırakılabilir */

Constraint PK_Kategoriler_KategoriNO Primary Key(KategoriNo), /*Primary Key anahtar kelime */
Constraint AN_Kategoriler_Kategoriadi Unique(Kategoriadi), /*Birden fazla kategori tanımlaması yapılmaması için */




)
Go
Create Table Ulkeler (
Ulkeno Int Identity, /*Identity Otomatik arttırmak için */
Ulkeadi Varchar(75) NOT NULL,

Constraint PK_Ulkeler_Ulkeno Primary Key(Ulkeno), /*Primary Key anahtar kelime */

)

Go
Create Table İller (
ilno Int Identity, /*Identity Otomatik arttırmak için */
iladi Varchar(100) NOT NULL,
Ulkeno Int
Constraint PK_iller_ilno Primary Key(ilno) /*Primary Key anahtar kelime */
Contsoraint FK_iller_ulkeno Foreign Key(Ulkeno) References Ulkeler(Ulkeno) On Delete Cascade /* Ülke silince buda silinmesi için Cascade*/ /*Ulke no su ile birleştirme işlemini yapıyor FK*/
)
Go
Create Table İlceler (

ilceno Int Identity,
İlceadi Varchar (50) NOT NULL,
İlno Int,
Constraint PK_ilceler_ilceno Primary Key(ilceno),
Constraint FK_iller_Ulkeno Foreign Key(Ulkeno) References Ulkeler(Ulkeno),
)
Go
Create Table TedarikciFirmalar
(

FirmaNO Int Identity, /*Identity Otomatik arttırmak için */
Firmaadi Varchar(70) NOT NULL,
Firmaadresi INT NOT NULL,
Firmail INT NOT NULL,
Firmailce INT NOT NULL,


Constraint PK_TedarikciFirmalar_FirmaNo Primary Key(FirmaNO), /*Primary Key anahtar kelime */


)
Go
Create Table Urunler
(
UrunNo Int Identity, /*Identity Otomatik arttırmak için */
UrunAdi Varchar(50) NOT NULL,
UrunFiyati Money NOT NULL,
UrunStokMiktari Int NOT NULL,
UrunKategorisi Int,
UrunTedarikciFirmasi Int,
Constraint FK_Urunler_UrunKategorisi Foreign Key(UrunKategorisi) References Kategoriler(KategoriNo),
Constraint FK_Urunler_UrunTedarikciFirması Foreign Key(UrunTedarikciFirmasi)References TedarikciFirmalar(FirmaNo),
Constraint PK_Urunler_UrunNo Primary Key(UrunNo)


)
Go
Create Table Calisanlar (

CalisanNo Int Identity, /*Identity Otomatik arttırmak için */
CalisanAdi Varchar(25) NOT NULL,
CalisanSoyadi Varchar(25) NOT NULL,
CalisanTelefon Varchar (25) NOT NULL,
CalisanAdres Varchar (25) NOT NULL,
Calisanilce Varchar (25) NOT NULL,
CalisanAdresiil Varchar (25) NOT NULL,

Constraint FK_Calisanlar_Calisanilce Foreign Key(Calisanilce)References İller(ilceno),
Constraint FK_Calisanlar_CalisanAdresiil Foreign Key(CalisanAdresiil)References İller(ilno),
Constraint PK_Calisanlar_CalisanNo Primary Key(CalisanNo),


)
Go Create Table Musteriler (

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