Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft SQL Server > Re: Use of havi...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 5 Topic 10994 of 11517
Post > Topic >>

Re: Use of having with additional select

by Hugo Kornelis <hugo@[EMAIL PROTECTED] > Apr 24, 2008 at 12:13 AM

On Wed, 23 Apr 2008 13:49:49 -0700 (PDT), Seguros Catatumbo wrote:

>
>> I can't test because I have no access to your tables and test data, but
>> try if the followiing does what you need:
>
>Table CLPF08  sample data and relevant field information:
>
>RAMO  POLIZA  CERVEH  CODCOB MONTO1
>31        6100265    2               1           20.15
>31        6100265    2               2           30.10
>31        6100265    2               3           15.02
>
>Table ARYSAUTO sample data and relevant field information:
>
>CERVEH    PRIMA
> 2                65.26
>
>My query shows a 0.01 monetary units of difference, since
>20.15+30.10+15.02 is not exactly 65.26

Hi Seguros,

I expect that this is a rounding issue. What data types are the various
columns?

>Thanks for your help, i hope that this information is enough to fix
>this

No, it isn't. As I already stated in my previous reply, I need to know
the table structure ===> as a CREATE TABLE statement <===. I failed to
include that you also need to include all the constraints, properties,
and indexes (you may omit irrelevant extra columns though).

I also need the sample data ===> as INSERT statements <===. And I need
to know the expected results based on the sample data given.

-- 
Hugo Kornelis, SQL Server MVP
My SQL Server blog: http://sqlblog.com/blogs/hugo_kornelis
 




 5 Posts in Topic:
Use of having with additional select
Seguros Catatumbo <seg  2008-04-23 12:10:34 
Re: Use of having with additional select
Hugo Kornelis <hugo@[E  2008-04-23 21:52:54 
Re: Use of having with additional select
Seguros Catatumbo <seg  2008-04-23 13:49:49 
Re: Use of having with additional select
Hugo Kornelis <hugo@[E  2008-04-24 00:13:58 
Re: Use of having with additional select
"Plamen Ratchev"  2008-04-23 22:14:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 1:22:45 CST 2008.