fluffy wrote:By the way, what the hell are first and second normal form? I've never understood why the (to me) dead-obvious concept of normalized indices is called third normal form.

Generally, they're compromises for the sake of performance. Every 'real world' database I've ever worked with required some kind of denormalization to keep the users happy. (And ya, I cringe every time I have to do it.)
LMNOP wrote:That depends on whether you interpret the bottom of the list as "repulsive" or "unquestionably honest".
Heh, for some reason that reminded me of the FM's comment in
this fight. "No, mom, you
can't vote for me. It wouldn't be honest."
TheHipCola wrote:With the samples, even I can look up stuff....
I added another sample that'll help you get at the type of data you referenced in a previous post, specifically: how one fighter fared against another.
Code: Select all
SELECT
sf1.fightTitle,
sf1.artistName as Fighter1,
sf1.VoteCount as Fighter1Votes,
sf1.VoteRank as Fighter1Rank,
sf2.artistName as Fighter2,
sf2.VoteCount as Fighter2Votes,
sf2.VoteRank as Fighter2Rank
FROM
songFightData sf1
join songFightData sf2 on sf1.fightid = sf2.fightid
WHERE
sf1.artistName = 'deshead'
and sf2.artistName LIKE %hostess%'
That's some advanced SQL right there. Add some grouping and a HAVING clause, and you can put it on your resume.