Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
SQL HELP
 Login/Join
 
Member
posted
I am running the following code. I am loosing records when I run this in webfocus does anyone know why this might be happening? This should get 401 records and I am getting 334.

SQL SQLORA
SELECT T.OWNER AS TABLE_OWNER,
T.TABLE_NAME,
CASE WHEN T.TABLE_NAME LIKE '%DIM'
THEN 'DIM' ELSE 'FACT' END AS TABLE_TYPE,
SUBSTR(TC.COMMENTS, 1,10) as TABLE_COMMENT,
C.COLUMN_NAME,
C.COLUMN_ID,
SUBSTR(CC.COMMENTS,1,10) AS COL_COMMENT
FROM ALL_TABLES T
JOIN ALL_TAB_COMMENTS TC
ON T.OWNER = TC.OWNER
AND T.TABLE_NAME = TC.TABLE_NAME
AND T.OWNER IN ('DWHDBA')
AND (T.TABLE_NAME LIKE 'DM_DTD%'
OR T.TABLE_NAME LIKE 'DM%DIM')
AND T.TABLE_NAME NOT LIKE 'DM_EVT%'
AND T.TABLE_NAME NOT LIKE 'DM_R%'
AND T.TABLE_NAME NOT IN
('DM_DTD_WKLY_FACT_REBUILD',
'DM_CTRL',
'DM_ACT_FACT',
'DM_CONS_SAL_FACT',
'DM_CR_FACT',
'DM_SAL_FACT',
'DM_PAR_FACT',
'DM_CUST_PR_PL_DIM',
'DM_ORD_TY_DIM',
'DM_TM_MO_DIM',
'DM_DLY_SAL_FACT' )
JOIN ALL_TAB_COLUMNS C
ON T.OWNER = C.OWNER
AND T.TABLE_NAME = C.TABLE_NAME
AND C.COLUMN_NAME != 'LD_ID'
JOIN ALL_COL_COMMENTS CC
ON T.OWNER = CC.OWNER
AND T.TABLE_NAME = CC.TABLE_NAME
AND C.COLUMN_NAME = CC.COLUMN_NAME
ORDER BY 3,2,6
;

TABLE FILE SQLOUT
PRINT *
END
-EXIT


WebFOCUS 7.61
Windows 2003
Output: EXCEL, HTML and PDF
 
Posts: 2 | Registered: November 06, 2007Report This Post
Master
posted Hide Post
Try a LEFT JOIN.



Server: WF 7.6.2 ( BID/Rcaster) Platform: W2003Server/IIS6/Tomcat/SQL Server repository Adapters: SQL Server 2000/Oracle 9.2
Desktop: Dev Studio 765/XP/Office 2003 Applications: IFS/Jobscope/Maximo
 
Posts: 888 | Location: Airstrip One | Registered: October 06, 2006Report This Post
Member
posted Hide Post
I have found the problem. It was permissions to the tables.


WebFOCUS 7.61
Windows 2003
Output: EXCEL, HTML and PDF
 
Posts: 2 | Registered: November 06, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders