I have a table named sessions setup like this:
#################################
# set # timestamp # session #
#################################
# 5 # 1306458002 # 11 #
# 3 # 1306473234 # 6 #
# 3 # 1305241207 # 3 #
...
#################################
I have a second table named events setup like this:
#######################
# session # code #
#######################
# 6 # 45 #
# 6 # -10 #
# 6 # 0 #
# 3 # 7 #
...
#######################
I need to select the latest session of a given set, then join the associated event codes on top of that one record. Most importantly though, I just need this information from suppling a set (here the set is 3):
########
# code #
########
# 45 #
# -10 #
# 0 #
########
set? OR u want allcodeof that latestset?