Hi,
My table looks like..
accountno datecreated balance ecode
100 09/04/07 50 a
101 09/04/07 60 b
102 09/04/07 70 c
103 09/04/07 90 d
I am using the formula..
IF {TEST_TEMP.ECODE}="b" THEN
{TEST_TEMP.ACCOUNT}
ELSE
0
I have placed the formula field in the "Details" section. But I am seeing 4 rows in the output out of which 1 row showing 101(accountno) and the remaining 0.
what should I do in order to display just the accountno 101?.
I have also tried placing the formula field in "PageHeader" section. But no use.
Thanks.can u try removing the else part?
IF {TEST_TEMP.ECODE}="b" THEN
{TEST_TEMP.ACCOUNT}|||But I am seeing 4 rows in the output out of which 1 row showing 101(accountno) and the remaining 0
You got what u asked for!
use IF {TEST_TEMP.ECODE}="b" THEN
{TEST_TEMP.ACCOUNT}
ELSE
"";|||I tried both..that is removing the ELSE part and putting "". but no use..|||Put the formula in : Menu / Report / Edit Selection Formula / Record
with the next syntax :
{TEST_TEMP.ECODE}="b"|||To show only the rows which are 'b" just go to the section expert, select details, and conditionally suppress it using a formula like:
If {table.field) <> "b" then true
Showing posts with label balance. Show all posts
Showing posts with label balance. Show all posts
Thursday, March 29, 2012
Monday, March 12, 2012
Formating results in Query Analyzer
I have a table as follows:
A NO Balance [decimal (16,5)]
------ ---------------- ------
18.00 001000000000000 -37.982
19.00 002000000000000 -17.656
In the Query analyzer when I try:
SELECT * FROM TABLE1
A NO Balance [decimal (16,5)]
------ ---------------- ------
18.00 001000000000000 -37.98
19.00 002000000000000 -17.66
I need the query analyzer to format them as they are in the tables.
Help please.it's weird
it's if you round up the balance data
try this
select convert(decimal(16,5),balance)|||Did not work! Same results!!!
Originally posted by Karolyn
it's weird
it's if you round up the balance data
try this
select convert(decimal(16,5),balance)|||are you sure that Balance is really stored as -37.982|||Yes, I am sure
Originally posted by Karolyn
are you sure that Balance is really stored as -37.982|||what is you're max precision ?
SELECT @.@.MAX_PRECISION|||38.0
Originally posted by Karolyn
what is you're max precision ?
SELECT @.@.MAX_PRECISION|||where do you see the data -37.982
?|||From the Enterprise Manager
Originally posted by Karolyn
where do you see the data -37.982
?|||SET NUMERIC_ROUNDABORT on
SET ARITHABORT ON
SELECT * FROM TABLE1
does an error occur ?
are you REALLY only doing Select * from Table1 ?|||No error occured,
I am sure 100% that I am doing only a select *!!
Originally posted by Karolyn
SET NUMERIC_ROUNDABORT on
SET ARITHABORT ON
SELECT * FROM TABLE1
does an error occur ?
are you REALLY only doing Select * from Table1 ?|||try contacting BlindMan or Breitt Keiser
A NO Balance [decimal (16,5)]
------ ---------------- ------
18.00 001000000000000 -37.982
19.00 002000000000000 -17.656
In the Query analyzer when I try:
SELECT * FROM TABLE1
A NO Balance [decimal (16,5)]
------ ---------------- ------
18.00 001000000000000 -37.98
19.00 002000000000000 -17.66
I need the query analyzer to format them as they are in the tables.
Help please.it's weird
it's if you round up the balance data
try this
select convert(decimal(16,5),balance)|||Did not work! Same results!!!
Originally posted by Karolyn
it's weird
it's if you round up the balance data
try this
select convert(decimal(16,5),balance)|||are you sure that Balance is really stored as -37.982|||Yes, I am sure
Originally posted by Karolyn
are you sure that Balance is really stored as -37.982|||what is you're max precision ?
SELECT @.@.MAX_PRECISION|||38.0
Originally posted by Karolyn
what is you're max precision ?
SELECT @.@.MAX_PRECISION|||where do you see the data -37.982
?|||From the Enterprise Manager
Originally posted by Karolyn
where do you see the data -37.982
?|||SET NUMERIC_ROUNDABORT on
SET ARITHABORT ON
SELECT * FROM TABLE1
does an error occur ?
are you REALLY only doing Select * from Table1 ?|||No error occured,
I am sure 100% that I am doing only a select *!!
Originally posted by Karolyn
SET NUMERIC_ROUNDABORT on
SET ARITHABORT ON
SELECT * FROM TABLE1
does an error occur ?
are you REALLY only doing Select * from Table1 ?|||try contacting BlindMan or Breitt Keiser
Subscribe to:
Posts (Atom)