|
data base unlimited data base unlimited |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Home Up Autonumbering Correlation Temp tables Denormalisation Semi-dynamic UK Post Codes SQL7 SP2
|
SQL ProblemsProblem QueriesAs a way of focusing on both specific SQL techniques and keeping one's eyes open for alternatives, we look at a standard SQL problem and three possible resolutions: How do I find the latest status for each job and to whom it is assigned?You cannot use a standard group by statement if you want to see to whom the job is assigned. The rows we want are highlighted.
Three possible solutionsThe problem is how to get the max, min, latest item from a list with many candidates. Follow the links to see the relative merits of each solution. Copyright DBU 2000.
|
Location Map
Updates
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||