Tricky SELECT

Hi all,
I have a tricky SQL statement below:
SELECT field_x FROM TABLE B WHERE field_y=0;
will generate result = ABC. ABC is a field IN TABLE A
However WHEN I try TO USE the below query:
SELECT (SELECT field_x FROM TABLE B WHERE field_y=0) FROM TABLE A;
it gives me a different result (All records is ABC), compare to the below query result that I want:
SELECT (ABC) FROM TABLE A;
Please advise.
Thanks.

> I appreciate if you please give the some dos and
donts which i have to keep in mind ( except from the
business requirement) while designing database
structure for an application.
My 2c's.
Relational design works. It is mature. It is well documented. It works. Thus if you step outside the bounds of relational design, you must question WHY and make sure that answers are sound and logical. (obviously I do not refer to OLAP designs here, before someone jumps on my case ;-) )
That was the 1st cent. Logical design.
The 2nd cent says that know Oracle. Physical implementation of the logical design. Know Oracle concepts and fundamentals and features. E.g. a partitioned table can make the difference between a system that still works next year because it was able to scale with volumes.
It should be this simple.

Similar Messages

  • Tricky SELECT : Any idea how to construct this?

    Hi guys,
    It's me again with another very (tricky) statement.
    Imagine the following scenario:
    DROP TABLE persons;
    CREATE TABLE persons
      person_id NUMBER(10),
      person_name VARCHAR2(100)
    INSERT INTO persons(person_id, person_name)
         SELECT 1, 'User 1' FROM dual UNION ALL
         SELECT 2, 'User 2' FROM dual UNION ALL
         SELECT 3, 'User 3' FROM dual UNION ALL
         SELECT 4, 'User 4' FROM dual UNION ALL
         SELECT 5, 'User 5' FROM dual;
    DROP TABLE departments;
    CREATE TABLE departments
      dpt_id NUMBER(10) UNIQUE,
      dpt_name VARCHAR2(100),
      dpt_parent_id NUMBER(10)
    INSERT INTO departments VALUES(1, 'Company', null);
      INSERT INTO departments VALUES(2, 'HR', 1);
        INSERT INTO departments VALUES(66, 'Recruitment', 2);
      INSERT INTO departments VALUES(33, 'Logistics', 2);
        INSERT INTO departments VALUES(39, 'Fleet management', 33);
      INSERT INTO departments VALUES(3, 'SALES', 1);
        INSERT INTO departments VALUES(31, 'Local Sales', 3);
        INSERT INTO departments VALUES(60, 'European Sales', 3);
          INSERT INTO departments VALUES(61, 'Germany', 60);
          INSERT INTO departments VALUES(62, 'France', 60);
            INSERT INTO departments VALUES(620, 'Paris', 62);
            INSERT INTO departments VALUES(621, 'Marseilles', 62);
        INSERT INTO departments VALUES(38, 'American Sales', 3);
        INSERT INTO departments VALUES(34, 'Asian Sales', 3);
        INSERT INTO departments VALUES(4, 'IT', 1);
        INSERT INTO departments VALUES(222, 'Helpdesk', 4);
          INSERT INTO departments VALUES(223, 'French Speaking', 222);
            INSERT INTO departments VALUES(224, 'Another level', 223);
      INSERT INTO departments VALUES(5, 'LEGAL', 1);
      INSERT INTO departments VALUES(-10, ' !! VIP DEPARTMENT !! ', 1);
      INSERT INTO departments VALUES(9999, 'VIP 01', -10);
        INSERT INTO departments VALUES(9998, 'Politicians', 9999);
        INSERT INTO departments VALUES(9997, 'Singers', 9999);
          INSERT INTO departments VALUES(9996, 'Korean Singers', 9997);
      INSERT INTO departments VALUES(6325, 'VIP 02', -10);
        INSERT INTO departments VALUES(6311, 'Steering Bord', 6325);
        INSERT INTO departments VALUES(6310, 'Another high level group', 6325);
    DROP TABLE assignments;
    CREATE TABLE assignments
      person_id NUMBER(10),
      dpt_id NUMBER(10),
      job_code VARCHAR2(10)
    INSERT INTO assignments(person_id, dpt_id, job_code) VALUES(1, 66, 'MAIN');
    INSERT INTO assignments(person_id, dpt_id, job_code) VALUES(2, 39, 'OTHER');
    INSERT INTO assignments(person_id, dpt_id, job_code) VALUES(3, 38, 'MAIN');
    INSERT INTO assignments(person_id, dpt_id, job_code) VALUES(3, 9996, 'CODE');
    INSERT INTO assignments(person_id, dpt_id, job_code) VALUES(4, 66, 'CODE');
    INSERT INTO assignments(person_id, dpt_id, job_code) VALUES(4, 620, 'MAIN');
    INSERT INTO assignments(person_id, dpt_id, job_code) VALUES(4, 6311, 'OTHER');
    INSERT INTO assignments(person_id, dpt_id, job_code) VALUES(5, 66, 'CODE');
    INSERT INTO assignments(person_id, dpt_id, job_code) VALUES(5, 620, 'OTHER');
    COMMIT;These tables are quite obvious to understand. But here is a small explanation:
    I have a first PERSONS table. THis table contains a list of person (id and name).
    I have a second table with DEPARTMENTS. It contains a hierarchical organisation structure.
    I have a third table with assignment. One person can have many assignments. Each are on a different department and they have a code...
    What I would like to do is to write a SELECT with this logic:
    - When a person has one assignments, the SELECT should return it. Whatever the job_code is.
    - When a person has more than one assignments then :
    - If he has an assignments in a VIP group (an ancestor organisation with id -10), then I should select only this kind of assignments and the main ones (job_code = MAIN).
    - If he has no assignments in a VIP group, I should return them all.
    In my scenario: I should have:
    SELECT person_id, dpt_id, job_code
      FROM assignments
    1, 66, 'MAIN'     -- one assignments only
    2, 39, 'OTHER'    -- one assignments only
    3, 38,   'MAIN' -- this kind of job should always be returned
    3, 9996, 'CODE' -- is in a vip group
    4, 620, 'MAIN'   --this kind of job should always be returned
    4, 6311, 'OTHER'   -- vip group
    5, 66, 'CODE'     -- not in a vip group
    5, 620, 'OTHER'   -- no vip groupAny idea on how I can construct my SELECT?? Im using Oracle 10g.
    Thanks in advance

    Hi,
    Here's one way:
    WITH     vip_departments          AS
         SELECT     dpt_id
         FROM     departments
         START WITH     dpt_id          = -10
         CONNECT BY     dpt_parent_id     = PRIOR dpt_id
    ,     assignments_plus     AS
         SELECT     a.*
         ,     DENSE_RANK () OVER ( PARTITION BY  person_id
                                   ORDER BY          NVL2 (v.dpt_id, 10, 20)
                           )         AS rnk
         FROM           assignments        a
         LEFT OUTER JOIN      vip_departments   v  ON  a.dpt_id     = v.dpt_id
    SELECT       person_id, dpt_id, job_code
    FROM       assignments_plus
    WHERE       rnk          = 1
    OR       job_code     = 'MAIN'
    ;NVL2 (v.dpt_id, 10, 20) returns 1 if an individual row is in the vip group, and 20 if it is not. If a row is to be chosen in the end, then this value must be the lowest value returned for any row with the same person_id. That's what DENSE_RANK is doing; it returns 1 for all the rows with the lowest value.
    Edited by: Frank Kulash on Apr 6, 2012 6:56 AM

  • Tricky select statement ??

    Hello everybody,
    can anyone helps me?
    I have a table with 2 columns, e.g. .
    A A5
    A 5
    B 5
    C 5
    D 5
    D D5
    Now, i will select:
    If column 2 is the combination of column 1 and 5, then select this record and not the record with only 5. Doesn't exist the combination I will select the record with the only 5.
    My result should look:
    A A5
    B 5
    C 5
    D D5.
    Thanks.
    Best Regards
    Sandra Koenig

    One way would be:
    SQL> SELECT * FROM t;
    C1    C2
    A     A5
    A     5
    B     5
    C     5
    D     5
    D     D5
    SQL> SELECT c1, c2
      2  FROM t
      3  WHERE c2 = c1||'5'
      4  UNION ALL
      5  SELECT c1, c2
      6  FROM t o
      7  WHERE c2 = '5' and
      8        NOT EXISTS (SELECT 1
      9                    FROM t i
    10                    WHERE o.c1 = i.c1 and
    11                          i.c2 = i.c1||'5')
    12  ORDER BY c1;
    C1    C2
    A     A5
    B     5
    C     5
    D     D5Another, one-pass, way is:
    SQL> SELECT c1, c2
      2  FROM (SELECT c1, c2,
      3               RANK() OVER (PARTITION BY c1 ORDER BY LENGTH(c2) DESC) rn
      4        FROM t
      5        WHERE c2 = '5' OR
      6              c2 = c1||'5')
      7  WHERE rn = 1;
    C1    C2
    A     A5
    B     5
    C     5
    D     D5TTFN
    John

  • Edge detection, Refine Radius tool not apparently working

    Dear Community,
    I hope you can help me, this is the first time I have asked a question.  I have been struggling with the tricky selection of blowing hair and I have read and tried many tutorials but not it's not working for me.  I must be doing something wrong.
    I have a Mac desktop running Photoshop CS6.  I have tried editing both RAW files and JPEGs, and switched between 8 and 16 bit but no apparent differences.
    My method:-
    1) Edit file in Photoshop and use the quick selection tool for a rough selection of girl on the right.
    2) Then click on the Refine Edge button at the top menu bar and in the menu box, I tick Smart Radius, set it to 12 px, tick decontaminate colours and set 50%.  This is when I am told the magic should happen.  I then paint the hairs top right of screen against the blue sky with brush size approx. 70/80 px and paint on the small hairs near her right eye.  But if you look close the selection gets worse by doing this. I included White on Black to show the messy grey area near her right eye and hair is not coming out clean white top and top right.
    3) I have put a new layer in and filled red to show the end result but not what I would have hoped for.  You can see the messy area above her right eye and lack of clarity in the hair top right.
    I have tried to reset Photoshop preferences in case any issues.  Any help would be massively appreciated, as I just can't think what I am doing wrong ?  e.g. is it to do with brush type settings ?
    Many Thanks
    Mark

    Refine Edge is a game changer, but it is not fool proof, and not even particularly intuitive.  It took me a while to get to grips with it, and there are frequently times when a dual masking approach is needed.  An easy fix is to click on Decontaminate Colors, because that automatically changes the output mode to New layer with layer mask.  That puts you straight into a situation where you can repair problems using the layer mask.  Something a lot of people don't realise is that you still have full access to the normal masking aid when painting in a Layer mask.  For instance, you can use the pen tool to outline the soft edge, Ctrl click the resulting workpath in the Paths panel to load it as a selection, and use that select as an aid to pain in the soft edge with black.  Then invert the selection and paint out the overspill with white.
    Something else you can do before you use Quick Select is to copy the layer and increase the contrast.  Use the modified layer to make the selection, and switch back to the normal layer to action the selection.  You can increase the contrast ob both tonal values with Curves or levels, or colour with Hue saturation. In your example using a H/S layer and selecting Reds from the RGB dropdown, would let you increase saturation for just the reds.  Refine Edge uses both tone and color information, so this can make a big difference.
    Personally, I just Output to new layer with layer mask and fix it with the paint brush. 

  • Advice on creating this effect?

    How can I create an effect similar to what is seen in this image with the shapes seemingly radiating from the computer display? Is this just creating the shape and copying-and-pasting it over and over again and transforming it into each spot? Is there a better way to do this?
    Thanks!

    Yes by hollow arrow tool I am referring to the direct select tool. In my screenshot notice the left side of vector points is solid, and the right are hollow. this means the left side point were selected, then simply scale using the scale tool.
    To distort the screenshot is easy but a little tricky:
    Select your screenshot
    Select the free transform tool
    Begin to pull one of the four centers (Keep holding the mouse down)
    Now add he CMD key modifier on the mac or CTRL on the PC

  • Tricky! Change of navi-attribute values in ABAP and use in selections

    Hi gurus,
    now I have a teaser that really keeps me busy, and which might be interesting for some of you:
    we use several statuses in our <u>Demand Planning in SCM 5.0</u>, some of which can be switched by using a user-function macro which just basically is a ABAP function module that <u>changes navigation attribute values directly on the database</u>, meaning in the master data tables of the respective characteristic.
    Now, the code works, the values are changed accordingly, leaving the data set in object status "active" - <b>BUT</b>:
    <i>when we call a selection, it still shows the old values, even after activating master data or running the attribute change run!</i>
    This is not what we expected. Our wish was, that once the table was updated with the correct field values, we would also see them in our selections.
    <u>Details:</u>
    we have two statuses as navi-attributes to an article:
    <i>DP:</i> YES/NO, and
    <i>oDP:</i> YES/NO
    Combinations originally are: <i>DP</i> YES/<i>oDP</i> NO
    After the status change macro, the table shows the following, as expected:
    <i>DP</i> NO/<i>oDP</i> YES
    As we have two selections, one on DP status "YES", the other one on oDP status "YES", we would like to see the article vanish in the first selection and show up in the other one...
    Does anybody have an idea what is wrong and what we can do to have to proper navi-attribute values from the master data table in the selection? Does the selection not read from the database but from a buffer?
    Looking forward to your answers,
    Klaus

    Hi Fabrice,
    yes indeed, I did check the object version, and it is A.
    Problem is, the function module changes the data record which is "A" anyway. So the changed data record is active - however, I just had a look at the SID master data table, and it looks that direct changes to the P-table do not affect the X-table where the SIDs are stored. So I guess I will also have to update the X-table with the correct SID-values.
    If this works, I let you know. We will be using this change by ABAP quite often, it is rather useful.
    Regards and thanks for your prompt reply,
    Klaus

  • Select query... a tricky one

    I have 2 tables :
    EMPLOYEE table:
    Employee_Id Parent(Y/N)
    1 Y
    2 Y
    3 N
    4 N
    5 Y
    6 Y
    7 N
    8 Y
    9 Y
    10 Y
    11 N
    12 N
    13 N
    14 N
    EMPLOYEE_RELATION table:
    Parent_employee_id Child_employee_id
    1 4
    2 13
    5 14
    6 11
    8 3
    9 12
    10 7
    Clearly, the EMPLOYEE table has 14 records(Employee_Id is primary key), with an indicator whether the Employee_Id is parent or child. 'Y' indicates it is a parent and 'N' indicates it is a child.
    Now in the EMPLOYEE_RELATION table, for every parent, there is a child. It is a one-one relation.
    I needed a query written so that it will display all the 14 records of the EMPLOYEE table along with its relating parent or child id. In other words , if it is a parent, then its's child id should display. If it is a child, then its parent id should display ---
    The output should look like -- >
    1 4
    2 13
    3 8
    4 1
    5 14
    6 11
    7 10
    8 3
    9 12
    10 7
    11 6
    12 9
    13 2
    14 5
    How do I write a select query for this ?
    Thanks

    You could use either of these queries:
    select e.Employee_Id, r.Child_employee_id parchld
    from EMPLOYEE e, EMPLOYEE_RELATION r
    where e.Employee_Id = r.Parent_employee_id 
    union
    select e.Employee_Id, r.Parent_employee_id parchld
    from EMPLOYEE e, EMPLOYEE_RELATION r
    where e.Employee_Id = r.Child_employee_id
    order by 1;
    select Employee_Id,
      decode(prnt, 'Y', (select Child_employee_id from EMPLOYEE_RELATION r where r.Parent_employee_id = e.Employee_Id),
                   'N', (select Parent_employee_id from EMPLOYEE_RELATION r where r.Child_employee_id = e.Employee_Id)) parchld
    from EMPLOYEE e
    order by 1;

  • Problem with focus and selecting text in jtextfield

    I have problem with jtexfield. I know that solution will be very simple but I can't figure it out.
    This is simplified version of situation:
    I have a jframe, jtextfield and jbutton. User can put numbers (0-10000) separated with commas to textfield and save those numbers by pressing jbutton.
    When jbutton is pressed I have a validator which checks that jtextfield contains only numbers and commas. If validator sees that there are invalid characters, a messagebox is launched which tells to user whats wrong.
    Now comes the tricky part.
    When user presses ok from messagebox, jtextfield should select the character which validator said was invalid so that user can replace it by pressing a number or comma.
    I have the invalid character, but how can you get the focus to jtextfield and select only the character which was invalid?
    I tried requestFocus(), but it selected whole text in jtextfield and after that command I couldn't set selected text. I tried with commands setSelectionStart(int), setSelectionEnd(int) and select(int,int).
    Then I tried to use Caret and select text with that. It selected the character I wanted, but the focus wasn't really there because it didn't have keyFocus (or something like that).
    Is there a simple way of doing this?

    textField.requestFocusInWindow();
    textField.select(...);The above should work, although read the API on the select(...) method for the newer recommended approach on how to do selection.
    If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)",
    see http://homepage1.nifty.com/algafield/sscce.html,
    that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    Don't forget to use the "Code Formatting Tags",
    see http://forum.java.sun.com/help.jspa?sec=formatting,
    so the posted code retains its original formatting.

  • Display all valid items and select multiple items

    Let us say I have valid items in table. For each purchase user can select few items from the list. I have to display all valid items from table and user should able to check items to buy. What is the best way we can implement this in forms.
    Thanks, lalitha

    For all the valid items you can create LOV as i understood then user can choose what he wants. But this sentence ti still confusing to me. Or what is the tricky things in you scanerio if only you have to show the valid item then use LOV.
    Lalitk wrote:
    and user should able to check items to buy.-Ammad

  • Mass Updating of Selected Rows

    (As you can see from my low number of posts I'm new to ApEx, so any information you can provide is appreciated.)
    Hi,
    I've been asked to include what I consider a heavy duty feature on a report. It has been requested that there is a form region above a report region. The form will have some fields on it to be used to mass update selected rows.
    For instance, let's say the report is a list of employees and their dept and the form has a dropdown dept field that contains a list of depts. They want to be able to select certain employees on the report, then select a dept from the form and then click an Update Rows button. They want the selected rows to be updated with the selected dept. * Also, they don't want the report to be editable. * The only way to update any rows is thru the Update Row button.
    I'm new to ApEx and can code in JavaScript, but am not an expert in either. And, I'm still trying to figure out what JavaScript syntax works in Element Attributes, etc. fields. But, I digress.
    I have looked over several threads, and went to several demo pages, and have learned some things. Hopefully they are correct. If not, please correct me.
    - Using the Row Selector is tricky.
    - You can get the Row Selector on a regular SQL report by changing it to Updateable SQL, adding the Row Selector type, and changing it back.
    - You can only see row information on a column if the column is editable.
    I now have a report that is NOT editable and has NO editable columns. And the report has the Row Selector. Also, the ID (key) of each row is the first column of each row. (It's a link field that populates another page.) With the ID I can populate the correct record. I'm thinking I need to populate the ID again in another column into a text field and then be able to access that value on the selected rows.
    Here's my dilemma. (That is, if I'm on the right track.) I need to know which rows are selected and then access the ID (key value) of that row. After that I can let my PL/SQL do the work.
    - - 1. How does the 2nd ID need to be defined such that people can't edit it, but the value can be retrieved? And, how is this done? I assume something can be put in the Element Attributes. If so, will you please provide the code?
    - - 2. What is the trick to knowing which rows are selected? An example snippet of code would be great here too.
    - - 3. Also, tell me if I'm on the wrong track and need to provide a solution in a different way.
    Sorry for the novel, but I wanted you to have a good idea of what I'm trying to accomplish so you may provide appropriate answers.
    Thanks much, Tony

    Hi Tony,
    check out the following threads:
    Re: Reference a value within a report????
    Re: MRU - trying to restrict UPDATE to only certain users - everyone INSERT
    BTW, you don't have to use any JavaScript. When you write your "Update pl/sql process" for the tabular form, just reference you page item which contains the department for your mass update.
    eg.
    FOR ii IN 1 .. Apex_Application.g_f01.COUNT
    LOOP
        UPDATE EMPLOYEES
          SET DEPARTMENT_ID = :P4_NEW_DEPARTMENT_ID
        WHERE EMPLOYEE_ID   = Apex_Application.g_f02(Apex_Application.g_f01(ii))
    END LOOP;Hope that gives you a direction how to solve that
    Patrick
    Check out my APEX-blog: http://inside-apex.blogspot.com
    Check out the ApexLib Framework: http://apexlib.sourceforge.net

  • Selecting random values from an array based on a condition

    Hi All,
    I have a small glitch here. hope you guys can help me out.
    I have an evenly spaced integer array as X[ ] = {1,2,3, ....150}. and I need to create a new array which selects 5 random values from X [ ] , but with a condition that these random values should have a difference of atleast 25 between them.
    for example res [ ] = {2,60,37,110,130}
    res [ ] = {10,40,109,132,75}
    I have been thinking of looping thru the X [ ], and selecting randomly but things look tricky once I sit down to write an algorithm to do it.
    Can anyone think of an approach to do this, any help will be greatly appreciated ...

    For your interest, here is my attempt.
    import java.util.Random;
    public class TestDemo {
        public static void main(String[] args) throws Exception {
            for (int n = 0; n < 10; n++) {
                System.out.println(toString(getValues(5, 25, 150)));
        private final static Random RAND = new Random();
        public static int[] getValues(int num, int spread, int max) {
            if (num * spread >= max) {
                throw new IllegalArgumentException("Cannot produce " + num + " spread " + spread + " less than or equals to " + max);
            int[] nums = new int[num];
            int max2 = max - (num - 1) * spread - 1;
            // generate random offsets totally less than max2
            for (int j = 0; j < num; j++) {
                int next = RAND.nextInt(max2);
                // favour smaller numbers.
                if (max2 > spread/2)
                    next = RAND.nextInt(next+1);
                nums[j] = next;
                max2 -= next;
            // shuffle the offsets.
            for (int j = num; j > 1; j--) {
                swap(nums, j - 1, RAND.nextInt(j));
            // add the spread of 25 each.
            for (int j = 1; j < num; j++) {
                nums[j] += nums[j-1] + spread;
            return nums;
        private static void swap(int[] arr, int i, int j) {
            int tmp = arr;
    arr[i] = arr[j];
    arr[j] = tmp;
    public static String toString(int[] nums) {
    StringBuffer sb = new StringBuffer(nums.length * 4);
    sb.append("[ ");
    for (int j = 0; j < nums.length; j++) {
    if (j > 0) {
    sb.append(", ");
    sb.append(nums[j]);
    sb.append(" ]");
    return sb.toString();

  • Selecting patches from a GrooveBox

    I need some help from folks who use outboard midi modules with logic. My question is below.
    Before I got into DAW software (GarageBand then Logic Express), I used a "groove box". The one I have is a Roland D2. It has like 600 sounds or there about, many of which I really like and would like to use in some of my Logic projects.
    I've just learned how to use my Korg "general midi" module from the book "Logic Pro 7 and Logic Express 7" by Martin Sitter. The book is cool and taught me how to use the Environment and a general midi module in Lesson 11 "setting up the Midi Environment" (pg 429-496)
    I think I understand most of it but it's pretty new and still sinking in a bit.
    So let's say that I wanted to use the Roland D2 I mentioned above.....(not a general midi device)
    It's my understanding that I would..
    1. create a "standard" midi instrument in the Environment Window
    2. select a midi chanel to use with that instrument going to the Roland D2. (Let's say that for whatever reason I choose midi channel "3")
    3. Select a patch on the Roland D2 from the "Object Parameter Box in the Arrange window.
    Here is where it get's tricky for me.
    The Roland D2's many sounds are divided up into 5 banks (A, B, C, D, E each with 128 patches)
    Let's say I wanted patch No. 023 in Bank E......
    I'm not sure how to set that up in the Object Parameter Box. I seem to only be able to get the first bank of sounds and the patch names correspond to the General Midi patch list.
    I don't really need Logic to know the "names" of the patches in the Roland D2, I have that printed in the D2 manual. I just need to be able to call up the right patch in the right bank.
    Here is something that might be important....
    In the Roland D2 manual in the patch listing page, it seems that each bank has it's own special code number. For intance Bank E that I was refering to above has this number under it in the manual...
    Preset E
    (CC#0 = 84, CC#32 = 0)
    Bank D has this code..
    Preset D
    (CC#0 = 81, CC#32 = 3)
    Is this something that Logic would need to know in order to choose the patch I want (Bank E patch 023 Mini Bass)???
    Thanks in advance for your help.
    Morris
    iMac G5   Mac OS X (10.3.9)   1.5 gigs ram

    Yea......I think I found what you were talking about. I'm able to pull down a set of Patch numbers instead of patch names.
    I seem to have found a way to make all this work with the Roland D2. On the D2 I set up a midi chanels 1-7 with the correct patches then I'm able to save that to a user area on the D2. As long as I remember where that's saved in the D2 I'm OK. Its not gracefull but it seems to work OK.
    I did try searching for "environments" for my two midi synths (Roland D2 and Korg X5DR) and could not find anything on the internet. Maybe my searching skill are not so hot OR my synths are just not common enough to have "environments" out there already.
    Best,
    Morris

  • A parameter that filters and also 'Select ALL' at the same time

    Hi All,
    I have a situation
    1. I have a parameter @Param1 that accepts multiple values
    2. I have to display data based on selected values of @Param1 
    Here comes the tricky part.
    3. I have to aggregate on all the available values of the @Param1
    Can any body help me in this. 
    Do i need to take a hidden parameter just for aggregation?or is there any other way?
    Any suggestion is very helpful to me.

    Hi gangarocks,
    Based on my understanding, you want to create a multivalued parameter to filter the report, then display the selected values in the report, right?
    In your scenario, you could specify a report parameter and give available values. Then add a filter based on the parameter in the main dataset. You could add a textbox and specify the expression using Join() function. Please refer to steps below:
    1. Add a report parameter, select the “Allow multiple values” in General tab. On Available Values tab, you could check "Specify values" or "Get values from a query".
    2. In the main dataset, go to Filters tab, add a filter like below:
    3. Add an expression like below, then preview the report.
    Reference:
    Add a multi-value parameter to a Report
    SQL Server Reporting Services Using Multi-value Parameters
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Hard time for selecting Startup Disk (partition) in Mac Classic II.

    Dear coleagues, I'd like your help to understand and solve a tricky trouble. I'm sorry for the long text, but the issue is probably living in a small detail.
    The issue regards a Mac Classic II with internal and external HDDs. Internal HDD has two partitions, a smaller with System 7.1 (first) and a larger with System 7.5.3 (second). This one is installed there since 5 years ago, working fine.
    The (just installed) external HDD has 6 partitions (because of its size 9 Gb). It has been formated runing VCP in this Classic II itself and all partitions are initialized with HFS. It is intended to be a backup for my Classic II as well as my Mac Plus. I've started Installing System 7.5.3 in its third partition. Other partitions remain still empty.
    Using only internal HDD I can already perceive that "Startup Disk" control panel is unable to change the boot partition attribute between partitions in the same drive. When I open "Startup Disk" it usualy both partitions of internal HDD are highlighted. I can select a Zip Drive, for instance, and it will boot from Zip. But, when I switch it back to HDD, doesn't bother wich partition I select, it will always boot with the same partition (usually 7.5.3). Then, If i open Startup Disk CP again, both partitions are again highlighted.
    To switch between partitions in the same drive, I use Lido 7.5.6 PMount and there I select the boot partition. Then every time I select my HDD, that'll be the default boot partition.
    My conclusion is that in Mac Classic II the Startup Disk CP is unable to set a partition within a drive, it selects the drive only. The boot will obey the drive's partition table flag. That's why I can do it whith Lido, writing directly at HDD's flags.
    Now, attaching the external HDD, I can see all its partitions in Startup Disk CP and then I select one of them (the 3rd, with 7.5.3). Before rebooting, I close and open again the Startup Disk CP, then I can see all its 6 partitions highlighted. Just like I've been doing with the internal HDD, probably the solution to set a specific boot partition would be through Lido 7.5.6 PMount again. But Lido is unable to handle this drive. It appears gray in the drives list.
    What does it sound to you? What would you recommend to test? Is there an alternative for Startup Disk CP?
    Thank you.
    Regards, Ciro (Brazil)

    Dear Jan, good Evening.
    Thank you for your time.
    In fact I can select a specific partition, but by closing and reopenning Startup Disk CP I realize that the selection has been attributed to the physical drive (all partitions highlighted).
    I have tried Startup Disk CP in both System 7.1 and System 7.5.3. They do the same way.
    Internal HDD has been formated, partitioned and initialized with Apple HD CS Setup.
    This external HDD in a different way. Apple HD SC Setup hasn't been able to "see" it, probably because of its prior format system. Lido neither. That's why I went to VCP. Moreover, as it is too big for 68030, I had to format it attached to a Performa 6360. After formating, I've let VCP make set the partitions in HFS mode (partitions with 512, 1024 and 2032 Mb).
    I've mounted VCP in Mini VMac to get some screenshots for you:
    Bringing it back to Mac Classic II, it could be mounted with Lido, but System 7 has asked to initialize all partitions again. I've accepted, installed system 7 on it, and it didn't boot. Then I've repeated the partitioning and initializing procedures using Apple HD SC Setup (since now there's a Mac HDD with "small" logical drives). Nothing changed.
    I'm following your tip about System Picker. I've downloaded the sit file and read about it. It seems to be able to overlay the problem. I'm gonna try it and report back here.
    But I feel still uncomfortable not to be able to do things the regular way. As far as I know, the boot partition is an attribute of a drive partition in partition map, just like the "Active Partition" found in FAT systems. I should be able to write there as I can do with Lido in internal HDD.
    Thank you, Jan.
    Best regards,
    Ciro Bruno.

  • Preview's PDF text select ignores columns and misses word spaces

    I have a number of scanned pdf newspaper articles that I was attempting to copy the text from. Preview appears to register the existence of columns, as there is a pale blue background between the columns.
    However when I use the text select tool, it completely ignores the column - and just selects across all columns. And when I paste the text into my text editor, it's missing all the spaces between the words, and the font size is always huge.
    Conversely, Adobe reader in XP has no problem selecting by column, and the pasted text is also an exact replication of the original content. I don't know why Preview performs so badly in this regard? Anyone else experience any issues with pdf text select?

    Anyone else experience any issues with pdf text select?
    Yes, and not just recently.
    There is a reason Preview is named, well, preview. It is not an authoring environment and PDFs are not meant to serve in that context either...unless maybe you understand all of inherent the font traps, tricks & tips and how to tune your scanning/OCR software to keep rework to a minimum.
    Scanning PDFs is always tricky, and without the occasional heavy metal to bring to the task, it just seems to be that more problematic.
    Keep trying, but I'd really suggest to look to other tools at this time.

Maybe you are looking for

  • IPad fails to connect to WiFi after OTA update to iOS 6

    After the OTA update to iOS 6 my new iPad fails to connect to my WiFi network at home. My LANCOM router reports the following issue: Index: 62294 Zeit: 19.09.2012 21:08:28 Interface: WLAN-1 Ereignis: Rejected Association from WLAN station xx:xx:xx:xx

  • Updating interactive PDFs from InDesign 6

    I designed a form in InDesign 6 and exported it as an interactive PDF. Can I revise the Indesign version and export it again without losing the additional formatting that I originally did in Acrobat Pro? For example, I altered the size of some boxes

  • Worries of a Macaholic

    I just woke my computer from sleep, and the screen was filled with strange colors, and there was a line running vertically on the screen. The screen just looked really wrong. When I restarted my computer, everything was fine, but it took longer than

  • [SOLVED] No boot after update unable to find root device|libmount.so.1

    Hi, after my most recent update, which was the first for a long time, I am getting the following error when trying to boot my system: mount: /lib/libmount.so.1: version 'MOUNT_2.20' not found (required by mount) cat: can'topen '/proc/cmdline': No suc

  • Help need on Migration

    Hello, Iam migrating a production database from 8.0.4 to 8.1.5 on windows nt.iam using the database migration assistant.It is going on forever.when i checked the log iam getting this error "DBMS PACKAGE STANDARD NOT ACCESSIBLE".I have enough space in