Consecutive number in query
Hi,
i have a query where projects with some details are listed. In the first column i want to have a consecutive number. The first record (project) schould have the number "1", the second record the number "2" and so on. How can I realize this with query designer?
thx,
Robert
Hi
Drag and drop any existing key figure that is in the query to columns section and in the properties Calculate single value as " Counting all Values ". Change also description like " increment by 1 " so that it will have meaningful description for the keyfigure.
Assign points if it is helpful.
Similar Messages
-
Inserting a consecutive number as a variable?
I need to insert a consecutive number from 1 to 100 in a text: this will relate to numbered images accompanying in the document.
It is possible to create a text variable or similar instead of typing manually?camilo umaña wrote:
Is something like this, very very simple, where ID makes a consecutive numbering.
Atet faccum dem aut autatibus quaspe officil iquunt omnis [1] et qui dolor molupta teculluptas rehendest porum qui odis id enit quam inciducit dolupta ssunti tecabore mos et et mo is remquo doloratum hitasi ium fugiti nonseditatia veritas evendita nossi blabore qui occae. Nem untem [2] cusci volorit exere laturem volo quis cum am aut re nullabo rescien ditasim et volorectiae nonsequ isquia etus aut velesciist maionsedit officil lectur? Qui cum fuga. Lum vel eatae volorbitat [3]vusciet, simpe renis arisci volor aut occum sim alis excearcium quunt quatet.
Thank you.
InDesign cannot create auto-numbers within the body of a paragraph, only at the beginning. Further, an InDesign paragraph cannot run into another paragraph on the same line.
If the numbers in your example refer to aut-numbered named-list paragraphs elsewhere in the same or different documents, as I mentioned earlier, you can insert cross-references to those paragraphs and capture only the auto-number portion of the paragraph, and even add the enclosing square brackets, by defining a cross-reference format.
Also, as I noted earlier, the Google search for phrases like "InDesign cross-reference format," without quotes, will return many good references to the topic. Searching Google for "InDesign cross-reference format tutorial," without quotes returns an even more focused set of results.
HTH
Regards,
Peter
Peter Gold
KnowHow ProServices -
0BWTC_C02 - Viewing number of query executions and refreshes
Hi,
I having been testing some queries I created for infocube 0BWTC_C02. Is there any way to limit the key figure 0TCTNAVCTR to only show navigations that were query refreshes (e.g. ignoring navigations such as removing/adding a drilldown, results row, ect.)? Do any of the available characteristics show what type of navigation was being performed, so that I could restrict the query to only look at certain types of navigations?
Thanks,
AndyHi Pcrao,
I am using the BW statistics infocube 0BWTC_C02.
But as far as I see, the key figure 0TCTNAVCTR( number of navigation steps)now only includes query execution, but also includes all other navigation steps like drill down etc.
Can we do some restriction on navigation type etc to find just the number times query execution takes place?
Thanks,
James -
How do I print an increasing consecutive number on each subsequent printout
how do I print an increasing consecutive number on each subsequent printout in pages?
This was for Pages '09.
http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=182&mforum=iworktips ntrick
The problem with doing it in Pages 5 is the bad search and replace which doesn't let you search for and replace invisibles.
Peter -
Add consecutive number to albums?
Hello, As a new iTunes user, is there a way add a consecutive number to albums as I import them?
Regards, GeeooHi Patrick,
The CD cataloging software that I used with my PC allowed me to add a number to each CD entry, and I would print out a list sorted by artist, album name, and the number. Each CD case would also have this number stuck on the edge. I would organize the CDs in th rack by number and use the printout to search my collection.
I'm setting up a MAC Mini to use with my stereo system. I'm learning that searching for imported music in iTunes is very easy, but I was just curious to see if I could keep using my numbering system to keep track of my physical CD collection.
Thanks, George -
Consecutive Absent Days Query.. Pls Help Gurus
I have a table which stores attendance information
For eg:
Emp_No Date
100 01-APR-2010
102 05-APR-2010
100 02-APR-2010
I need a query with parameter From Date and To date..
My Query Output should be like this .. considering that employee 100 is absent for 8 consecutive days and employee number 102 is absent for 2 consecutive days..
It should return number of consecutive days he is absent.
Empno Consecutive Days
100 8 Days
102 2 Days
Pls Help Gurus.
Edited by: suzvino on Jun 21, 2010 12:14 AMTUBBY_TUBBZ?with data as
2 (
3 select 100 as emp_no, to_date('01-APR-2010','dd-mon-yyyy') as absent_date from dual union all
4 select 102 as emp_no, to_date('05-APR-2010','dd-mon-yyyy') as absent_date from dual union all
5 select 100 as emp_no, to_date('02-APR-2010','dd-mon-yyyy') as absent_date from dual union all
6 select 100 as emp_no, to_date('01-APR-2010','dd-mon-yyyy') as absent_date from dual union all
7 select 100 as emp_no, to_date('03-APR-2010','dd-mon-yyyy') as absent_date from dual union all
8 select 100 as emp_no, to_date('04-APR-2010','dd-mon-yyyy') as absent_date from dual union all
9 select 100 as emp_no, to_date('05-APR-2010','dd-mon-yyyy') as absent_date from dual union all
10 select 100 as emp_no, to_date('06-APR-2010','dd-mon-yyyy') as absent_date from dual union all
11 select 100 as emp_no, to_date('07-APR-2010','dd-mon-yyyy') as absent_date from dual union all
12 select 100 as emp_no, to_date('08-APR-2010','dd-mon-yyyy') as absent_date from dual union all
13 select 100 as emp_no, to_date('09-APR-2010','dd-mon-yyyy') as absent_date from dual
14 )
15 select
16 emp_no, max(level)
17 from data
18 connect by prior emp_no = emp_no and prior absent_date = absent_date - 1
19 group by emp_no
20 having max(level) >= 8;
EMP_NO MAX(LEVEL)
100 9
1 row selected.
Elapsed: 00:00:00.01
TUBBY_TUBBZ?Think i misread the post, so the query should be
TUBBY_TUBBZ?with data as
2 (
3 select 100 as emp_no, to_date('01-APR-2010','dd-mon-yyyy') as absent_date from dual union all
4 select 102 as emp_no, to_date('05-APR-2010','dd-mon-yyyy') as absent_date from dual union all
5 select 100 as emp_no, to_date('02-APR-2010','dd-mon-yyyy') as absent_date from dual union all
6 select 100 as emp_no, to_date('01-APR-2010','dd-mon-yyyy') as absent_date from dual union all
7 select 100 as emp_no, to_date('03-APR-2010','dd-mon-yyyy') as absent_date from dual union all
8 select 100 as emp_no, to_date('04-APR-2010','dd-mon-yyyy') as absent_date from dual union all
9 select 100 as emp_no, to_date('05-APR-2010','dd-mon-yyyy') as absent_date from dual union all
10 select 100 as emp_no, to_date('06-APR-2010','dd-mon-yyyy') as absent_date from dual union all
11 select 100 as emp_no, to_date('07-APR-2010','dd-mon-yyyy') as absent_date from dual union all
12 select 100 as emp_no, to_date('08-APR-2010','dd-mon-yyyy') as absent_date from dual union all
13 select 100 as emp_no, to_date('09-APR-2010','dd-mon-yyyy') as absent_date from dual
14 )
15 select
16 emp_no, max(level)
17 from data
18 connect by prior emp_no = emp_no and prior absent_date = absent_date - 1
19 group by emp_no;
EMP_NO MAX(LEVEL)
100 9
102 1
2 rows selected.
Elapsed: 00:00:00.01Edited by: Tubby on May 30, 2010 11:00 PM
Added second query since i misread the post originally. -
How to handle a large number of query parameters for a Browse screen
I need to implement an advanced search functionality in a browse screen for a large table. The table has 80+ columns and therefore will have a large number of possible query parameters. The screen will be built on a modeled query with all
of the parameters marked as optional. Given the large number of parameters, I am thinking that it would be better to use a separate screen to receive the parameter input from the user, rather than a Popup. Is it possible for example to have a search
button on the browse screen (screen a) open a new screen (screen b) that contains all of the search parameters, have the user enter the parameters they want, then click a button to send all of the parameters back to screen a where the query is executed and
the search results are returned to the table control? This would effectively make screen b an advanced modal window for screen a. In addition, if the user were to execute the query, then want to change a parameter, they would need to be able to
re-open screen b and have all of their original parameters still set. How would you implement this, or otherwise deal with a large number of optional query parameters in the html client? My initial thinking is to store all of the parameters in
an object and use beforeShown/afterClosed to pass them between the screens, but I'm not quite sure how to make that work. TIAWow Josh, thanks. I have a lot of reading to do. What I ultimately plan to do with this (my other posts relate to this too), is have a separate screen for advanced filtering that also allows the user to save their queries if desired.
There is an excellent way to get at all of the query information in the Query_Executed() method. I just put an extra Boolean parameter in the query called "SaveQuery" and when true, the Query_Executed event triggers an entry into a table with
the query name, user name, and parameter value pairs that the user entered. Upon revisiting the screen, I want the user to be able to select from their saved queries and load all the screen parameters (screen properties) from their selected query.
I almost have it working. It may be as easy as marking all of the screen properties that are query parameters as screen parameters (not required), then passing them in from the saved query data (filtered by username, queryname, and selected
item). I'll post an update once I get it. Probably will have some more questions as I go through it. Thanks again! -
Number range query causes repeated scan by index
I have a query that seems to repeatedly call an index scan on a table for reasons I'm not sure about. Anyone know why it would be doing the index scan on totaldwellingarea in the dimensions table (DIMEN_PID_TDWELLAREA) repeatedly? This only seems to happen when I put on the range clause d.totaldwellingarea between scr.lowvalue and scr.highvalue.
I am using Oracle version 9.2.0.3.
select d.propertyid,d.totaldwellingarea, e.size_, scr.size_
from eqid e, dimensions d, brt_eval.size_code_ranges scr
where e.style not in ('1','A','G','L') and e.size_ = '0'
and d.propertyid = e.propertyid and e.style = scr.style and d.totaldwellingarea between scr.lowvalue and scr.highvalue;
CREATE
TABLE "BRT_ADMIN"."EQID"
"PROPERTYID" VARCHAR2(20 BYTE) NOT NULL ENABLE,
"EQID" CHAR(10 BYTE),
"ZONE_" CHAR(1 BYTE),
"AREA" CHAR(1 BYTE),
"GROUP_" CHAR(1 BYTE),
"GMA" CHAR(1 BYTE),
"STYLE" CHAR(1 BYTE),
"FLOORPLAN" CHAR(1 BYTE),
"BLDGCODEABBR" CHAR(1 BYTE),
"SIZE_" CHAR(1 BYTE),
"CONDITION" CHAR(1 BYTE),
"SUBGROUP" CHAR(1 BYTE),
"UPDATED_BY" VARCHAR2(10 BYTE),
CONSTRAINT "EQID_PK" PRIMARY KEY ("PROPERTYID") USING INDEX
CONSTRAINT "EQID_PROPERTIES_FK1" FOREIGN KEY ("PROPERTYID") REFERENCES
"BRT_ADMIN"."PROPERTIES" ("PROPERTYID") DISABLE
Insert into EXPORT_TABLE (PROPERTYID,EQID,ZONE_,AREA,GROUP_,GMA,STYLE,FLOORPLAN,BLDGCODEABBR,SIZE_,CONDITION,SUBGROUP,UPDATED_BY) values ('3734003158','E241RJR440','E','2','4','1','R','J','R','4','4','0','274892');
Insert into EXPORT_TABLE (PROPERTYID,EQID,ZONE_,AREA,GROUP_,GMA,STYLE,FLOORPLAN,BLDGCODEABBR,SIZE_,CONDITION,SUBGROUP,UPDATED_BY) values ('5428001913','H113TMH330','H','1','1','3','T','M','H','3','3','0','263579');
Insert into EXPORT_TABLE (PROPERTYID,EQID,ZONE_,AREA,GROUP_,GMA,STYLE,FLOORPLAN,BLDGCODEABBR,SIZE_,CONDITION,SUBGROUP,UPDATED_BY) values ('8798001037','J423DX0440','J','4','2','3','D','X','0','4','4','0','SYSTEM');
Insert into EXPORT_TABLE (PROPERTYID,EQID,ZONE_,AREA,GROUP_,GMA,STYLE,FLOORPLAN,BLDGCODEABBR,SIZE_,CONDITION,SUBGROUP,UPDATED_BY) values ('6924000909','L423LR0000','L','4','2','3','L','R','0','0','0','0','275251');
Insert into EXPORT_TABLE (PROPERTYID,EQID,ZONE_,AREA,GROUP_,GMA,STYLE,FLOORPLAN,BLDGCODEABBR,SIZE_,CONDITION,SUBGROUP,UPDATED_BY) values ('81640006040000304','P142223240','P','1','4','2','2','2','3','2','4','0','SYSTEM');
Insert into EXPORT_TABLE (PROPERTYID,EQID,ZONE_,AREA,GROUP_,GMA,STYLE,FLOORPLAN,BLDGCODEABBR,SIZE_,CONDITION,SUBGROUP,UPDATED_BY) values ('6828004705','M812IW3340','M','8','1','2','I','W','3','3','4','0','275281');
Insert into EXPORT_TABLE (PROPERTYID,EQID,ZONE_,AREA,GROUP_,GMA,STYLE,FLOORPLAN,BLDGCODEABBR,SIZE_,CONDITION,SUBGROUP,UPDATED_BY) values ('3622002125','K212RJO340','K','2','1','2','R','J','O','3','4','0','TEMP001');
Insert into EXPORT_TABLE (PROPERTYID,EQID,ZONE_,AREA,GROUP_,GMA,STYLE,FLOORPLAN,BLDGCODEABBR,SIZE_,CONDITION,SUBGROUP,UPDATED_BY) values ('7492002946','H513RJO250','H','5','1','3','R','J','O','2','5','0','276022');
Insert into EXPORT_TABLE (PROPERTYID,EQID,ZONE_,AREA,GROUP_,GMA,STYLE,FLOORPLAN,BLDGCODEABBR,SIZE_,CONDITION,SUBGROUP,UPDATED_BY) values ('2561002635','A221MOW340','A','2','2','1','M','O','W','3','4','0','275464');
Insert into EXPORT_TABLE (PROPERTYID,EQID,ZONE_,AREA,GROUP_,GMA,STYLE,FLOORPLAN,BLDGCODEABBR,SIZE_,CONDITION,SUBGROUP,UPDATED_BY) values ('7380002035','P612MRU530','P','6','1','2','M','R','U','5','3','0','TEMP002');
Insert into EXPORT_TABLE (PROPERTYID,EQID,ZONE_,AREA,GROUP_,GMA,STYLE,FLOORPLAN,BLDGCODEABBR,SIZE_,CONDITION,SUBGROUP,UPDATED_BY) values ('8396000929','J211RJO340','J','2','1','1','R','J','O','3','4','0','SYSTEM');
Insert into EXPORT_TABLE (PROPERTYID,EQID,ZONE_,AREA,GROUP_,GMA,STYLE,FLOORPLAN,BLDGCODEABBR,SIZE_,CONDITION,SUBGROUP,UPDATED_BY) values ('8902001921','B123RJO340','B','1','2','3','R','J','O','3','4','0','272144');
Insert into EXPORT_TABLE (PROPERTYID,EQID,ZONE_,AREA,GROUP_,GMA,STYLE,FLOORPLAN,BLDGCODEABBR,SIZE_,CONDITION,SUBGROUP,UPDATED_BY) values ('5094000612','L142RJR340','L','1','4','2','R','J','R','3','4','0','225293');
Insert into EXPORT_TABLE (PROPERTYID,EQID,ZONE_,AREA,GROUP_,GMA,STYLE,FLOORPLAN,BLDGCODEABBR,SIZE_,CONDITION,SUBGROUP,UPDATED_BY) values ('8803005315','L312TMH440','L','3','1','2','T','M','H','4','4','0','225293');
Insert into EXPORT_TABLE (PROPERTYID,EQID,ZONE_,AREA,GROUP_,GMA,STYLE,FLOORPLAN,BLDGCODEABBR,SIZE_,CONDITION,SUBGROUP,UPDATED_BY) values ('5378004026','D121MNU140','D','1','2','1','M','N','U','1','4','0','134965');
Insert into EXPORT_TABLE (PROPERTYID,EQID,ZONE_,AREA,GROUP_,GMA,STYLE,FLOORPLAN,BLDGCODEABBR,SIZE_,CONDITION,SUBGROUP,UPDATED_BY) values ('5414005625','L311RJR340','L','3','1','1','R','J','R','3','4','0','275251');
Insert into EXPORT_TABLE (PROPERTYID,EQID,ZONE_,AREA,GROUP_,GMA,STYLE,FLOORPLAN,BLDGCODEABBR,SIZE_,CONDITION,SUBGROUP,UPDATED_BY) values ('6286005917','E323RJR240','E','3','2','3','R','J','R','2','4','0','274951');
Insert into EXPORT_TABLE (PROPERTYID,EQID,ZONE_,AREA,GROUP_,GMA,STYLE,FLOORPLAN,BLDGCODEABBR,SIZE_,CONDITION,SUBGROUP,UPDATED_BY) values ('7824000540','E314SE0140','E','3','1','4','S','E','0','1','4','0','274951');
Insert into EXPORT_TABLE (PROPERTYID,EQID,ZONE_,AREA,GROUP_,GMA,STYLE,FLOORPLAN,BLDGCODEABBR,SIZE_,CONDITION,SUBGROUP,UPDATED_BY) values ('3200001829','H525LR0000','H','5','2','5','L','R','0','0','0','0','248930');
Insert into EXPORT_TABLE (PROPERTYID,EQID,ZONE_,AREA,GROUP_,GMA,STYLE,FLOORPLAN,BLDGCODEABBR,SIZE_,CONDITION,SUBGROUP,UPDATED_BY) values ('1102002714','G314MPW240','G','3','1','4','M','P','W','2','4','0','250794');
CREATE
TABLE "BRT_ADMIN"."DIMENSIONS"
"PROPERTYID" VARCHAR2(20 BYTE),
"DIMENSIONID" NUMBER(38,0),
"LANDDATE" DATE,
"BLDGDATE" DATE,
"PROCESSDATE" DATE,
"INPUTUSER" VARCHAR2(100 BYTE),
"PLOTFRONT" NUMBER(38,3),
"PLOTDEPTH" NUMBER(38,3),
"PLOTSQFT" NUMBER(38,3),
"TOTALDWELLINGAREA" NUMBER(38,3),
"TOTALFLOOR" NUMBER(38,3),
"SHAPE" CHAR(1 BYTE),
"GARAGE" VARCHAR2(2 BYTE),
CONSTRAINT "DIMENSIONS_PK" PRIMARY KEY ("DIMENSIONID") USING INDEX
CREATE
INDEX "BRT_ADMIN"."DIMEN_PID_TDWELLAREA" ON "BRT_ADMIN"."DIMENSIONS"
"PROPERTYID",
"TOTALDWELLINGAREA"
Insert into EXPORT_TABLE (PROPERTYID,DIMENSIONID,LANDDATE,BLDGDATE,PROCESSDATE,INPUTUSER,PLOTFRONT,PLOTDEPTH,PLOTSQFT,TOTALDWELLINGAREA,TOTALFLOOR,SHAPE,GARAGE) values ('8318000324',506808,null,to_date('01-JUN-2001 12:00 AM','DD-MON-YYYY
HH:MI AM'),to_date('19-JUN-2001 12:00 AM','DD-MON-YYYY HH:MI AM'),'DOMENIC J. DEMURO',15.5,56,868,1200,0,'E','0');
Insert into EXPORT_TABLE (PROPERTYID,DIMENSIONID,LANDDATE,BLDGDATE,PROCESSDATE,INPUTUSER,PLOTFRONT,PLOTDEPTH,PLOTSQFT,TOTALDWELLINGAREA,TOTALFLOOR,SHAPE,GARAGE) values ('8814000708',336134,null,to_date('01-JUL-1999 12:00 AM','DD-MON-YYYY
HH:MI AM'),to_date('30-JUL-1999 12:00 AM','DD-MON-YYYY HH:MI AM'),'margaret jimenez',16,69.29,1108.64,2265,0,'E','0');
Insert into EXPORT_TABLE (PROPERTYID,DIMENSIONID,LANDDATE,BLDGDATE,PROCESSDATE,INPUTUSER,PLOTFRONT,PLOTDEPTH,PLOTSQFT,TOTALDWELLINGAREA,TOTALFLOOR,SHAPE,GARAGE) values ('8791002638',231697,null,null,to_date('29-OCT-2004 12:00 AM','DD-
MON-YYYY HH:MI AM'),'DMEB020',15,65.38,980.7,0,0,'E','0');
Insert into EXPORT_TABLE (PROPERTYID,DIMENSIONID,LANDDATE,BLDGDATE,PROCESSDATE,INPUTUSER,PLOTFRONT,PLOTDEPTH,PLOTSQFT,TOTALDWELLINGAREA,TOTALFLOOR,SHAPE,GARAGE) values ('6138000961',409453,to_date('01-AUG-2004 12:00 AM','DD-MON-YYYY
HH:MI AM'),to_date('01-AUG-2002 12:00 AM','DD-MON-YYYY HH:MI AM'),to_date('18-AUG-2004 12:00 AM','DD-MON-YYYY HH:MI AM'),'DMEB017',14.75,78.5,1157.87,1357,0,'E','0');
Insert into EXPORT_TABLE (PROPERTYID,DIMENSIONID,LANDDATE,BLDGDATE,PROCESSDATE,INPUTUSER,PLOTFRONT,PLOTDEPTH,PLOTSQFT,TOTALDWELLINGAREA,TOTALFLOOR,SHAPE,GARAGE) values ('8576002721',154908,null,null,to_date('29-OCT-2004 12:00 AM','DD-
MON-YYYY HH:MI AM'),'DMEB020',12,72.99,875.88,0,0,'E','0');
Insert into EXPORT_TABLE (PROPERTYID,DIMENSIONID,LANDDATE,BLDGDATE,PROCESSDATE,INPUTUSER,PLOTFRONT,PLOTDEPTH,PLOTSQFT,TOTALDWELLINGAREA,TOTALFLOOR,SHAPE,GARAGE) values ('3851000509',441426,to_date('01-AUG-2004 12:00 AM','DD-MON-YYYY
HH:MI AM'),to_date('01-NOV-2003 12:00 AM','DD-MON-YYYY HH:MI AM'),to_date('18-AUG-2004 12:00 AM','DD-MON-YYYY HH:MI AM'),'DMEB017',63.94,97.96,6264,2358,0,'E','0');
Insert into EXPORT_TABLE (PROPERTYID,DIMENSIONID,LANDDATE,BLDGDATE,PROCESSDATE,INPUTUSER,PLOTFRONT,PLOTDEPTH,PLOTSQFT,TOTALDWELLINGAREA,TOTALFLOOR,SHAPE,GARAGE) values ('2889011105',498582,null,to_date('01-AUG-2000 12:00 AM','DD-MON-YYYY
HH:MI AM'),to_date('14-AUG-2000 12:00 AM','DD-MON-YYYY HH:MI AM'),'ANTHONY CELLO',19.92,102.16,2035.02,1400,0,'E','0');
Insert into EXPORT_TABLE (PROPERTYID,DIMENSIONID,LANDDATE,BLDGDATE,PROCESSDATE,INPUTUSER,PLOTFRONT,PLOTDEPTH,PLOTSQFT,TOTALDWELLINGAREA,TOTALFLOOR,SHAPE,GARAGE) values ('6960000520',535448,to_date('30-DEC-2011 12:00 AM','DD-MON-YYYY
HH:MI AM'),null,to_date('30-DEC-2011 12:00 AM','DD-MON-YYYY HH:MI AM'),'Donna Dirscherl',50,209.33,10342,0,0,'A','0');
Insert into EXPORT_TABLE (PROPERTYID,DIMENSIONID,LANDDATE,BLDGDATE,PROCESSDATE,INPUTUSER,PLOTFRONT,PLOTDEPTH,PLOTSQFT,TOTALDWELLINGAREA,TOTALFLOOR,SHAPE,GARAGE) values ('8902000005',398306,null,to_date('01-JUL-2001 12:00 AM','DD-MON-YYYY
HH:MI AM'),to_date('11-JUL-2001 12:00 AM','DD-MON-YYYY HH:MI AM'),'BERNICE murphy',40,98,3920,7040,0,'E','0');
Insert into EXPORT_TABLE (PROPERTYID,DIMENSIONID,LANDDATE,BLDGDATE,PROCESSDATE,INPUTUSER,PLOTFRONT,PLOTDEPTH,PLOTSQFT,TOTALDWELLINGAREA,TOTALFLOOR,SHAPE,GARAGE) values ('4624001130',341318,null,to_date('01-FEB-2001 12:00 AM','DD-MON-YYYY
HH:MI AM'),to_date('27-FEB-2001 12:00 AM','DD-MON-YYYY HH:MI AM'),'JANINE TRAVALINA',15.96,66,1053.36,960,0,'E','0');
Insert into EXPORT_TABLE (PROPERTYID,DIMENSIONID,LANDDATE,BLDGDATE,PROCESSDATE,INPUTUSER,PLOTFRONT,PLOTDEPTH,PLOTSQFT,TOTALDWELLINGAREA,TOTALFLOOR,SHAPE,GARAGE) values ('2798005812',459363,null,to_date('01-JAN-2001 12:00 AM','DD-MON-YYYY
HH:MI AM'),to_date('19-JAN-2001 12:00 AM','DD-MON-YYYY HH:MI AM'),'ANTHONY D ELETTO',15.5,60,930,1112,0,'E','0');
Insert into EXPORT_TABLE (PROPERTYID,DIMENSIONID,LANDDATE,BLDGDATE,PROCESSDATE,INPUTUSER,PLOTFRONT,PLOTDEPTH,PLOTSQFT,TOTALDWELLINGAREA,TOTALFLOOR,SHAPE,GARAGE) values ('1940000212000008A',500949,null,to_date('01-NOV-2010 12:00 AM','DD-
MON-YYYY HH:MI AM'),to_date('02-NOV-2010 12:00 AM','DD-MON-YYYY HH:MI AM'),'GERALDINE WHITE',0,0,0,1068,0,'E','0');
Insert into EXPORT_TABLE (PROPERTYID,DIMENSIONID,LANDDATE,BLDGDATE,PROCESSDATE,INPUTUSER,PLOTFRONT,PLOTDEPTH,PLOTSQFT,TOTALDWELLINGAREA,TOTALFLOOR,SHAPE,GARAGE) values ('1132006225',544051,to_date('01-AUG-2004 12:00 AM','DD-MON-YYYY
HH:MI AM'),to_date('01-MAY-2002 12:00 AM','DD-MON-YYYY HH:MI AM'),to_date('18-AUG-2004 12:00 AM','DD-MON-YYYY HH:MI AM'),'DMEB017',16,63.5,1016,1088,0,'E','0');
Insert into EXPORT_TABLE (PROPERTYID,DIMENSIONID,LANDDATE,BLDGDATE,PROCESSDATE,INPUTUSER,PLOTFRONT,PLOTDEPTH,PLOTSQFT,TOTALDWELLINGAREA,TOTALFLOOR,SHAPE,GARAGE) values ('6588004904',258106,to_date('01-NOV-2007 12:00 AM','DD-MON-YYYY
HH:MI AM'),null,to_date('08-NOV-2007 12:00 AM','DD-MON-YYYY HH:MI AM'),'DMEB025',15.5,109.88,1703.14,1660,0,'E','0');
Insert into EXPORT_TABLE (PROPERTYID,DIMENSIONID,LANDDATE,BLDGDATE,PROCESSDATE,INPUTUSER,PLOTFRONT,PLOTDEPTH,PLOTSQFT,TOTALDWELLINGAREA,TOTALFLOOR,SHAPE,GARAGE) values ('3504001628',166760,null,to_date('01-JAN-2001 12:00 AM','DD-MON-YYYY
HH:MI AM'),to_date('10-JAN-2001 12:00 AM','DD-MON-YYYY HH:MI AM'),'BERNICE murphy',14.83,63.5,941.7,938,0,'E','0');
Insert into EXPORT_TABLE (PROPERTYID,DIMENSIONID,LANDDATE,BLDGDATE,PROCESSDATE,INPUTUSER,PLOTFRONT,PLOTDEPTH,PLOTSQFT,TOTALDWELLINGAREA,TOTALFLOOR,SHAPE,GARAGE) values ('8817006645',285652,null,to_date('01-JUN-1999 12:00 AM','DD-MON-YYYY
HH:MI AM'),to_date('22-JUN-1999 12:00 AM','DD-MON-YYYY HH:MI AM'),'ANTONETTE M. LAFAUCI',15.8,72.5,1145.5,1210,0,'E','0');
Insert into EXPORT_TABLE (PROPERTYID,DIMENSIONID,LANDDATE,BLDGDATE,PROCESSDATE,INPUTUSER,PLOTFRONT,PLOTDEPTH,PLOTSQFT,TOTALDWELLINGAREA,TOTALFLOOR,SHAPE,GARAGE) values ('6450003427',115405,null,null,to_date('29-OCT-2004 12:00 AM','DD-
MON-YYYY HH:MI AM'),'DMEB020',14,50,700,0,0,'E','0');
Insert into EXPORT_TABLE (PROPERTYID,DIMENSIONID,LANDDATE,BLDGDATE,PROCESSDATE,INPUTUSER,PLOTFRONT,PLOTDEPTH,PLOTSQFT,TOTALDWELLINGAREA,TOTALFLOOR,SHAPE,GARAGE) values ('5284002600',416035,null,to_date('01-JAN-1999 12:00 AM','DD-MON-YYYY
HH:MI AM'),to_date('11-JAN-1999 12:00 AM','DD-MON-YYYY HH:MI AM'),'rose cappo',15,40,600,750,0,'E','0');
Insert into EXPORT_TABLE (PROPERTYID,DIMENSIONID,LANDDATE,BLDGDATE,PROCESSDATE,INPUTUSER,PLOTFRONT,PLOTDEPTH,PLOTSQFT,TOTALDWELLINGAREA,TOTALFLOOR,SHAPE,GARAGE) values ('8801003637',415464,null,to_date('01-OCT-2000 12:00 AM','DD-MON-YYYY
HH:MI AM'),to_date('30-OCT-2000 12:00 AM','DD-MON-YYYY HH:MI AM'),'CARLA DOWNS',15.5,80,1240,1632,0,'E','0');
Insert into EXPORT_TABLE (PROPERTYID,DIMENSIONID,LANDDATE,BLDGDATE,PROCESSDATE,INPUTUSER,PLOTFRONT,PLOTDEPTH,PLOTSQFT,TOTALDWELLINGAREA,TOTALFLOOR,SHAPE,GARAGE) values ('8878000860',163537,null,to_date('01-MAR-1999 12:00 AM','DD-MON-YYYY
HH:MI AM'),to_date('30-MAR-1999 12:00 AM','DD-MON-YYYY HH:MI AM'),'VIVIAN REESE',15,60.5,907.5,1140,0,'E','0');
CREATE
TABLE "BRT_EVAL"."SIZE_CODE_RANGES"
"STYLE" CHAR(1 BYTE),
"SIZE_" CHAR(1 BYTE),
"LOWVALUE" NUMBER(38,0),
"HIGHVALUE" NUMBER(38,0),
"DESCRIPTION" VARCHAR2(25 BYTE),
CONSTRAINT "SIZE_CODE_RANGES_PK" PRIMARY KEY ("STYLE", "SIZE_") USING INDEX
Insert into BRT_EVAL.SIZE_CODE_RANGES (STYLE,SIZE_,LOWVALUE,HIGHVALUE,DESCRIPTION) values ('2','2',400,1399,'400 sqft - 1399 sqft');
Insert into BRT_EVAL.SIZE_CODE_RANGES (STYLE,SIZE_,LOWVALUE,HIGHVALUE,DESCRIPTION) values ('2','4',2600,3599,'2600 sqft - 3599 sqft');
Insert into BRT_EVAL.SIZE_CODE_RANGES (STYLE,SIZE_,LOWVALUE,HIGHVALUE,DESCRIPTION) values ('P','3',1300,1601,'1300 sqft - 1601 sqft');
Explain Plan:
OPERATION OPTIONS OBJECT_NODE OBJECT_OWNER OBJECT_NAME OBJECT_INSTANCE OBJECT_TYPE OPTIMIZER SEARCH_COLUMNS ID PARENT_ID POSITION COST CARDINALITY BYTES OTHER_TAG
PARTITION_START PARTITION_STOP PARTITION_ID OTHER DISTRIBUTION CPU_COST IO_COST TEMP_SPACE
SELECT STATEMENT CHOOSE 0 14 14 1 63 14
TABLE ACCESS BY INDEX ROWID BRT_ADMIN EQID 1 ANALYZED 1 0 1 2 1 16 2
NESTED LOOPS 2 1 1 14 1 63 14
NESTED LOOPS 3 2 1 6 4 188 6
TABLE ACCESS FULL BRT_EVAL SIZE_CODE_RANGES 3 4 3 1 2 1 32 2
INDEX FAST FULL SCAN BRT_ADMIN DIMEN_PID_TDWELLAREA NON-UNIQUE 5 3 2 4 1427 21405 4
INDEX RANGE SCAN BRT_ADMIN EQID_PROPERTYID_IDX NON-UNIQUE ANALYZED 1 6 2 2 1 10 1 Edited by: ReubenC on Oct 16, 2012 9:50 AMI tried removing the index to see if that would have any effect. That appears to work OK. I would like to leave the index in place, however.
Looks like NO_INDEX Hint works. First time using hints... I don't suppose there's anyway to tell it to use the index for one part of the where clause but not a different part?
select /*+ NO_INDEX(d DIMEN_PID_TDWELLAREA) */ d.propertyid,d.totaldwellingarea, e.size_, scr.size_
from eqid e, dimensions d, brt_eval.size_code_ranges scr
where e.style not in ('1','A','G','L') and e.size_ = '0' and totaldwellingarea <> 0
and d.propertyid = e.propertyid and e.style = scr.style and totaldwellingarea >= scr.lowvalue and totaldwellingarea <= scr.highvalue;
select /*+ NO_INDEX(d DIMEN_PID_TDWELLAREA) */ count(*)
from eqid e, dimensions d, brt_eval.size_code_ranges scr
where e.style not in ('1','A','G','L') and e.size_ = '0' and totaldwellingarea <> 0
and d.propertyid = e.propertyid and e.style = scr.style and totaldwellingarea >= scr.lowvalue and totaldwellingarea <= scr.highvalue;Edited by: ReubenC on Oct 16, 2012 3:15 PM
Edited by: ReubenC on Oct 16, 2012 3:22 PM
OK figured all that out. -
Number of Query parameters problem
Ok, so I have a form that has always has one of two values filled in, but a different number of parameters in the rest.
Example:
The user will have to fillin (City) and (State), or (zipcode) to do a query. But they can also fill in the (numOfBedrooms), (numOfBathrooms), (minPrice), (maxPrice), etc...
How do I get the information out and query against the right data fields. I thought of putting the collected data into an array for each item that is queried, but I need to know how to construct the Where clause, like.
WHERE numOfBedrooms = " + inputNumBeds + " AND" + etc...
What if they don't put in the number of bedrooms, and put in only the number of bathrooms or the max price?
How do I know when to use the AND, >=, <=, >= and <=, in the right place?
I just dont know how to construct the query and put it all together when its submitted by the form?
Thanks in advance.
orozcomThanks guys, Will do.
So with each one should I do something like.
If (numBedroom != null)
Insert the and statement;
or should I do a
if (numBedroom != 0) // This will be a pulldown menu
anyway. I could just default to 0.
Insert the and statement.
Zero is a magic value in the above so null might be a better choice. Using null requires the use of Integer vs int though. That decision is rather minor. However if you have some cases where zero is a legitimate value to search on then for numerics it might be better to choose a really good magic value like Integer.MIN_VALUE.
>
Same with the price, but I could probably do a.
If(( minPrice != 0) && (maxPrice !=0))
insert the > minPrice and < maxPrice statement
Then do the other if statements.
As suggested you can get creative if you want or need to.
In the above what you have is one field with different operations possible. So you would have...
- operand
- leftValue
- rightValue
Operand can then have values like "equals", "greater than" and "between". For the specific example you gave above the operand would be "between" and you would use both values. -
Problem with invoice number in query
Hi,
I got problem in query with the Invoice number
There are two columns in the cube 1) Invoice number 2) Count
For the key figure Count I used aggregation option as counter on Invoice number
When I ran the query on this cube it is showing one extra count
For example
Invoice number Count
10000 1
10001 1
-- 1
-- 1
-- 1
In query it is showing count as 3Are you loading from a falt file.
It seems that an extra record got loaded which desnt have invoice no but count =1 -
Encountered ORA-01722 Invalid number when query doc from view
Hi all,
I have the following view.
Select item, to_number(wo) a
from tablea
union all
select item, wo
from tablebb
The problem rise ( ORA-01722) when I try to search for wo from the view after the view has been created. The wo field in tablea was varchar2 where user will key in the number only. And wo in tabebb is number, I can't change the column format as it is belong the my standard application table. How to solve this problem ?
Thanks
Limsm**** wrote:
I try to simplified my query. In fact, there are several where clause for both tables. The reason is because of the varchar2 field in WO at tablea versus the numeric field in WO for tableb. OK. The problem then is almost certainly that you have non-numeric characters in the column but you don't happen to have non-numeric characters in the columns that match all the other predicates.
Oracle is free to apply the TO_NUMBER function before it applies some or all of the predicates you specify in your WHERE clause. If it happens to apply the TO_NUMBER on a row that has non-numeric data before it applies the condition in the WHERE clause that filters out that particular row, you'll get an error. If, on the other hand, Oracle happens to filter out the row before applying the TO_NUMBER, you'll get the results you expect. It all comes down to which plan Oracle picks. But, in general, there is no guarantee about whether you'll get an error or whether you'll get the data you want.
You can define your own function
CREATE OR REPLACE FUNCTION my_to_number( p_str IN VARCHAR2 )
RETURN number
IS
l_num NUMBER;
BEGIN
l_num := to_number( p_str );
RETURN l_num;
EXCEPTION
WHEN others THEN
RETURN null;
END;and use that instead of to_number in your query. That will catch the exception if the function is applied to a row before one of the predicates is applied.
Justin -
dear gurus,
i am having some queries regarding number ranges,.
in number ranges of production orders i am finding..
number range group with check box under that i find the order types.Say(1234 -to9999)
pp01
pp04
zx01
.My requirement is I want to (detach) remove order type pp04.and I want to assign order type pp04 to different number range group.
please guide me>it is very urgent in client side.
please help me
guna -In co82,
Group -->maintain
inside the screen
keep coursor on PP04 and follow the menu path
Edit -->select element
Select the check box of group to which you want to assign and follow the menu path
Edit --> assign element group
then save.
come back if required -
Material Document Number Range query
Hi all,
How can I create Materila Doc Number Range Groups and elements . Pls note I want to create it new one and DO NOT WANT TO USE STANDARD .
Also how can I assign or relate or link this groups to Company code or Plant
Regards
Bhushan1. go to MMNR Transaction
2. click GROUP - change mode
3. go to menu: GROUP -> INSERT (F6)
4. maintain new group data and material number intervals
5. save
6. assign proper material types to new group.
If you want to control material number you can use enhacement:
Source: IMG help:
"enhacement MGA00002 (for industry) or enhancement MGW00002 (for retail) for this.
For more information, see the documentation for the following components assigned to these enhancements:
Industry
EXIT_SAPLMG02_001
EXIT_SAPLMG02_002
Retail
EXIT_SAPLMG72_001
With the exception of the transfer structure, this function is identical to customer enhancement MGA00002 for material number assignment for the material master for industry. Please see customer enhancement MGA00002 for more information and for sample coding.
EXIT_SAPLMG72_002
With the exception of the transfer structure, this function is identical to customer enhancement MGA00002 for material number assignment for the material master for industry. Please see customer enhancement MGA00002 for more information and for sample coding.
EXIT_SAPLMGNK_003"
Hope it helps.
Regards,
wojciech -
Find host name and port number using query
Hi,
How do find the system_name, host_name and port no
using sql query or data dictionary.
plzSELECT i.instance_name, i.host_name, f.release_name RELEASE, i.version, k.patch_level FROM
v$instance i, fnd_product_groups f, fnd_product_installations k WHERE
UPPER(SUBSTR(i.instance_name, 1, 4)) = UPPER(SUBSTR(f.applications_system_name, 1, 4)) AND
k.application_id = '200'; -
Dear Experts,
in my company, due to a SAP external system process it happens quite often that the same material/serial number should be sold, returned and sold again the same day(within several minutes). The external system isn't able to send (IDoc) the required postings in the right order. All sales are collected in only one IDoc - so we try to post the goods issue twice, before its return gets posted. This is not possible, due to the serial number's status ECUS.
Is there a way how I can define a serial number profile that doesn't change the status at all? or can I define a new status, which has no check function?
Or do you have any other good idea how I can solve this problem? ("do not work with serial numbers" is no option, I already asked that )
Any help is appreciated!
Thanks a lot
Kurt D. HessDear Experts,
in my company, due to a SAP external system process it happens quite often that the same material/serial number should be sold, returned and sold again the same day(within several minutes). The external system isn't able to send (IDoc) the required postings in the right order. All sales are collected in only one IDoc - so we try to post the goods issue twice, before its return gets posted. This is not possible, due to the serial number's status ECUS.
Is there a way how I can define a serial number profile that doesn't change the status at all? or can I define a new status, which has no check function?
Or do you have any other good idea how I can solve this problem? ("do not work with serial numbers" is no option, I already asked that )
Any help is appreciated!
Thanks a lot
Kurt D. Hess
Maybe you are looking for
-
How to load existing Ship TO's and BILL TO's to new Operating Unit
Hi Apps Gurus, We enabled new Operating Unit and need to load existing Operating Unit Bill TO's and SHIP TO's to new Operating Unit. Please let us know the procedure to meet this requirement. Thanks in Advance.... Venky
-
Seeing a lot of ERROR - could not decrypt password Given final block not...
What cause these error messages in DPS 6.x? [18/Apr/2009:23:05:55 -0400] - CONFIG - ERROR - could not decrypt password Given final block not properly padded [18/Apr/2009:23:05:55 -0400] - CONFIG - ERROR - could not decrypt password Given final block
-
Webserver restart automatically
We upgraded teh siteminder agent to 6 from 5. After teh upgrade , when we try to access the url, teh webserver reboots automatically. When I checked the error logs this is what I see. "20404: Server crash detected 20404: Crash occurred in NSAPI SAF s
-
MouseMotionListener doubt Please correct this small program
Write an applet to draw a red curve on a blue back ground which follows your cursor. Use anonymous inner classes. import java.applet.*; import java.awt.event.*; import java.awt.*; <applet code="Curve" width=200 height=100> </applet> public class Curv
-
Sony camcorder using Moff files
Hi I am using premier elements 7. I have a Sony HDR-TG3 camcorder, all of the video content is uploaded and placed in Moff files. These are not readable using premier elements. I need a codec installed so that these files are recognised. Can any one