Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 1234»»»

SOME Expand / Collapse
Author
Message
Posted Tuesday, March 20, 2012 10:31 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Today @ 4:16 PM
Points: 31,284, Visits: 15,748
Comments posted to this topic are about the item SOME






Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #1269998
Posted Tuesday, March 20, 2012 11:44 PM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Wednesday, May 9, 2012 3:46 AM
Points: 2,223, Visits: 177
Nice and Easy Question. Thanks
Post #1270006
Posted Tuesday, March 20, 2012 11:57 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 11:18 AM
Points: 13,545, Visits: 11,359
Nice question, thanks.
Never use ANY or SOME though




How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1270010
Posted Wednesday, March 21, 2012 2:15 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 1:19 AM
Points: 2,592, Visits: 2,446
Is there difference between SOME and ANY?
Can someone explain?
Post #1270043
Posted Wednesday, March 21, 2012 2:26 AM
Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Friday, May 9, 2014 12:47 AM
Points: 3,448, Visits: 4,407
Carlo Romagnano (3/21/2012)
Is there difference between SOME and ANY?
Can someone explain?

There is no difference. http://msdn.microsoft.com/en-us/library/ms175064.aspx:
SOME and ANY are equivalent.
Post #1270046
Posted Wednesday, March 21, 2012 2:41 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Today @ 2:51 AM
Points: 3,076, Visits: 3,194
Hi all,
Interesting questions...also the following query:

SELECT id
FROM dbo.SalesDates s
WHERE '2012/1/03' IN (SELECT saledate FROM SalesDates);

is equivalent to the one given in the QotD. If you try for the example dates, it produces the same results as with ANY and SOME.
(http://msdn.microsoft.com/en-us/library/ms177682.aspx)




Igor Micev,
SQL Server developer at Seavus
www.seavus.com
Post #1270049
Posted Wednesday, March 21, 2012 2:41 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Today @ 2:51 AM
Points: 3,076, Visits: 3,194
Hi all,
Interesting questions...also the following query:

SELECT id
FROM dbo.SalesDates s
WHERE '2012/1/03' IN (SELECT saledate FROM SalesDates);

is equivalent to the one given in the QotD. If you try for the example dates, it produces the same results as with ANY and SOME.
(http://msdn.microsoft.com/en-us/library/ms177682.aspx)




Igor Micev,
SQL Server developer at Seavus
www.seavus.com
Post #1270050
Posted Wednesday, March 21, 2012 2:41 AM


Hall of Fame

Hall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of FameHall of Fame

Group: General Forum Members
Last Login: Today @ 2:51 AM
Points: 3,076, Visits: 3,194
Hi all,
Interesting questions...also the following query:

SELECT id
FROM dbo.SalesDates s
WHERE '2012/1/03' IN (SELECT saledate FROM SalesDates);

is equivalent to the one given in the QotD. If you try for the example dates, it produces the same results as with ANY and SOME.
(http://msdn.microsoft.com/en-us/library/ms177682.aspx)




Igor Micev,
SQL Server developer at Seavus
www.seavus.com
Post #1270051
Posted Wednesday, March 21, 2012 2:55 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Today @ 8:37 AM
Points: 907, Visits: 1,302
Good question. I have never used ANY or SOME in queries so have learned something once again.
Post #1270054
Posted Wednesday, March 21, 2012 3:54 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Today @ 3:29 AM
Points: 1,372, Visits: 509
The good thing in ANY or SOME is that you can make all kind of comparison not only equality or inequality.
Post #1270076
« Prev Topic | Next Topic »

Add to briefcase 1234»»»

Permissions Expand / Collapse