Notes
Notes - notes.io |
name=enes_veri,
filename='c:veriotogaleri.mdf',
size=10mb,
filegrowth=5mb
)
create table arac(
arac_no int,
model nvarchar(20) not null,
marka nvarchar(20) not null,
plaka nvarchar(20) not null,
fiyat int,
)
alter table arac
alter column arac_no int not null
alter table arac
add constraint pkey
primary key (arac_no)
alter table arac
add constraint un_plaka
unique (plaka)
alter table arac
add constraint ch_plaka
check (plaka like '[0-9][0-9] [A-Z][A-Z] [0-9][0-9][0-9]')
create table musteri(
mno int,
mad nvarchar(20) not null,
msoyad nvarchar(20) not null,
madres nvarchar(50) not null,
mtel nvarchar(20) not null,
)
alter table musteri
alter column mno int not null
alter table musteri
add constraint mno_pkey
primary key (mno)
alter table musteri
add constraint un_tel
unique (mtel)
alter table musteri
add constraint ch_tel
check (mtel like '2[0-9][0-9][0-9]')
create table satis(
satno int,
mno int not null,
arac_no int not null,
sat_tarih nvarchar(20) not null,
sat_fiyat nvarchar(20) not null,
)
alter table satis
alter column satno int not null
alter table satis
add constraint satno_pkey
primary key (satno)
alter table satis
add constraint fk_mno
foreign key (mno)
references musteri(mno)
alter table satis
add constraint fk_arac
foreign key (arac_no)
references arac(arac_no)
create table alim(
alimno int,
mno int not null,
arac_no int not null,
alim_tarih nvarchar(20) not null,
alim_fiyat nvarchar(20) not null,
)
alter table alim
alter column alimno int not null
alter table alim
add constraint alim_pkey
primary key (alimno)
alter table alim
add constraint fk_alim_mno
foreign key (mno)
references musteri(mno)
alter table alim
add constraint fk_alim_arac
foreign key (arac_no)
references arac(arac_no)
insert into arac (arac_no,model,marka,plaka,fiyat) values ('08','BMW','MERCO','5 A 1','200')
insert into musteri (mno,mad,msoyad,madres,mtel) values ('13','HALİM','SONKURT','MERVE','3121')
insert into satis(satno,mno,arac_no,sat_tarih,sat_fiyat) values ('1','13','08','Mart','4500')
insert into alim (alimno,mno,arac_no,alim_tarih,alim_fiyat) values ('2','13','08','ŞUBAT','250')
|
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