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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] DB_LOOKUP with inequality filters

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] DB_LOOKUP with inequality filters
 Login/Join
 
Member
posted
I understand that DB_LOOPUP is a great function to pull information from database without worry about joining the tables.

Like,

DB_LOOKUP(look_mf,srcfld1,lookfld1,srcfld2,lookfld2,returnfld)

will be same as

select returnfld from look_mf
where srcfld1 = lookfld1
and srcfld2 = lookfld2

What if I want to use inequality filter in the query like this

select returnfld from look_mf
where srcfld1 = lookfld1
and srcfld2 <> 'A'

Is there any way to utilize DB_LOOPUP for this kind of query?

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS 7
Linux
Output: pdf, excel, and html
 
Posts: 9 | Registered: December 17, 2007Report This Post
Virtuoso
posted Hide Post
Not exactly what you want, but it's the closest I could think of. And instead of DB_LOOKUP you'll be using DB_INFILE.

TABLE FILE CAR
BY COUNTRY
WHERE COUNTRY EQ 'ENGLAND' OR 'JAPAN';
WHERE BODYTYPE NE 'SEDAN';
ON TABLE HOLD AS File1 FORMAT BINARY
END
-RUN

TABLE FILE CAR
BY COUNTRY
BY CAR
BY MODEL
WHERE DB_INFILE('File1',COUNTRY,COUNTRY);
END


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] DB_LOOKUP with inequality filters

Copyright © 1996-2020 Information Builders