Hocam öğrenci bilgileri tablosunda :
bilgiler tablosu :
id
ogrenci_no
ad
soyad
memleket
not tablosu :
id
ogrenci_no
ders_adi
vize
final
İki tablom bu hocam. Burada id ler birincil anahtar. ogrenci_no yu birbiri ile ilişkilendrmem gerekiyor sanırım istediğimin olması için.
Hocam appsevr kullanıyorum onda öyle bi bölüm yok malesef :/
Select ad , soyad , memleket ,(Select ogrencino_no from not_tablosu as not where not.ogrenci_no = bilgi.ogrenci_no) as ogrencino,(Select ders_adi from not_tablosu as not2 where not2.ogrenci_no = bilgi.ogrenci_no) as ders_adi,(Select vize from not_tablosu as not3 where not3.ogrenci_no = bilgi.ogrenci_no) as vize,(Select final from not_tablosu as not4 where not4.ogrenci_no = bilgi.ogrenci_no) as final from bilgiler as bilgi
Mantık bu.. Bu şekilde ilişkilendirebilirsin her iki tabloyu.