Avoid Streching Tables
I just created a website with tables. I used a template for
the whole website. All cells look ok on the template but on some
pages the left and top cells stretch too much. Any remedy for this?
the webpage is www.sbmtd.gov
Your design is too wide because of the very large images you
have in the
header. The majority of your visitors will be running at
resolution of 1024
wide or less, yet at that resolution I have to scroll
sideways which is not
good. Remember that a screen resolution also includes the
verticle scroller.
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"Vivis Lei" <[email protected]> wrote in
message
news:f087u4$hho$[email protected]..
>I just created a website with tables. I used a template
for the whole
>website.
> All cells look ok on the template but on some pages the
left and top cells
> stretch too much. Any remedy for this? the webpage is
www.sbmtd.gov
>
Similar Messages
-
How to avoid full Table scan when using Rule based optimizer (Oracle817)
1. We have a Oracle 8.1.7 DB, and the optimizer_mode is set to "RULE"
2. There are three indexes on table cm_contract_supply, which is a large table having 28732830 Rows, and average row length 149 Bytes
COLUMN_NAME INDEX_NAME
PROGRESS_RECID XAK11CM_CONTRACT_SUPPLY
COMPANY_CODE XIE1CM_CONTRACT_SUPPLY
CONTRACT_NUMBER XIE1CM_CONTRACT_SUPPLY
COUNTRY_CODE XIE1CM_CONTRACT_SUPPLY
SUPPLY_TYPE_CODE XIE1CM_CONTRACT_SUPPLY
VERSION_NUMBER XIE1CM_CONTRACT_SUPPLY
CAMPAIGN_CODE XIF1290CM_CONTRACT_SUPPLY
COMPANY_CODE XIF1290CM_CONTRACT_SUPPLY
COUNTRY_CODE XIF1290CM_CONTRACT_SUPPLY
SUPPLIER_BP_ID XIF801CONTRACT_SUPPLY
COMMISSION_LETTER_CODE XIF803CONTRACT_SUPPLY
COMPANY_CODE XIF803CONTRACT_SUPPLY
COUNTRY_CODE XIF803CONTRACT_SUPPLY
COMPANY_CODE XPKCM_CONTRACT_SUPPLY
CONTRACT_NUMBER XPKCM_CONTRACT_SUPPLY
COUNTRY_CODE XPKCM_CONTRACT_SUPPLY
SUPPLY_SEQUENCE_NUMBER XPKCM_CONTRACT_SUPPLY
VERSION_NUMBER XPKCM_CONTRACT_SUPPLY
3. We are querying the table for a particular contract_number and version_number. We want to avoid full table scan.
SELECT /*+ INDEX(XAK11CM_CONTRACT_SUPPLY) */
rowid, pms.cm_contract_supply.*
FROM pms.cm_contract_supply
WHERE
contract_number = '0000000000131710'
AND version_number = 3;
However despite of giving hint, query results are fetched after full table scan.
Execution Plan
0 SELECT STATEMENT Optimizer=RULE (Cost=1182 Card=1 Bytes=742)
1 0 TABLE ACCESS (FULL) OF 'CM_CONTRACT_SUPPLY' (Cost=1182 Card=1 Bytes=742)
4. I have tried giving
SELECT /*+ FIRST_ROWS + INDEX(XAK11CM_CONTRACT_SUPPLY) */
rowid, pms.cm_contract_supply.*
FROM pms.cm_contract_supply
WHERE
contract_number = '0000000000131710'
AND version_number = 3;
and
SELECT /*+ CHOOSE + INDEX(XAK11CM_CONTRACT_SUPPLY) */
rowid, pms.cm_contract_supply.*
FROM pms.cm_contract_supply
WHERE
contract_number = '0000000000131710'
AND version_number = 3;
But it does not work.
Is there some way without changing optimizer mode and without creating an additional index, we can use the index instead of full table scan?David,
Here is my test on a Oracle 10g database.
SQL> create table mytable as select * from all_tables;
Table created.
SQL> set autot traceonly
SQL> alter session set optimizer_mode = choose;
Session altered.
SQL> select count(*) from mytable;
Execution Plan
0 SELECT STATEMENT Optimizer=CHOOSE
1 0 SORT (AGGREGATE)
2 1 TABLE ACCESS (FULL) OF 'MYTABLE' (TABLE)
Statistics
1 recursive calls
0 db block gets
29 consistent gets
0 physical reads
0 redo size
223 bytes sent via SQL*Net to client
276 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
1 rows processed
SQL> analyze table mytable compute statistics;
Table analyzed.
SQL> select count(*) from mytable
2 ;
Execution Plan
0 SELECT STATEMENT Optimizer=CHOOSE (Cost=11 Card=1)
1 0 SORT (AGGREGATE)
2 1 TABLE ACCESS (FULL) OF 'MYTABLE' (TABLE) (Cost=11 Card=1
788)
Statistics
1 recursive calls
0 db block gets
29 consistent gets
0 physical reads
0 redo size
222 bytes sent via SQL*Net to client
276 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
1 rows processed
SQL> disconnect
Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP and Data Mining options -
How can this query avoid full table scans?
It is difficult to avoid full table scans in the following query because the values of column STATUS reiterant numbers. There are only 10 numbers values for the STATUS column (1..10)
But the table is very large. there are more than 1 million rows in it. A full table scanning consumes too much time.
How can this query avoid full table scans?
Thank you
SELECT SYNC,CUS_ID INTO V_SYNC,V_CUS_ID FROM CONSUMER_MSG_IDX
WHERE CUS_ID = V_TYPE_CUS_HEADER.CUS_ID AND
ADDRESS_ID = V_TYPE_CUS_HEADER.ADDRESS_ID AND
STATUS =! 8;Edited by: junez on Jul 23, 2009 7:30 PMYour code had an extra AND. I also replaced the "not equal" operator, which has display problems with the forum software
SELECT SYNC,CUS_ID
INTO V_SYNC,V_CUS_ID
FROM CONSUMER_MSG_IDX
WHERE CUS_ID = V_TYPE_CUS_HEADER.CUS_ID AND
ADDRESS_ID = V_TYPE_CUS_HEADER.ADDRESS_ID AND
STATUS != 8;Are you sure this query is doing a table scan? Is there an index on CUS_ID, ADDRESS_ID? I would think that would be mostly unique. So I'm not sure why you think the STATUS column is causing problems. It would seem to just be a non-selective additional filter.
Justin -
Hi All, We are in process of getting ride of the TEmproary tables. As usual DBAS are giving hard time.
Please see these After paramters form Trigger. It creates atable TEMP_SERVICES .Can I avoid the table.
Can I do the calcuations in PL/sql.
Please help
BEGIN
DECLARE
WS_SERVICE VARCHAR2(7) := NULL;
WS_SSN VARCHAR2(9) := NULL;
C_SERVICE VARCHAR2(7) := NULL;
C_SSN VARCHAR2(9) := NULL;
CURSOR INPUT_SERVICES IS
SELECT SERVICE, SSN FROM SERVICES
WHERE to_char(PROVIDER) like :up_provider
ORDER BY 1,2;
input_rec input_services%ROWTYPE;
begin
SRW.DO_SQL('create table temp_services
( service varchar2(7),
ssn varchar2(9))');
OPEN INPUT_SERVICES;
LOOP
FETCH INPUT_SERVICES INTO INPUT_REC;
EXIT WHEN INPUT_SERVICES%NOTFOUND;
C_SERVICE := INPUT_REC.SERVICE;
C_SSN := INPUT_REC.SSN;
IF INPUT_SERVICES%ROWCOUNT=1 THEN
WS_SERVICE := C_SERVICE;
WS_SSN := C_SSN;
ELSIF C_SERVICE != WS_SERVICE THEN
SRW.DO_SQL('INSERT INTO TEMP_SERVICES
VALUES('''||WS_SERVICE||''','''||WS_SSN||''')');
SRW.DO_SQL('COMMIT');
WS_SERVICE := C_SERVICE;
WS_SSN := C_SSN;
ELSIF C_SSN != WS_SSN THEN
SRW.DO_SQL('INSERT INTO TEMP_SERVICES
VALUES('''||WS_SERVICE||''','''||WS_SSN||''')');
SRW.DO_SQL('COMMIT');
WS_SERVICE := C_SERVICE;
WS_SSN := C_SSN;
END IF;
END LOOP;
CLOSE INPUT_SERVICES;
SRW.DO_SQL('INSERT INTO TEMP_SERVICES
VALUES('''||WS_SERVICE||''','''||WS_SSN||''')');
SRW.DO_SQL('COMMIT');
END;
return (TRUE);
end;
Please helpSee:
"Using a Collection Instead of a Temporary Table in Complex Reports"
http://www.quest-pipelines.com/pipelines/plsql/tips03.htm#NOVEMBER
Regards,
Zlatko Sirotic -
Avoiding Z-table and having a global internal table during Sales Order
Hi All,
I have a requirement like this.
1. In the R/3 system I am creating Sales order.
2. For each line item, it will call APO system to check the availability of the materials and the informaiton is returned back to
R/3 system.
3. As the soon as the informaiton is recieved in R/3 system, we found one enhancement point and this informaiton is being captured now in a Z-table to do some processing while saving the order after processing all the line items
4. I wanted to avoid the Z-table and want to have some global internal table which will be available till the end of the processing of the sales order.
Solution I am thinking of:
1. One option could be creating a global internal table in SAPMV45A program in one of the enhancement points in the TOP declaration. But, that global internal table is not accessible in the enhancement point where I wanted to store the information. Because, I am actually updating the table in a FM.
2. Export it to memory and import it when needed. But, how to update the informaiton in this intenal table(which is in memory) for every line item
Please guide me. Any help on this would be highly appreciated.
Thanks,
Babu Kilari>
Babu Kilari wrote:
> Solution I am thinking of:
>
> 1. One option could be creating a global internal table in SAPMV45A program in one of the enhancement points in the TOP declaration. But, that global internal table is not accessible in the enhancement point where I wanted to store the information. Because, I am actually updating the table in a FM.
> Babu Kilari
If you are updating this table in a FM, you can always add one tables parameter to the function ( if it is a custom function) and pass the globally declared internal table to the function call in the user exit update the table in the FM and when the end function is reached, you will have the updated internal table again at the user exit after the function call.
Imp- Declare your internal table in MV45ATZZ.
KR,
Advait
Edited by: Advait Gode on Aug 6, 2009 8:16 AM -
Avoiding Mutating table (ORA-04091)
Hi Folks,
I encounter the following error while I'm trying to update a table which fires an after update trigger.
What steps should I take to avoid this error.
ORA-04091: table test is mutating, trigger/function may not see it
table test (id number, status varchar2(10), dt date);
I just want my trigger to update date in test table once it's fired.
create or replace trigger AU_TEST
after update on test
for each row
BEGIN
UPDATE TEST
SET DT= :new.DT;
END IF;
END;
How can I go around this mutating error?
Thanks in advance.Hi,
I have a situation where on queue will update a table SAMPLE. In the demo table i have two columns SAMPLE_VOLUME and SAMPLE_TYPE. When it updates one row, if the SAMPLE_VOLUME is greater than 0, i have to insert 1 in the corresponding SAMPLE_TYPE column. How can i achive this? I wrote a trigger like this. but it give the above mutating error.
CREATE or REPLACE TRIGGER TRIGGER_SAMPLE_UPDATE
AFTER INSERT OR UPDATE ON SAMPLE
FOR EACH ROW
DECLARE
SAMPLE_VOLUME NUMBER;
BEGIN
IF(SAMPLE_VOLUME > 0) THEN
INSERT INTO SAMPLE(SAMPLE_TYPE) VALUES(1);
ELSE
INSERT INTO SAMPLE(SAMPLE_TYPE) VALUES(2);
END IF;
END;
Could you help me in this? -
Version 12c.
I am loading a file into Attunity table. In mapping physical view, I have specified Preset Staging location to my file logical schema as I don't want the staging table to be created in my target. But it is still trying to create staging table at target. How can I avoid creating staging table in target ?Hi,
I have resolved it by changing the staging table location to another database user using physical view.
Regards,
Arfan -
URGENT HELP Required: Solution to avoid Full table scan for a PL/SQL query
Hi Everyone,
When I checked the EXPLAIN PLAN for the below SQL query, I saw that Full table scans is going on both the tables TABLE_A and TABLE_B
UPDATE TABLE_A a
SET a.current_commit_date =
(SELECT MAX (b.loading_date)
FROM TABLE_B b
WHERE a.sales_order_id = b.sales_order_id
AND a.sales_order_line_id = b.sales_order_line_id
AND b.confirmed_qty > 0
AND b.data_flag IS NULL
OR b.schedule_line_delivery_date >= '23 NOV 2008')
Though the TABLE_A is a small table having nearly 1 lakh records, the TABLE_B is a huge table, having nearly 2 and a half crore records.
I created an Index on the TABLE_B having all its fields used in the WHERE clause. But, still the explain plan is showing FULL TABLE SCAN only.
When I run the query, it is taking long long time to execute (more than 1 day) and each time I have to kill the session.
Please please help me in optimizing this.
Thanks,
SudhindraCheck the instruction again, you're leaving out information we need in order to help you, like optimizer information.
- Post your exact database version, that is: the result of select * from v$version;
- Don't use TOAD's execution plan, but use
SQL> explain plan for <your_query>;
SQL> select * from table(dbms_xplan.display);(You can execute that in TOAD as well).
Don't forget you need to use the {noformat}{noformat} tag in order to post formatted code/output/execution plans etc.
It's also explained in the instruction.
When was the last time statistics were gathered for table_a and table_b?
You can find out by issuing the following query:select table_name
, last_analyzed
, num_rows
from user_tables
where table_name in ('TABLE_A', 'TABLE_B');
Can you also post the results of these counts;select count(*)
from table_b
where confirmed_qty > 0;
select count(*)
from table_b
where data_flag is null;
select count(*)
from table_b
where schedule_line_delivery_date >= /* assuming you're using a date, and not a string*/ to_date('23 NOV 2008', 'dd mon yyyy'); -
How to avoid a table to be selected by a user with 'select any table' grant
Hello,
I want a table to be non selectable for a particular user even if that user has a 'select any table' grant.
either the query can return no rows or an error message, it doesn't matter.
how can I achieve this with a standard database configuration? I mean I am not allowed to use any tool of Oracle like vault etc..
thanks in advance...Fine-grained access control (aka VPD, more or less) is part of Enterprise Edition. It is not a separate tool. See Oracle Database Editions
You can read about it here Using Oracle Virtual Private Database to&nbsp;Control&nbsp;Data Access
The main thing to understand is the predicte-generating function, and all the opportunities there. This example is from a presentation I once gave to a local Oracle users group.
The policy (not shown) specifies FGAC_PKG.FGAC_PREDICATE_FNC as the predicate-generating function. If the user has role FGAC_DEMO_ALL_COMPANIES_ROLE then his view is not restricted; if his username does not appear in the COMPANY_AUTHORIZATION table he will get an error when querying the protected table; otherwise he will be restricted to see only the companies he is authorized for. So this has some elements that may be useful to you.
CREATE OR REPLACE PACKAGE BODY FGAC_DEMO_SCHEMA.FGAC_PKG AS
FUNCTION FORCE_FGAC_ERROR_FNC (in_object VARCHAR2) RETURN NUMBER IS
e_not_authorized exception;
PRAGMA exception_init(e_not_authorized, -20667);
BEGIN
RAISE e_not_authorized;
RETURN (-1); -- will NEVER get here (have already raised an error)
EXCEPTION
WHEN e_not_authorized then
RAISE_APPLICATION_ERROR (sqlcode,
sqlerrm||'Access to '|| in_object ||
' requires access to at least one company, but none have been authorized.' );
END FORCE_FGAC_ERROR_FNC;
FUNCTION FGAC_PREDICATE_FNC (in_schema VARCHAR2, in_object VARCHAR2)
RETURN VARCHAR2
IS
out_predicate VARCHAR2 (400);
c_filter_predicate constant varchar2(400) :=
'COMPANY_ID IN (SELECT COMPANY_ID FROM COMPANY_AUTHORIZATION '||
'WHERE USER_NAME = USER)';
c_bypass_filtering_role VARCHAR2(30) := 'FGAC_DEMO_ALL_COMPANIES_ROLE';
v_authorization_count NUMBER;
c_error_predicate constant varchar2(400) :=
'FGAC_DEMO_SCHEMA.FGAC_PKG.FORCE_FGAC_ERROR_FNC('''||
in_schema||'.'||in_object||''') = 0';
BEGIN
IF DBMS_SESSION.is_role_enabled (c_bypass_filtering_role) THEN
out_predicate := NULL;
ELSE
SELECT COUNT(*) INTO v_authorization_count
FROM COMPANY_AUTHORIZATION
WHERE USER_NAME = USER;
IF v_authorization_count = 0 then
out_predicate := c_error_predicate;
ELSE
out_predicate := c_filter_predicate;
END IF;
END IF;
RETURN out_predicate;
END FGAC_PREDICATE_FNC;
END FGAC_PKG; -
Hi.
I need some suggestion desparately.I am new to ODI and i have to learn myself.
I dont want temp tables to be created. is it possible?
ThanksHi my last question is when i am creating target DataServer then Physical Schema
I can see two schema that is SCHEMA & WORKSCHEMA
Are both schema should same if not then while i am using IKM KM , does that I$ table is going to be created in the WORKSCHEMA or not.
if i am giving WORKSCHEMA differnt than SCHEMA , then my SCHEMA should have the privillege TO create temp table in WORKSCHEMA.
example SCHEMA (SIMSDT1)
WORKSCHEMA ( ODIDT1)
now during I$ table creation the command should be like this as i guess (staging different than target)
in SIMSDT1
create table ODIDT1. I$ (aa number)
Now when i saw IKM create flow table is in current execution, so it should create temp table in SIMSDT1
please suggest i am right or wrong. Really confused
Thanks -
Avoid Joining Table Multiple Times
I have two tables EMPLOYEE and EMPLOYEE_HOURS.
EMPLOYEE contains EMPLOYEE_ID
EMPLOYEE_HOURS contains EMPLOYEE_ID, HOURS, TYPE
So the EMPLOYEE_HOURS table will contain multiple entries for a given period with hours for types 1, 2 and 3.
I need to display all this on a single line. My query today is
select e.employee_id, eh1.hours, eh2.hours, eh3,hours
from employee e
inner join employee_hours eh1 on e.employee_id = eh1.employee_id and eh1.type = 1
inner join employee_hours eh1 on e.employee_id = eh1.employee_id and eh1.type = 2
inner join employee_hours eh1 on e.employee_id = eh1.employee_id and eh1.type = 3This only works if I know the number of types and their codes. I know I could create a procedure and build the query dynamically, but I’m wondering if there’s some other SQL and/or PL/SQL that can handle this in a single query?
Thanks,
MarkIf you don't know the number of codes in advance, then you don't know the number of columns in the result set in advance. Since a single SQL statement cannot return different numbers of columns on different executions, that almost always means that you need to use dynamic SQL to generate the SQL statement at runtime. It is possible, as well, to write a generic pipelined table function that returns a different number of rows but that is generally vastly more complicated (there have been examples posted here in the forums if you really want to go down that path).
If you know the number of codes (or you can return a fixed number of columns that is known in advance), you don't need to know the individual code values
SELECT employee_id,
MAX( CASE WHEN rnk = 1 THEN hours ELSE null END) hours_1,
MAX( CASE WHEN rnk = 2 THEN hours ELSE null END) hours_2,
MAX( CASE WHEN rnk = 3 THEN hours ELSE null END) hours_3
FROM (SELECT employee_id, hours, rank() over (partition by employee_id order by type_id) rnk
FROM employee)
GROUP BY employee_idJustin -
Hi,
My Query generation needs to be fine tuned. There are several queries generated that force full table scans of large tables. My question over here is whether functions and decodes need to be removed so that the queries take full advantage of the indexes on the table? I have used decode, Sum, case functions. So does it forces a full table scan of item price table (> 200 million records) as many times I have used these functions?
How can I optimized it in more better way?How to see execution plan? Is it like explain plan you are saying? Can you please brief me on same.
My query is
Select S_ACCT_INFO.CUST_ACCT_NAM as CUST_ACCT_NAM,
S_SLS_CRMEM_ITEM.CUST_ACCT_ID as CUST_ACCT_ID,
S_SLS_CRMEM_ITEM.CUST_CNTRC_ID as CUST_CNTRC_ID,
S_MCK_ITEM.GNRC_ID as GNRC_ID,
S_MCK_ITEM.GNRC_NAM as GNRC_NAM,
S_MCK_ITEM.SELL_DSCR_TXT as SELL_DSCR_TXT,
S_MCK_ITEM.ITEM_STAT_CD_DSPSTN as ITEM_STAT_CD_DSPSTN,
S_MCK_ITEM.RETL_LBL_CNT as RETL_LBL_CNT,
S_MCK_ITEM.LBL_NAM as LBL_NAM,
S_MCK_ITEM.MFG_SIZ_QTY as MFG_SIZ_QTY,
S_SLS_CRMEM_ITEM.EM_ITEM_NUM as EM_ITEM_NUM,
S_MCK_ITEM.NDC_NUM as NDC_NUM,
S_MCK_ITEM.SPLR_ITEM_SEQ_NUM as SPLR_ITEM_SEQ_NUM,
S_MCK_ITEM.SPLR_ACCT_NAM as SPLR_ACCT_NAM,
S_MCK_ITEM.SPLR_ACCT_ID as SPLR_ACCT_ID,
S_MCK_ITEM.UPC_NUM as UPC_NUM,
S_IW_CNTRC_LEAD.CNTRC_LEAD_NAM as CNTRC_LEAD_NAM,
DECODE(S_SLS_CRMEM_ITEM.CNTRC_LEAD_TP_ID, NULL, 'N', 'Y') CNTRC_IND_HIST,
S_SLS_CRMEM_ITEM.CNTRC_LEAD_TP_ID as CNTRC_LEAD_TP_ID,
S_SLS_CRMEM_ITEM.SLS_DOC_NUM as SLS_DOC_NUM,
SUM(S_SLS_CRMEM_ITEM.SLS_AMT) INV_EXT_PRC_3,
S_SLS_CRMEM_ITEM.SLS_PROC_WRK_DT as SLS_PROC_WRK_DT,
CASE
WHEN S_SLS_CRMEM_ITEM.GRS_SLS_QTY <> 0 THEN
ROUND(S_SLS_CRMEM_ITEM.GRS_SLS_AMT / S_SLS_CRMEM_ITEM.GRS_SLS_QTY,
2)
ELSE
0
END INV_PRC_PKG_2,
SUM(S_SLS_CRMEM_ITEM.SLS_QTY) NET_QTY_3,
S_SLS_CRMEM_ITEM.CUST_PO_NUM as CUST_PO_NUM,
CASE
WHEN S_SLS_CRMEM_ITEM.CUST_OMIT_IND IN
('L', 'U', 'R', 'F', 'A', 'X') THEN
SUM(S_SLS_CRMEM_ITEM.ORDR_QTY - S_SLS_CRMEM_ITEM.GRS_SLS_QTY)
ELSE
0
END QTY_OMTD_MUS_1,
S_ACCT_INFO.NATL_SUB_GRP_CD as NATL_SUB_GRP_CD,
S_ACCT_INFO.CUST_STOR_NUM as CUST_STOR_NUM,
S_MCK_ITEM.PKG_SIZ as PKG_SIZ,
SUM(S_SLS_CRMEM_ITEM.GRS_SLS_QTY) INV_QTY_1,
SUM(S_SLS_CRMEM_ITEM.ORDR_QTY) ORDR_QTY_2,
SUM(S_SLS_CRMEM_ITEM.ORDR_QTY - S_SLS_CRMEM_ITEM.GRS_SLS_QTY) QTY_OMTD_1,
SUM(S_SLS_CRMEM_ITEM.GRS_RTN_QTY) RTRN_QTY_1
from S_SLS_CRMEM_ITEM
LEFT OUTER JOIN S_MCK_ACCT_ITEM_PRC ON (S_SLS_CRMEM_ITEM.CUST_ACCT_ID =
S_MCK_ACCT_ITEM_PRC.CUST_ACCT_ID AND
S_SLS_CRMEM_ITEM.EM_ITEM_NUM =
S_MCK_ACCT_ITEM_PRC.ITEM_NUM)
LEFT OUTER JOIN S_ACCT_CNTRC_LEAD_TYP ON (S_MCK_ACCT_ITEM_PRC.CUST_ACCT_ID =
S_ACCT_CNTRC_LEAD_TYP.CUST_ACCT_ID AND
S_MCK_ACCT_ITEM_PRC.CNTRC_LEAD_ID =
S_ACCT_CNTRC_LEAD_TYP.CNTRC_LEAD_ID)
LEFT OUTER JOIN S_IW_CNTRC_LEAD ON (S_MCK_ACCT_ITEM_PRC.CNTRC_LEAD_ID =
S_IW_CNTRC_LEAD.CNTRC_LEAD_ID)
INNER JOIN S_ACCT_INFO ON (S_SLS_CRMEM_ITEM.CUST_ACCT_ID =
S_ACCT_INFO.CUST_ACCT_ID)
LEFT OUTER JOIN S_VA_CUST_CNTRC ON (S_SLS_CRMEM_ITEM.CUST_ACCT_ID =
S_VA_CUST_CNTRC.CUST_ACCT_ID AND
S_SLS_CRMEM_ITEM.EM_ITEM_NUM =
S_VA_CUST_CNTRC.ITEM_NUM)
INNER JOIN S_MCK_ITEM ON (S_SLS_CRMEM_ITEM.EM_ITEM_NUM =
S_MCK_ITEM.EM_ITEM_NUM)
where ((((((((S_SLS_CRMEM_ITEM.CUST_ACCT_ID in ('110718') or
(S_ACCT_INFO.NATL_GRP_CD = '0227' and
S_ACCT_INFO.NATL_SUB_GRP_CD = '000001')) or
(S_ACCT_INFO.NATL_GRP_CD = '0227' and
S_ACCT_INFO.NATL_SUB_GRP_CD = '000002')) or
(S_ACCT_INFO.NATL_GRP_CD = '0227' and
S_ACCT_INFO.NATL_SUB_GRP_CD = '000003')) or
(S_ACCT_INFO.NATL_GRP_CD = '0227' and
S_ACCT_INFO.NATL_SUB_GRP_CD = '000005')) or
(S_ACCT_INFO.CUST_CHN_ID = '227' and
S_ACCT_INFO.CUST_RGN_NUM = '000001')) or
(S_ACCT_INFO.CUST_CHN_ID = '227' and
S_ACCT_INFO.CUST_RGN_NUM = '000002')) or
(S_ACCT_INFO.CUST_CHN_ID = '227' and
S_ACCT_INFO.CUST_RGN_NUM = '000003')) or
(S_ACCT_INFO.CUST_CHN_ID = '227' and
S_ACCT_INFO.CUST_RGN_NUM = '000005'))
and S_MCK_ITEM.SPLR_ACCT_ID IN
('34227', '34232', '34233', '34228', '34229', '34230', '34231',
'34235', '34236', '78063', '84230', '90014', '98014')
and (S_SLS_CRMEM_ITEM.SLS_PROC_WRK_DT between
to_date('04/01/2007', 'MM/DD/YYYY') and
to_date('06/30/2007', 'MM/DD/YYYY'))
GROUP BY S_ACCT_INFO.CUST_ACCT_NAM,
S_SLS_CRMEM_ITEM.CUST_ACCT_ID,
S_SLS_CRMEM_ITEM.CUST_CNTRC_ID,
S_MCK_ITEM.GNRC_ID,
S_MCK_ITEM.GNRC_NAM,
S_MCK_ITEM.SELL_DSCR_TXT,
S_MCK_ITEM.ITEM_STAT_CD_DSPSTN,
S_MCK_ITEM.RETL_LBL_CNT,
S_MCK_ITEM.LBL_NAM,
S_MCK_ITEM.MFG_SIZ_QTY,
S_SLS_CRMEM_ITEM.EM_ITEM_NUM,
S_MCK_ITEM.NDC_NUM,
S_MCK_ITEM.SPLR_ITEM_SEQ_NUM,
S_MCK_ITEM.SPLR_ACCT_NAM,
S_MCK_ITEM.SPLR_ACCT_ID,
S_MCK_ITEM.UPC_NUM,
S_IW_CNTRC_LEAD.CNTRC_LEAD_NAM,
DECODE(S_SLS_CRMEM_ITEM.CNTRC_LEAD_TP_ID, NULL, 'N', 'Y'),
S_SLS_CRMEM_ITEM.CNTRC_LEAD_TP_ID,
S_SLS_CRMEM_ITEM.SLS_DOC_NUM,
S_SLS_CRMEM_ITEM.SLS_PROC_WRK_DT,
CASE
WHEN S_SLS_CRMEM_ITEM.GRS_SLS_QTY <> 0 THEN
ROUND(S_SLS_CRMEM_ITEM.GRS_SLS_AMT /
S_SLS_CRMEM_ITEM.GRS_SLS_QTY,
2)
ELSE
0
END,
S_SLS_CRMEM_ITEM.CUST_PO_NUM,
S_SLS_CRMEM_ITEM.CUST_OMIT_IND,
S_ACCT_INFO.NATL_SUB_GRP_CD,
S_ACCT_INFO.CUST_STOR_NUM,
S_MCK_ITEM.PKG_SIZ
order by S_MCK_ITEM.NDC_NUM asc,
S_SLS_CRMEM_ITEM.SLS_PROC_WRK_DT asc,
S_SLS_CRMEM_ITEM.SLS_PROC_WRK_DT asc -
I have a problem with a table not resizing correctly in some browsers
Hi,
I am using the fluid grid layout in DW. I have created a table to hold some images and text. I have the table set to 100% instead of a fixed width.
The table and images resize correctly at my smartphone breakpoint in DW and Crome. They do not resize correctly in IE10 or Firefox.
I hope somebody can point out the error of my ways.
Thanks
http://cupcakemary.skeeterz71.com/_cm_mockup/menu.htmlTables do not work well in Fluid Grid Layouts because table width is always going to be determined by combined width of the content inside it. As such it won't re-scale past a certain point no matter what you do. I typically avoid using tables for layouts anyway. But especially in FluidGrids.
If you build your FluidGrid layout correctly from the start, there's little reason to use tables.
LayoutDiv 1 LayoutDiv 2 LayoutDiv 3
float:left float:left float:left
On smaller displays, these divs will naturally stack vertically.
LayoutDiv1
LayoutDiv2
LayoutDiv 3
Nancy O. -
"Tables are not using indexes"-Please help
We have a new database , version
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Productio
NLSRTL Version 10.2.0.1.0 - Production
We have created Indexes for the tables and analysed the table. Problem is , non of the tables are using indexes. Explain paln for the sql queries are showing full table scan.
Kindly let me know any parameter I have to change or is there any setttings needed on database level?
Thanks in advance.
Regards,
ChotuWhat is your optimizer mode?
Another question why you want to use indexes? Use of indexes depends,
Here is a simple example
test@>ed
Wrote file afiedt.buf
1 explain plan for
2 select c.cname from mytable c, mytable1 m
3* where c.cname=m.cname
test@>/
Explained.
test@>SELECT PLAN_TABLE_OUTPUT FROM TABLE(DBMS_XPLAN.DISPLAY());
PLAN_TABLE_OUTPUT
Plan hash value: 2460944079
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 8 | 64 | 1 (0)| 00:00:01 |
| 1 | NESTED LOOPS | | 8 | 64 | 1 (0)| 00:00:01 |
| 2 | INDEX FULL SCAN | C_MYTAB_IDX | 8 | 32 | 1 (0)| 00:00:01 |
|* 3 | INDEX RANGE SCAN| C_MYTAB1_IDX | 1 | 4 | 0 (0)| 00:00:01 |
Predicate Information (identified by operation id):
3 - access("C"."CNAME"="M"."CNAME")
15 rows selected.
test@>explain plan for
2 select * from mytable;
Explained.
test@>SELECT PLAN_TABLE_OUTPUT FROM TABLE(DBMS_XPLAN.DISPLAY());
PLAN_TABLE_OUTPUT
Plan hash value: 1229213413
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 8 | 32 | 3 (0)| 00:00:01 |
| 1 | TABLE ACCESS FULL| MYTABLE | 8 | 32 | 3 (0)| 00:00:01 |
8 rows selected.As you see MYTABLE has an index but it not always uses that index it depends on the need.
sql queries are showing full table scan this is a not a curse. So unless you are having some problem. You should not change queries only because to avoid full table scans, there is no rule that indexes should always be used in every case.
Adith -
Dear all,
While doing a stress testing I found that there was a lot a full table scans due to which there was preformance drop. How can I avoid full table scans. Please suggest some ways as I am in clients place.
Waiting for your help.
Regards and thanks in advance
SLHi SL,
How can I avoid full table scansFull table scans are not always bad! It depends foremost on your optimizer goal (all_rows vs. first_rows), plus your multiblock read count, table size, percentage of rows requested, and many other factors.
Here are my notes:
http://www.dba-oracle.com/art_orafaq_oracle_sql_tune_table_scan.htm
To avoid full table scans, start by running plan9i.sql and then drill-in and see if you have missing indexes:
http://www.dba-oracle.com/t_plan9i_sql_full_table_scans.htm
You can also run the 10g SQLTuning advisor to find missing indexes, and also, don't forget to consider function-based indexes, a great way to eliminate unncessary lage-table full-table scans:
http://www.dba-oracle.com/oracle_tips_index_scan_fbi_sql.htm
Hope this helps. . .
Donald K. Burleson
Oracle Press author
Maybe you are looking for
-
Yoga 2 Pro - Hyper-V not working right on Win 8.1 Pro
I wiped my Yoga 2 Pro and loaded Win 8.1 Pro, with all Lenovo drivers installed. I also enabled Hyper-V in the BIOS. However, I keep running into this issue as seen in the System event log: "The speed of Hyper-V logical processor 2 is being limited b
-
I've dropped my MacBook Pro Retina and the lid is slightly out of position.
Hey I was on my Macbook, holding it in one hand (silly me!) and then I suddenly dropped it on the floor (carpet) it was about chest height and the lid was open. The damage may not look significant but I've got OCD and my lid needs to be back to norma
-
Ok so I have been blessed with the most unlucky of situations anybody could Imagine. My Dilemma is that I now have a new Macbook Pro running Mavericks 10.9.4 as my old one is many, many years old. Now the problem is that I need to unlock the gold pad
-
External Table 4- Default Values
Hi My External Table is working fine , but I want put Default Values when Null, Example when COD_REJ is NULL I want Put 3 spaces CREATE TABLE SPAYDES.TB_EXT_BONUS SEQ CHAR(11 BYTE), CNPJ CHAR(14 BYTE), CARTAO CHAR(16 BYTE), NOME
-
Error generating Client Proxy - object missing in WSDL
Hello, I have error while generating Client Proxy. I have WSDL and XSD in files. I get error message: object <message name="requestUPOMessage"> missing in WSDL Diagnosis In the WSDL document, the object "<portType name="GateServicePortType"> <oper