Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 SELECT TOP 1

Author  Topic 

jasper_smith
SQL Server MVP & SQLTeam MVY

846 Posts

Posted - 2002-06-07 : 09:47:46
I'm having trouble with the following query

SELECT TOP 1 Player FROM World_Cup.England..Team
WHERE Score in ('England 1','Argentina 0')

I keep getting 11 results - it seems to be retuning the whole Team ??



[Apologies to any Americans who have no idea what I'm talking about]

setbasedisthetruepath
Used SQL Salesman

992 Posts

Posted - 2002-06-07 : 10:13:38
As an American and a soccer player since age 4 I feel ashamed that most of us don't follow the World Cup. Though personally proud that we took one against Portugal!

setBasedIsTheTruepath
<O>
Go to Top of Page

AndrewMurphy
Master Smack Fu Yak Hacker

2916 Posts

Posted - 2002-06-07 : 12:01:26
no wonder you are having trouble with that query....it only works once in a blue moon.....


It doesn't have a transaction log to prove that it can be replicated across multiple instances of the server named "opposition".


and as for "retuning the whole Team"...(your words not mine)...that's exactly what they needed since that Dietmar Hamman goal in Wembley...a full overhall....


well done on the result....but don't believe that it's over yet...not until the fat Ma(ra)dona sings....



Come on the Boys in Green!

Go to Top of Page
   

- Advertisement -