|
|
Re: Sequence Number [message #310450 is a reply to message #310410] |
Tue, 01 April 2008 05:33 |
spmano1983
Messages: 269 Registered: September 2007
|
Senior Member |
|
|
Tell me what your requirement exactly...
Do you want only sequence number then you can use this query in your data model..
SELECT ROWNUM
FROM ( SELECT 1 FROM DUAL
GROUP BY CUBE(1,2,3,4,5,6,7,8,9,10) )
WHERE ROWNUM <= 10
If anything revert back.
Thanks
Mano
|
|
|
Re: Sequence Number [message #310479 is a reply to message #310410] |
Tue, 01 April 2008 07:08 |
*munnabhai*
Messages: 157 Registered: March 2008 Location: Riyadh
|
Senior Member |
|
|
Thanks Usman thanks mano
spmano1983
i have below table
ARN_NO VARCHAR2(15)
ITEM_DESCRIPTION VARCHAR2(100)
MANUFACTURER VARCHAR2(60)
PART# VARCHAR2(30)
SERIAL# VARCHAR2(60)
DEPT VARCHAR2(20)
PROCURED_BY VARCHAR2(30)
CATEGORY VARCHAR2(15)
OPERATIONS VARCHAR2(15)
QTY NUMBER(3)
ARN_NO MANUFACTURER
--------------- --------------------
2541 SEIMENS
1654 NOKIA
2151 HP COMPAQ
1653 NOKIA
2151 WESTERN DIGITAL
when i generate report the auto serial number will generate before arn_no as below example
----------------------------------------------
S.No ARN_NO MANUFACTURER
---- ----------- -------------------------
1 2541 SEIMENS
2 1654 NOKIA
3 2151 HP COMPAQ
4 1653 NOKIA
this is what i want S.No sequence autogenrate numbers in reports
how can i do?
and the second thing i wanna to enter a name in report which is not database item. through a parameter i can manage ARN_no but when ever i print the report it should print the name as well what i enter in the non database item
i.e. Delivered <name should display here>
Regards
|
|
|
|
|
Re: Sequence Number [message #310700 is a reply to message #310410] |
Wed, 02 April 2008 02:26 |
spmano1983
Messages: 269 Registered: September 2007
|
Senior Member |
|
|
Hi,
If ARN_NO is unique then just you create one summary column for count and source is ARN_NO and place it in layout model.. otherwise
just you take rownum in datamodel like,
select rownum,empno,ename from emp;
Thanks
Mano
|
|
|