NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

Go
Create Table Bolgeler
(
BolgeNo int identity,
BolgeAdi nvarchar(100),
BolgeDurum bit,
Constraint PK_Bölgeler_BölgeNo Primary Key(BolgeNo)


)
GO
Create Table iller
(
PlakaKodu int,
IlAdı nvarchar(100),
TelefonKodu varchar(5),
IlDurum bit,
BolgeNo int,
Constraint PK_iller_PlakaKodu Primary Key(PlakaKodu),
Constraint AN_iller_IlAdı Unique(IlAdı), -- benzersiz yapar
Constraint AN_iller_TelefonKodu Unique(TelefonKodu),
--constraint FK_suankitablo_baglanacaktablodid foreign key(Baglanacaktabloid) references baglanıcaktablo(tabloid)
Constraint FK_iller_BolgeNo Foreign Key (BolgeNo) References Bolgeler(BolgeNo)

)
GO
Create Table Urunler
(
UrunNo int ,
UrunAdi varchar(100),

Constraint PK_Ürünler_UrunNo Primary Key(UrunNo),
Constraint AN_Ürünler_UrunAdi Unique(UrunAdi) -- benzersiz yapar

)
Go
Create Table UrunDonemleri
(
DonemNo int ,
DonemTanimi varchar(50),
DonemDurum bit,
Constraint PK_UrunDonemleri_DonemNo Primary Key(DonemNo),
Constraint AN_UrunDonemleri_DonemTanimi Unique(DonemTanimi) -- benzersiz yapar

)
Go
Create Table ilÜrünleri
(
Miktar int,
DönemNo int,
PlakaKodu int,
constraint FK_ilUrunleri_DonemNo Foreign key (DonemNo) References UrunDonemleri (DönemNo),
constraint FK_ilÜrunleri_PlakaKodu Foreign key (PlakaKodu) References iller (PlakaKodu)


)

GO
Create Proc SP_BolgeEkle
@BolgeAdi varchar(100),
@BolgeDurum bit
AS

insert into Bolgeler (BolgeAdi,BolgeDurum) values (@BolgeAdi,@BolgeDurum)

exec SP_BolgeEkle 'Marmara Bölgesi','1'
exec SP_BolgeEkle 'Ege Bölgesi','1'
exec SP_BolgeEkle 'Akdeniz Bölgesi','1'
exec SP_BolgeEkle 'İç Anadolu Bölgesi','1'
exec SP_BolgeEkle 'Karadeniz Bölgesi','1'
exec SP_BolgeEkle 'Doğu Anadolu Bölgesi','1'
exec SP_BolgeEkle 'Güney Doğu Anadolu Bölgesi','1'


Go
Create Proc SP_IlEkle
@PlakaKod int,
@IlAdi varchar(100),
@TelefonKodu varchar(5),
@BolgeNo int
as
begin
insert into iller (PlakaKodu,IlAdı,TelefonKodu,BolgeNo) Values (@PlakaKod,@IlAdi,@TelefonKodu,@BolgeNo)
end

exec SP_IlEkle 17,'Çanakkale',286,1
exec SP_IlEkle 35,'İzmir',232,2
exec SP_IlEkle 7,'Antalya',242,3
exec SP_IlEkle 42,'Konya',332,4
exec SP_IlEkle 52,'Ordu',452,5
exec SP_IlEkle 25,'Erzurum',442,6
exec SP_IlEkle 63,'Şanlıurfa',414,7

Go
Create Proc SP_DonemEkle
@DonemNo int,
@DonemTanim varchar(50),
@DonemDurum bit
as
begin
insert into UrunDonemleri (DonemNo,DonemTanimi,DonemDurum) Values (@DonemNo,@DonemTanim,@DonemDurum)
end
Exec SP_DonemEkle 2010,'2010',1
Exec SP_DonemEkle 2011,'2011',1
Exec SP_DonemEkle 2012,'2012',1
Exec SP_DonemEkle 2013,'2013',1
Exec SP_DonemEkle 2014,'2014',1
Exec SP_DonemEkle 2015,'2015',1
Exec SP_DonemEkle 2016,'2016',1

Go
Create Proc SP_UrunEkle

as
begin

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