WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Database Discussion Forum This is the place to find help resolving those nagging questions you have about implementing and using all kinds of databases. Need help writing a query? Need an opinion on Oracle? Post here!

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-17-2004, 01:25 PM
WebProWorld Pro
 

Join Date: Mar 2004
Posts: 105
sajdlz RepRank 0
Default Learning SQL.question about modulo operator..

This is the exact quote from my book...
Quote:
Modulo returns the integer remainder of a division.
Here are two examples:
5 % 2 = 1
6 % 2 = 0
The modulo operator does not work with data types that have decimals, such as Real or
Number.
It took me a little while to first figure out the function (math is not my strong point) but my question is how often does the need to use this particular operator come up? It seems to me that it wouldn't be useful in very many situations but then again.. I am still learning:)

Thanks in advance to any who can shed some light!
__________________
Stacy-Lead Designer

Please review my site
Reply With Quote
  #2 (permalink)  
Old 03-17-2004, 06:40 PM
WebProWorld Pro
 

Join Date: Jul 2003
Location: Chilliwack, BC Canada
Posts: 190
blastradius RepRank 0
Default

The truth is you could use it a lot of or never again. It really comes down to the type of logic that makes sense to you. As well as the type of programming you are doing.

You can really get a way with using very little math if you have too. My suggestion is forget the syntax of how to do it but remember that you can do it. That way when you need it you can look up the syntax and use it. But who know your logic may always find another way to do it.
__________________
http://www.freshfire.ca
Reply With Quote
  #3 (permalink)  
Old 03-17-2004, 06:46 PM
WebProWorld Pro
 

Join Date: Mar 2004
Posts: 105
sajdlz RepRank 0
Default

Thanks for the reply... I'll try to remember that it is there but don't think I will use it that much.. who knows though.
__________________
Stacy-Lead Designer

Please review my site
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0