dbTalk Databases Forums  

Re: Force SQL result fields to integer?

comp.databases.paradox comp.databases.paradox


Discuss Re: Force SQL result fields to integer? in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Karl Perry
 
Posts: n/a

Default Re: Force SQL result fields to integer? - 07-04-2003 , 01:29 PM







"Larry DiGiovanni" <larryd (AT) digicoinc (DOT) com> wrote

Quote:
Karl Perry wrote:

Looks like I'll have to use CAST(). You're right, it should
return an Int, but it's returning an integer.

What are you looking at? An Int and an integer are the same thing, aren't
they?
Sorry - I mistyped. I meant to type "numeric" above but typed "integer"
instead.

I queried the same table several times using different date criteria:

SELECT ClientID, count(access) AS JuneTots (MayTots, etc.) FROM MyTable
WHERE EntryDate >= "06/01/2003" AND EntryDate <= "06/30/2003"

Then I queried for May, then for April, etc.

Sometimes the resulting column in the answer table was an integer, other
times it was a numeric.

When I later tried to combine things back together, I had problems and ended
up having to manually restructure all of the columns to the same type. It
was quite a hassle.

Karl




Reply With Quote
Reply




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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.