newbie question - looking for a field

Hello

I'm newbie user of the PL/SQL Developer. My question is, I have two different fields of them user id, the other is the id of the users group. Groups are different sizes 1 to 20 now, but it may increase. Two field formats are VARCHAR2 (200 CHAR).
User IDs are numbers 5 characters
user group IDS are the combination of user ID and the symbols #@ #.

ex:
user_id:30327
group_user_id:30327#@#30459#@#30436#@#30463

How can I make equal equality not for this field. I want a query that finds the user_id in the field of group_user_id.

Kind regards.

Use the INSTR function. Try this:

SQL>
SQL> with test_data as
  2   (select '30327' user_id
  3          ,'30327#@#30459#@#30436#@#30463' group_user_id
  4      from dual
  5    union
  6    select '30463' user_id
  7          ,'44112#@#30327#@#30459#@#30436#@#30463' group_user_id
  8      from dual
  9    union
 10    select '11111' user_id
 11          ,'99999#@#30459#@#30436#@#30463' group_user_id
 12      from dual)
 13  select *
 14    from test_data
 15   where instr (group_user_id, user_id) > 0
 16
SQL> /

USER_ GROUP_USER_ID
----- -------------------------------------
30327 30327#@#30459#@#30436#@#30463
30463 44112#@#30327#@#30459#@#30436#@#30463

SQL> 

Tags: Database

