Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Server MOD function?

Status
Not open for further replies.

icemel

MIS
Oct 17, 2005
463
US
Doesn't SQL Server have a mod function?

If not, what else is there?

Thanks
 
Use % for mod

Select 10 % 3


-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
What do you mean by MOD? If you mean modulo, then it's the % sign. Example: 5 % 2 = 1

-SQLBill

Posting advice: FAQ481-4875
 


[tt] [tongue][/tt]

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Lost the race again........

But I'm not sure the poster really meant modulo.

-SQLBill

Posting advice: FAQ481-4875
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top