SQL – svårt till MAX tydligen

Av Vidde

Det ses tydligen som fullt normalt av vissa, men smått underligt av andra att drömma SQL-kommandon. Nu drömde jag väl egentligen inte, men igår när jag skulle somna så lixom kom det till mig. DISTINCT! Det skulle ju lösa alla mina problem. Sömndrucken klottrade jag ner en SQL-sats (jag hade ett block bredvid sängen! Tror…

Messing around with mySQL

Av Vidde

I have been occupying myself with some querys today. I’ve been having trouble with my INNER JOINs. I want to check the average of one column, at the same time as counting entries of that column AND counting entries in another table with the same identifying number… And, and getting a name from a third…