Similar Questions

  • Filter hit FxV question - looking for a way to create unique hit counter

    Hello

    is there a way to make a FxV unique hit counter for specific web pages?

    (1) I don't want to post multiple in the same session - as if the user click on the 'back' button and access into the page again.

    (2) Unfortunately, our web page design reuses the same name of the page - as splash.do, but has a runtime context variable.  I want to only capture charges for the first time that the splash.do is hit.  But if the user navigates to another page in the path of purchase which is also called splash.do - I don't want to count it, press.

    Thank you

    "mark".

    Mark,

    I don't know what is the best approach.  Here are two ideas to consider.

    Option 1 - create a successful filter which updates a session custom field only if the custom field is already filled.  The first time of the session, that the field is updated, the metric will update.  Then the filter hit will not be matched again for this session.

    It is an example.

    Option 2 - create a session filter.  In the filter of the session, match using a filter of success which is only splash.do.  If any session with URL/path of this updates the metric.  Session filters only updated at the end of a session, so it will match only once.  The filter of success for splash.do will have a lot of matches, but the session filter will update only once if there is a corresponding success.

    One of these give a try.

    Jeff

  • Questions looking for events from a log file

    I have the windows agent installed on some servers to monitor log files and run into problems trying to find specific events.  I can see the events under HERE if I do a host name contains the name of the server, but if I then try to filter or search who, following the events specific to find I get no results.  Also even when I'm filtered by host name and can view event I want to if I highlight and select "Contains: the data I want" she returned with no results.

    Another experience that or I do something wrong?

    Okay, after review, it appears that the journal file is in UCS - 2 format. By default, the agent LI uses UTF - 8. The agent also supports UTF-16, which is the most recent version of THE of UCS - 2 (which has been deprecated in 1996). In the filelog liagent.ini you try to add:

    charset = UTF16 - THE

    Let me know if you have any additional questions! If your question is answered can you please mark as answer?

  • Newb question - displays only the first of several fields

    As a first application of Bb, I write a stopwatch and I want the larger time scale and the small milliseconds. As part of what I am trying to display several bitmap or label side-by-side fields, but when I run it using the Simulator, only the first is displayed.

    So, for example, what I want is:

    1-2: 3 4:5:6 7 8 9

    with each number in own field but what I mean is just

    1

    that is the first field. If I then use buttons they all appear in the verticalFieldManager by default in horizontalField Manager but if I use labels or bitmaps, then all I get is the first field, even if I remove the horizontalFieldManager and just use the default verticalFieldManager. I googled the question, this forum and spent several hours reading the code examples and documentation, but I have yet to understand why I can't put several fields of these types of side-by-side. I have to have something between them as separators or empty fields?

    The code that I've got so far is the following...

     public TimerView()    {     super();      HorizontalFieldManager timerField = new HorizontalFieldManager();
    
          Bitmap hour10 = Bitmap.getBitmapResource("num_1.png");        Bitmap hour01 = Bitmap.getBitmapResource("num_2.png");        Bitmap minute10 = Bitmap.getBitmapResource("num_3.png");      Bitmap minute01 = Bitmap.getBitmapResource("num_4.png");      Bitmap second10 = Bitmap.getBitmapResource("num_5.png");      Bitmap second01 = Bitmap.getBitmapResource("num_6.png");      Bitmap ms100 = Bitmap.getBitmapResource("num_7.png");     Bitmap ms010 = Bitmap.getBitmapResource("num_8.png");     Bitmap ms001 = Bitmap.getBitmapResource("num_9.png");     Bitmap colon = Bitmap.getBitmapResource("Colon.png");
    
          BitmapField bfHour10 = new BitmapField(hour10);       BitmapField bfHour01 = new BitmapField(hour01);       BitmapField bfHourColon = new BitmapField(colon);     BitmapField bfMinute10 = new BitmapField(minute10);       BitmapField bfMinute01 = new BitmapField(minute01);       BitmapField bfMinuteColon = new BitmapField(colon);       BitmapField bfSecond10 = new BitmapField(second10);       BitmapField bfSecond01 = new BitmapField(second01);       BitmapField bfSecondColon = new BitmapField(colon);       BitmapField bfMs100 = new BitmapField(ms100);     BitmapField bfMs010 = new BitmapField(ms010);     BitmapField bfMs001 = new BitmapField(ms001);
    
          timerField.add(bfHour10);     timerField.add(bfHour01);     timerField.add(bfHourColon);      timerField.add(bfMinute10);       timerField.add(bfMinute01);       timerField.add(bfMinuteColon);        timerField.add(bfSecond10);       timerField.add(bfSecond01);       timerField.add(bfSecondColon);        timerField.add(bfMs100);      timerField.add(bfMs010);      timerField.add(bfMs001);
    
            add(timerField);  }
    

    I know that this code violates probably some best practices or standards, but I intend to clean later.

    -edited for spelling

    Give it a go with images of the numbers.  You have it easy with BitmapFields, because you know how much space they need with

    getPreferredHeight() and getBitmapWidth().  Then you should be able to stick them next to each other.

    If I was doing this and who are looking for a special look at the clock, which seems to be what you are doing, I would like to have the digital icons as you do, and then set an image large enough to hold the value of the clock and in my routine of painting, select draw digital icon proper, in the right place.  As long as you load the bitmaps only once, I think it's the most effective way to do it.

    Of course, a much simpler way would be to have just a RichTextField formatted as you suggest - RichTextField because you can have two different fonts in a single field.

  • I spent hours on web sites looking for advice clean my iMac - they were all dead ends.  I send a question to this 'Community' first, but must have done it badly because there was no trace of it.  I have the effect on this model beach ball

    I spent hours on web sites looking for advice clean my iMac - they were all dead ends.  I send a question to this 'Community' first, but must have done it badly because there was no trace of it.  I now have the beach on this computer ball effect.  Are there places I can delete cookies etc to help out?  Thank you for your help.

    horse8905

    Don't know what's happening, you do not give a lot of information, but if you have the constant beachballing (spinning wait cursor), which could mean that the hard drive is dying.

    Open Console.app in Applications > utilities. Filter, called "String Matching," right, high enter "I/o" without the quotes. What happens when you do this?

  • Suddenly, when I search using the address field, I am is more directed directly on the site I look for ex-BBC, as I was before. To place a web page

    When I search using the address field, I am is more directed directly on the site I look for ex-BBC, as I was before.

    Instead Google web page appears with a list of proposals, and I have to click on the link to the BBC it to get on the site.

    Ways you can give me the code to insert in the "topic: config" keyword. URL

    r

    Take a look at this module.

    https://addons.Mozilla.org/en-us/Firefox/addon/keywordurl-hack/

  • Looking for a compatible printer AirPrint for use in the field to print from my iPad 2. Possess and have v

    Looking for a compatible printer AirPrint for use in the field to print from my iPad 2. Own and use very satisfactory wbt 460 HP with a laptop. All compatible printers AirPrint currently all-in-one and too big for travel or field use.

    Whereas several HP printers are among the 15 AirPrints currently on the market, it seems reasonable that HP could provide the upgrade that would make my 460 AirPrint compatible wbt.

    I wireless (my fi) and would like to buy the wireless card from the blue tooth, if only the upgrade of the driver was available.

    How and when HP can provide a mobile/trip AirPrint printer?

    Answer as I am a person of 70 years. Because I am and can be quickly way over my head!

    For now, we don't have an Airprint-compatible printer. Future products may include, but are not currently. Products that are compatible Airprint are designed this way, so no upgrade will take place for previous models.

  • Hi, I am looking for a download link for MAC for the Creative Suite CS6. I also have questions on my personal account information

    Hi, I am looking for a download link for MAC for the Creative Suite CS6. I also have questions on my personal account information

    Please see this link:

    Download Creative Suite 6 applications

    I hope this helps.

    Concerning

    Megha Rawat

  • Is it possible for someone to insert a logo when you fill out a form to fill out? I'm looking for all the options under the button 'add a text field.

    I have created a form to fill out that is a contract, but I need a way for the person who is to fill the form to insert their logo.  Is it possible for someone to insert a logo when you fill out the form to fill out? I'm looking for all the options under the button 'add a text field.

    It is not possible within a text field, either. If they have Acrobat, they can use the built-in under Tools - editing content Add Image tool.

    If they drive XI or higher, they can use a button form field you will need to set up for them, but the image must be in PDF format.

  • Strange looking for true false question slide

    Hello

    for some reason I now some strange looking for true/false question slides, depending on the image below

    TrueFalseSkew.PNG

    I try to remove all the question slides, and starts again, buit when I insert now any fake slide, he aoppears as above.

    If anyone else has had this problem and if so, how can I solve this...?

    Kind regards

    Sabine

    Go in Edition > Preferences > by default. Here, deselect the Autosize captions.

    Anthony

  • Newbie Question: What should I put in for "Hostname" in the DNS Configuration during install ESXi

    Note: I'm not a professional but rather an amateur trying to test the power of virtualization technology. I understand the IP addresses and how to configure my router, Setup static IP address and build my own computer, but I have some limited knowledge when it comes to the configuration of the servers. All I want to do is use this ESXi server locally in my house to run several operating systems on one physical box. I really don't want to have a server on the internet, I think that Comcast doesn't let me run the servers with dynamic IP package I have. In any case, here's my problem:

    I followed with the installation of the link video tutorial ESXi in the intro email vmware sends you after registering. I'm around the 14:30 mark minute now where we are the management network configuration in the configuration menu of DNS.

    The tutorial guys sets its hostname to something he obviously installation but mine appears as "localhost.hsd1.ca.comcast.net". I do not understand what I do when I set up a host name - and as I said above, I don't want to be put in place a server on the comcast network.

    I think I'm a bit confused and don't know what to put in host name. I tried "localhost" and also "localhost.hsd1.ca.comcast.net" but hen t when I chose "network of test management", I got a message of failure for hostname.

    Sorry if it's a super newbie question, but I will not continue to implement virtual machines or what then if this setting is incorrect. I appreciate your time in reading this / to help me. Thank you.

    UPDATE: Ok, so since I'm impatient, I tried just letting the host name to what it was and continues with tutorial and realized that I could simply type the address static IP address from my ESXi server in my web browser from another computer on my home network to get the VI of the esxi Server client , then I typed just 192.168.1.50 which is that I put it was and it was successful! Is there a reason to set a host name then?

    So, my next question becomes: can I run my windows XP 64 OS at the same time as the ESXi Server? Each are installed on different disks in the same physical box, but this computer is one of my main computers that I work on in windows every day so ideally I would have ESXi running but also be able to use the base operating system. Is this possible or am I just dreaming / confused?

    Your welcome hardnesses, I think you can try to re-insalling ESXi with the hostanme you want, or you can connect to the existing installation with an unsupported option and try the same thing.

    Concerning

    Anil

    Save the planet, go for green

    If you have found my reply to be useful, feel free to mark it as useful or Correct.

  • question of northbridge nw8440, looking for the replacement of good mobo

    Hello
    I'm my nw8440 mobile workstation (T7400, FireGL V5200, 15.4 "WUXGA) seems to have some problems of northbridge and I'm looking for the replacement of the mobo.

    I can read "Maintenance and service guide" he shares the same mobo (SPS-416397-001) with nc8430 and nx8420. But is it really the same thing? Because my nw8440 is equipped with a welded gpu FireGL V5200 those others have rather a X 1600.

    Thank you

    Mac.

    http://www.eBay.com/ITM/grade-A-HP-Compaq-NW8440-motherboard-Assembly-ATI-416397-001-242A-/151323954802?PT=motherboards&hash=item233b9c4e72

    REO

  • When you are looking for an email or a contact or meeting I get the message "cannot be found" when I know for sure that the article in question is here. I usually resort to trawl through lists of A to z and always find it... helpplease?

    I have loaded all the MS Updates surrent

    Daithi MacSeinichin Hello,

    Welcome to the Microsoft Answers Community!

    You have Windows Search 4.0 installed on your computer?

    Windows Search 4.0 will allow you to search through your contacts, emails, appointments and text documents just to name a few. To access Windows Search 4.0 after installation:

    ·         Click Start

    ·         Click on Search

    ·         To the right of the blue bar at the top, you can click a menu dropdown and search more precisely what type of document you are looking for

    You can download Windows Search 4.0 to:

    Windows Search 4.0

    Hope that helps, I look forward to hearing from you.

    Steven
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • LOOK for iOS: icons & launch Image question

    Start the Image:

    AIR was so changed since I used it the last time, I can't really know anything, the documentation is a little confusing for me. Could someone of you please answer my question? For some, it would be fairly simple.

    My application is exclusively for iPads, only works in landscape mode, so I've included images of launch 2, whose name: Default.png & [email protected]. (I named them after reading this: ) http://help.Adobe.com/en_US/air/build/WS901d38e593cd1bac1e63e3d129907d2886-8000.html )

    When I copied the final .ipa file to my iPad 2, and its launch image appeared in Portrait mode! So, I'm totally confused that how many launch I provide images and what should be their names? I use Flash Professional CC to publish, I have included images of launch in publication settings, so is there any order I must follow or order in the files just doesn't metter? Please keep it carefully considered that this app is only for iPads (specified in the publishing dialog box) and only works in landscape (both, left and right).

    Icons:

    I followed the above Web page and Flash Professional CC has provided these icons: 29 x 29, 48 x 48, 50 x 50, 58 x 58, 72 x 72, 100 x 100, 144 x 144 and 1024 x 1024. I know 50 x 50 icon is created by air 48 x 48, and yet I have provided it and icon 512 x 512 is only for the purpose of development, we provide manually while downloading on App Store, so I did not plan it.

    When I copied final. IPA to iTunes, iTunes doesn't show the application icon as it allows to determine the development-ipa. So, I just want confirm is that normal or I missed something?

    Finally, I copied final. IPA for my iPad 2, when I started, I noticed that first of all it show image 'launch' in portrait (as mentioned above) and then can be 1-2 seconds, the launch went image and it showed a blank (black) screen until my application has started. The black and white screen showed for 3-4 seconds. Is this normal?

    Thank you.

    Hey Yusuf,.

    "Default.png" is a bitmap portrait for iPhone, iPhone 3 and iPhone 3GS.

    ---

    For iPad 1, 2 & Mini, you will need an image 1024 x 768 called "Default - Landscape.png.

    For the iPad 3 and 4, you will need a 2048 x 1536 "[email protected]."

    ---

    So all you have to do is to include these images in the publication of launch settings and that's all, there is no special orders and you don't require other images 'Default' than these two. This should also fix your white screen problem.

    It is normal for release builds do not show their application icon in iTunes, you will notice that when you right click and press "Get Info" on an application, you should be able to see the icon.

    Hope that helps,

    O.

  • Newbie Question: Should I use a connection for each method?

    It's my first project using SQL and Java, I have actually some learning on this subject but fun, but I'm still a beginner, so bear with me. When I set up a connection to the base, he goes into a try block:

    private void connectToDB(Connection con, String username, String password){         try{             DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());             con = DriverManager.getConnection("jdbc:oracle:oci8:@localhost:1521:xe", username, password);             System.out.println("Successfully connected to database\nDatabase: xe\nOn host: localhost\nPort: 1521\nAs user: " + username);         }         catch(SQLException e){             System.out.println("Database connection error:\n" + e.getMessage());             System.exit(1);         }     }

    But it does mean that when I want to use the connection to another method (to query the database), it throws a NullPointerException (I think because there is no guarantee that jerk has been implemented?)

    private void getAllJobs(Connection c){         try{             Statement s = c.createStatement();             String selectAllJobs = "select * from jobs";             ResultSet row = s.executeQuery(selectAllJobs);             while(row.next()){                 String name = row.getString("NAME");                 int jobNo = row.getInt("JOBNO");                 String urgent = row.getString("URGENCY");                 Date date = row.getDate("JOBDATE");                 System.out.println(name + jobNo + urgent + date);             }         }         catch(SQLException e){             System.out.println("Could not execute statement in method getAllJobs");             System.out.println(e.getMessage());         }         catch(NullPointerException e){             System.out.println("Could not create statement, connection is null");             System.out.println(e.getMessage());         }     }

    On this basis, I get the result:

    "Successfully connected to the database
    Database: xe
    On the host: localhost
    Port: 1521
    User: human resources
    Could not create statement, the connection is null
    NULL.

    I should create a new connection in each method I use, so that the sql statement is in the try the connection block create? What is the best way to handle this? Something different wrong with the code ignore for now, I'm looking for this answer so that I can continue the work.

    Thank you
    eskimo9

    OK - seems kind of, I went on a tangent and my brain took a vacation.

    Java is pass by value. If your code:

    private Connection con1;
    
    connectToDB(con1, "hr", "hr");
    
    private void connectToDB(Connection con, String username, String password){
    

    past the 'value' "con1" contains (which has the null value) to the method "connectoToDB". The method can manipulate the object, if it is not null, but it cannot change the setting points to the object. Such an assignment within the method is only local.

    You have shown that on the inside of the 'con' method has a value after the connection is created, but the original variable "con1" does not because the method cannot change what it points to.

    Change the "connectToDB" method to return an instance of 'Connection' and store the value returned in con1. Then the call to "getAllJobs (con1)" does not work correctly because the instance variable has been initialized. I'm sorry that I you good-for-nothing.

    There is an explanation that is funny, but for education, at this link: http://www.javaranch.com/campfire/StoryPassBy.jsp

    See the part that says:
    >
    A CAT = new Cat();
    doStuff (A);

    void doStuff(Cat B) {}

    B = new Cat(); does NOT affect the reference
    }

    To do this simply 'points' B to control a different object. A is always happy.

Maybe you are looking for