Notes
Notes - notes.io |
use okul;
create table ogrenci(
ogrno int primary key,
ad varchar(20),
soyad varchar(20),
cinsiyet bit,
bno int);
create table bolum(
bnum int,
bad varchar(30),
)
create table Dersal(ogrno int,
dno int,
dnot tinyint,
);
create table Ders(
Dkod int,
Dad varchar(30))
insert into ogrenci(ogrno,ad,soyad,cinsiyet,bno) values(4,'senat','sinüs',0,1);
insert into Ders(Dkod,Dad) values(2,'Veritabanı')
alter view erkekler as select ad,soyad,bno,ogrno from ogrenci where cinsiyet=1 with check option
select * from erkekler
insert into erkekler values('a','b',45,6,0)
select * from ogrenci
create view erkekler1 as select ad as isim ,soyad soyisim
from ogrenci where cinsiyet=1
select * from erkekler1
create view erkekler2 as (isim,soyisim) as select ad,soyad from ogrenci where cinsiyet=1
create view ogrbolum as select o.ad,o.soyad,b.bad
from ogrenci o
inner join bolum b on(o.bno=b.bnum)
select * from ogrbolum
select o.ad,o.soyad,d.Dad,da.dnot
from ogrenci o
inner join dersal da on(da.ogrno=o.ogrno)
inner join ders d on(d.dkod=da.dno)
where Dad='Veritabanı' and dnot>(select avg(dnot)
from Dersal where dno=(select dkod from ders where dad='veritabanı'))
insert into Dersal(ogrno,dno,dnot) values(2,1,100)
select * from ogrenci
select * from Ders
select * from bolum
select o.adi,o.soyadi , d.ders_adi,da.ders_notu,ortnotlar.ortnot
from ogrenci o
inner join ders_al da on(o.ogr_no=da.ogr_no)
inner join ders d on(da.ders_kod=d.ders_kod)
inner join ortnotlar on (ortnotlar.d_kod=d.ders_kod)
where ders_notu>ortnot
bunlar create view mantığının kullanıldığı en önemli noktalar
create view ortnotlar (d_kod,ortnot) as
select ders_kod,avg (ders_notu)
from ders_al
group by ders_kod
![]() |
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
