Performans olarak bir sey diyemem ama best practice olarak kotu bir yaklasim olur.
Spor tablom dedigini eger maclarin tablosu ise soyle yapabilirsin;
events, event_odds, odds dye tablolarin olur.
odds tablosuna iy, ms, alt, ust gibi degerleri kayit edersin.
event_odds tablosuna ise event_id, odds_id, value seklinde kayit edip temiz bir sekilde tutabilirsin.
hocam demek istediğinizi tam olarak anlıyamadım spor neredeyse hepsi maçların oranları oran olmayan sadece tarih saat bayrak lig mackodu gibi 3-5 sutun geri kalanı tamamen oran sutunu aşağıda spor tablosundaki sutunların bir kısmını yazdım (toplam 126 sutun var) bu durumda dediğiniz mantık nasıl işliyecek?
id
hafta
mackodu
tarih
saat
bayrak
lig
mbs
sms1
sms2
evsahibi
misafir
ms1
msx
ms2
iy1
iyx
iy2
iy05galt
iy05gust
iy15galt
iy15gust
iycs1x
iycs12
iycsx2
ikiy1
ikiyx
ikiy2
tek
cift
kgvar
kgyok
15golalt
15golust
alt25
ust25
35golalt
35golust
bxc
b2c
x2c
sifir1gol
23gol
45gol
6gol
birdenbir
birdensifir
birdeniki
sifirdanbir
sifirdansifir
sifirdaniki
ikidenbir
ikidensifir
ikideniki
skor1Ms10
skor1Ms20
skor1Ms30
skor1Ms40
skor1Ms50
skor1Ms21
skor1Ms31
skor1Ms41
skor1Ms51
skor1Ms32
skor1Ms42
skor1Ms52
skor1Ms43
skor1Ms53
skor1Ms54
skorxMs00
skorxMs11
skorxMs22
skorxMs33
skorxMs44
skorxMs55
skor2Ms01
skor2Ms02
skor2Ms03
skor2Ms04
skor2Ms05
skor2Ms12
skor2Ms13
skor2Ms14
skor2Ms15
skor2Ms23
skor2Ms24
skor2Ms25
skor2Ms34
skor2Ms35
skor2Ms45
Oran isimlerini ayrı bir tabloada tutarak maç ile oran tablosu arasında pivot tablo kullanıp yapmanız en doğru yol olacaktır hocam.
Yani sütun olarak tutmaktansa satır olarak kaydedeceksiniz ve ilişkisel veritabanının yaratılma amacına uygun şekilde kullanmış olacaksınız.
YILMAZ isimli arkadaşın verdiği örnekte olduğu gibi.
hocam spor tablom zaten nerededeyse tamamı oranlardan oluşuyor, pivot tablo nedir hocam ?