How do I return a value of an entity in a table that is less than but closest to the value in another table for each element in the last table in SQL?
问题 I have two tables in MS Access and I am trying to add a field for one of those tables that tells which record from another table has a value that is less than the first field's value, but comes the closest? I have this query so far (just a select statement to test output and not alter existing tables), but it lists all values that are less than the querying value: SELECT JavaClassFileList.ClassFile, ModuleList.Module FROM JavaClassFileList, ModuleList WHERE ModuleList.Order<JavaClassFileList