Smart questions
Smart answers
Smart people
Join Tek-Tips Forums
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

seemap (Programmer) (OP)
13 Feb 08 10:29
1. I have one query subject

Column name:

Line of Business

Segment Name

Product Name

Product Region Name

State Code

Reporting Period

PCRV (Calculated column)

 

I have set determinant in this query subject as below:

Determinant, Key, Group By, Uniquely identifies, Attributes.
 
Line of Business, Line of Business, Yes, No, None  
  
Reporting Period, Reporting Period, Yes, No, None
  
Product Region Name,Product Region Name, Yes, No, All of the above
 

2. I have joined this query subject to another query subject 1:1 join on Line of Business, Reporting Period and Product Region Name.

3. I then created a third query subject(view) adding all the columns from the first query subject and some other attributes and calculated columns from the second query subject.

4. The third query subject breaks giving the error message as

BMT-MD-0003 UDA-SQL-0460 A general exception has occurred during local processing.
UDA-EE-0094 The operation "subtract" is invalid for the following combination of data types: "varchar" and "integer"

RQP-DEF-0177 An error occurred while performing operation 'sqlPrepareWithOptions' status='-126'.
UDA-SQL-0460 A general exception has occurred during local processing.
UDA-EE-0094 The operation "subtract" is invalid for the following combination of data types: "varchar" and "integer"


5. However instead of adding all the columns from the first query subject if I only add ‘Line of Business’, ‘Reporting Period’, ‘Product Region Name’ and ‘PCRV(Fact)’ along with columns from second fact table then it works fine.


6. But I also need to add other columns from the first query subject.

 
How do I achieve that?
 
Any help highly appreciated.

Thanks

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close