6
ile tablosunun son 2 kayıtlarını almak
Ben 3 MySQL tabloları i sonucunu sahip olmak istiyorum (sipariş, kamp, kullanıcı) feryat değerleriMySQL 3 tablolar
order_table
ID camp_id orderDate message
1 1 2015-01-01 ok
2 1 2015-02-01 ok
3 2 2015-03-01 not ok
4 3 2015-01-01 not ok
5 1 2015-04-01 not ok
6 2 2015-01-01 ok
7 3 2015-07-01 not ok
camp_table
camp_id camp_uid camp name
1 10 first camp
2 11 second camp
3 12 third camp
4 10 forth camp
user_table
uid uname
10 abc
11 xyz
12 wrt
feryat
uname,camp name,message
olarak
OrderDate tarafından bugün sipariş için order_table gelen her kullanıcının son 2 kayıtları için katılmak istiyorum se masaları e mesajı camp_table gelen ve order_table den user_table ve kamp nam gelen Uname olması. sql sorgusu aşağıdaki Teşekkür
Lütfen sorunuzu daha ayrıntılı olarak düzenleyin ve açıklayın. – FluxCoder
Sadece sipariş masasından son 2 rekorunuz olsun ve bize katılmak ister misiniz? –
Bkz. Http://meta.stackoverflow.com/questions/333952/why-should-i-provide-an-mcve-for-what-seems-to-me-to-be-a-very-simple-sql- – Strawberry