Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 27th, 2004, 08:37 AM
jtp51 jtp51 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Omaha, Nebraska
Posts: 63 jtp51 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 27 m 5 sec
Reputation Power: 5
Question Oracle SQL statement question

SUMMARY:

The following query is the working query that retrieves the USERID, PAGEMBR, UPD_USER, UPD_DT from the table COLOR.TAB_COLOR_CMDLINK_SECURE:

select * from COLOR.TAB_COLOR_CMDLINK_SECURE
Where USERID = '2651'
Order By PAGEMBR



The following query is the working query that retrieves the SEGMENT, SEGDESC from the tables COLOR.TAB_COLOR_SEGMENT and COLOR.TAB_COLOR_DEFS from a LIKE query, used in a GUI SEGMENT search function:

SELECT a.SEGMENT, ltrim(b.description) AS SEGDESC from COLOR.TAB_COLOR_SEGMENT a,
COLOR.TAB_COLOR_DEFS b
WHERE b.id = a.segment
AND id LIKE '%060000%'
Order by ltrim(b.description)




QUESTION:

What I need is a query that does not show the SEGMENTS that a user belongs to in results returned from a LIKE search.

Pseudocode Logic:

1. View a list of segments that a user has assigned to them in the COLOR.TAB_COLOR_CMDLINK_SECURE table. - Done (first query above).

2. Add segments to a user by searching for Segments. - Done (second query above). <-- Change: Needs to only show the segments that a user is NOT assigned to.

Any suggestions or direction is appreicated. Thank you!
__________________
--Todd

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > Oracle SQL statement question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway