Adding a single table without a logical join to another table (OBIEE 10g)

Sometimes I want to just display a single table without a logical join to another table in the repository. However, everytime I move it to the Business Model and Mapping layer and perform a Global Consistency Check, it tells me that it needs a logical join and I am forced to create another table to join to it. Thus creating a dimension-fact relationship. There are times I don't need this relationship and just want to display some data. Is there anyway to get around this?
Thanks in advance!

Yes,You have to create a join.You cannot take single table to BMM layer.You can create an alias of the table.Join this alias and base table through any common column and take both tables to BMM and desired table to presentation layer.
Another way is to create a view in physcial layer.Write a select statement like
Select primary_key from Table
Where primary_key is primary key of base table.Join this view ith base table and repeat the steps defined for Alias.
Regards,
Sandeep

Similar Messages

  • Customize Font in Pivot Table OBIEE 10g

    Hi All,
    I have the Pivot table like this:
    Item                Value
    A                     1
    B                     2
    C                     3
    Total  A-C         6
    D                     1
    E                     2
    F                     3
    Total D-F          6
    How to bold the Total A-C and its value?My version is OBIEE 10g
    Thank you before
    Regards
    JOE

    Hi Joe
    In 10g
    1st change the View from Compound Layout to "Tabular View"
    2nd.. as you told the A-C total is needed, in the tabular view at Answers......navigate to that field/column  & find Sigma (Summation Symbol) ..
    3rd, by clicking on it..you will get the Totals in Bold Letters
    Please mark Correct if this helps you
    Regards

  • Adding a single table cell

    In other spreadsheet programs I have been able to add a single cell to a column without having to copy and pste the entire column. Is there a way to do this in Numbers?

    We can do that … if we use one of my scripts
    http://discussions.apple.com/thread.jspa?messageID=6415242
    or, go to my idisk:
    <http://idisk.me.com/koenigyvan-Public?view=web>
    then download:
    foriWork:for_Numbers:move_one_cell_down_orright.zip
    foriWork:for_Numbers:move_one_cell_up_orleft.zip
    Yvan KOENIG (from FRANCE samedi 23 août 2008 13:10:41)

  • How can i fetch records from 3 tables in a single query  without using join

    Hi.
    Can any body please tell me <b>How can i fetch records from 3 tables with a single query  without using joins</b>
    Thanx
    prabhudutta

    Hi Prabgudutta,
    We can fetch the data by using the views concept.
    Go throuth this info we can know the how to create view and same like database table only we can fetch the data.
    Views conatin the data at runtime only.
    Four different view types are supported. These differ in the
    way in which the view is implemented and in the methods
    permitted for accessing the view data.
    Database views are implemented with an equivalent view on
    the database.
    Projection views are used to hide fields of a table (only
    projection).
    Help views can be used as selection method in search helps.
    Maintenance views permit you to maintain the data
    distributed
    on several tables for one application object at one time.
    step by step creation of Maintenance view:
    With the help of the table maintenance generator, you are able to maintain the ENTRIES of the table in SM30 transaction.
    It can be set in transaction SE11 - Tools - Table maintenance generator.
    Table maintanance Generator is used to manually input values using transaction sm30
    follow below steps
    1) go to se11 check table maintanance check box under attributes tab
    2) utilities-table maintanance Generator-> create function group and assign it under
    function group input box. Also assign authorization group default &NC& .
    3) select standard recording routine radio in table table mainitainence generator to move table
    contents to quality and production by assigning it to request.
    4) select maintaience type as single step.
    5) maintainence screen as system generated numbers this dialog box appears when you click on create button
    6) save and activate table
    One step, two step in Table Maintenance Generator
    Single step: Only overview screen is created i.e. the Table Maintenance Program will have only one screen where you can add, delete or edit records.
    Two step: Two screens namely the overview screen and Single screen are created. The user can see the key fields in the first screen and can further go on to edit further details.
    SM30 is used for table maintenance(addition or deletion of records),
    For all the tables in SE11 for which Table maintenance is selected , they can be maintained in SM30
    Sm30 is used to maintain the table ,i.e to delete ,insert or modify the field values and all..
    It creates the maintenance screen for u for the aprticular table as the maintenance is not allowed for the table..
    In the SE11 delivery and maintenance tab, keep the maintenance allowed..
    Then come to the SM30 and then enter the table name and press maintain..,
    Give the authorization group if necessary and give the function group and then select maintenance type as one step and give the screen numbers as system specified..
    Then create,,,
    Then u will able to see the maintenance view for the table in which u can able to insert and delete the table values...
    We use SM30 transaction for entering values into any DB table.
    First we create a table in SE11 and create the table maintenance generator for that Table using (utilities-> table maintenance generator) and create it.
    Then it will create a View.
    After that from SM30, enter the table name and Maintain, create new entries, change the existing entries for that table.
    Hope this resolves your query.
    Reward all the helpful answers.
    Rgds,
    P.Naganjana Reddy

  • Multiple 'logical joins' between a fact table and one dimension table

    It appears that one cannot create multiple ‘logical joins’ between a fact table and one dimension table in OBIEE using the Oracle BI Administration Tool. For example, considering a Business Model with a dimension table TIMES and a fact table FACT containing START_TIME and END_TIME, we would like to create separate logical joins from FACT to TIMES for the START_TIMEs and END_TIMEs? Obviously, the underlying foreign keys can be created, but as far as I can tell the Oracle BI Administration Tool doesn’t support this. The workaround would be to replicate the TIMES table, but that’s ugly.
    I seek an alternative approach.

    Try this. Create an two aliases for the TIMES dimension (Start & End) in the Physical Layer and then remove foreign key to the "Parent" Times dimension. Create the Foreign Key in the Physical Layer to the new aliases and then create the complex joins in the BMM Layer to the new aliases as well. This will allow you to present both dates within the same table in the Presentation Layer. Not the most elegant solution but it works.

  • Confusion in Select query having a inner join on single table

    Hi,
    I was going through coding and came a accross a select query which has a inner join on a single table. I am getting confused while analysing this . Please someone can help me analysing this query.
    select
            m~MATERIAL
            s~NUMERATOR s~DENOMINTR
            m~GROSS_WT  m~UNIT_OF_WT
          into table itab
          from ( table1as s
           inner join table1 as m
           on  m~MATERIAL = s~MATERIAL
          and m~MAT_UNIT = 'CS'
          and m~SOURSYSTEM = s~SOURSYSTEM )
          where s~MAT_UNIT = 'EA'
             and s~SOURSYSTEM = 'LD'
             and s~OBJVERS = 'A'
             and s~MATERIAL IN ( Select mat_sales
                from Table2  group by mat_sales ).
    Thank you
    Kusuma

    I don't see any use of the INNER JOIN here.
    But what's the meaning of the last selection clause?
    s~MATERIAL IN ( Select mat_sales
                from Table2  group by mat_sales ).
    Is that native SQL or something?
    Pushpraj

  • Is it Possible to make a join from a single table

    Hi all,
    Is it Possible to make a join from a single table
    Suppose HR_ALL_ORGANIZATION_UNITS table
    can we make a join in the following way
    HR_ALL_ORGANIZATION_UNITS.ORGANIZATION_ID =HR_ALL_ORGANIZATION_UNITS.BUSINESS_GROUP_ID
    Thanks in advance

    Hi
    Yes you can join,
    Like below =- it is called self join -
    Slect a.oersson_id,a.employee_numebr, b.full_name
    form
    hr_all_organization_units a,
    hr_all_organization_units b
    where
    a.person_id = b.person_id and
    sysdate between a.effective_start_date and a.effective_end_date and
    sysdate between b.effective_start_date and b.effective_end_date
    914618 wrote:
    Hi all,
    Is it Possible to make a join from a single table
    Suppose HR_ALL_ORGANIZATION_UNITS table
    can we make a join in the following way
    HR_ALL_ORGANIZATION_UNITS.ORGANIZATION_ID =HR_ALL_ORGANIZATION_UNITS.BUSINESS_GROUP_ID
    Thanks in advance

  • Inner Join or Merge in a single Table?

    I have a Single table with
    City            date               type     vlCC       vlVV       
        key
    London    24-01-2014        CC       blue                         key1
    London    25-01-2014        VV                    yellow         key4
    London    24-01-2014        VV                    green          key2
    Lisbon     24-01-2014        CC       green                     
     key5
    Lisbon     24-01-2014        VV                     red           
     key6
    London    25-01-2014        CC       black                        key3
    My first approach was a inner join but hanged here.
    SELECT distinct p.city, p.date, p.type FROM Cities AS P INNER JOIN Cities AS P2
    ON P.City = P2.City AND P.Date = P2.Date   AND P.type <> P2.type and P.Date > GETDATE() order by   p.city, p.date,  p.type
    My wanted output is
    London     24-01-2014       blue        green      key1      key2
    Lisbon      24-01-2014        green      red          key5      key6
    London     25-01-2014       black       yellow     key3      key4
    (ordered by   p.city, p.date,  p.type)
    It means I want to "merge" the rows by city and date and order it like that (city,date )
    Thanks

    I have included solutions posted earlier (make them all work) and they can return what you need. 
    It seems the solution Latheesh provided with Max(Case...) works faster  by viewing their execution plan with this sample data.
    Thanks for everyone's input. I have combined all queries in one script now:
    Create Table Test(City varchar(50),date Date, type Char(2), vlCC varchar(100),vlVV varchar(100),[key] Varchar(10))
    Insert into Test Values
    ('London','01/24/2014','CC','blue','','key1'),
    ('London','01-25-2014','VV','','yellow','key4'),
    ('London','01-24-2014','VV','','green','key2'),
    ('Lisbon','01-24-2014','CC','green','','key5'),
    ('Lisbon','01-24-2014','VV','','red','key6'),
    ('London','01-25-2014','CC','black','','key3')
    ,('Lisbon','01-26-2014','cc','','violet','key7'),
    ('London','01-27-2014','vv','yellow','','key8')
    --Latheesh
    Select City,date,vLcc,vLcc, ccKey, vvKey FROM (
    Select City,date
    ,MAX (vlCC) as vLcc
    ,MAX (vlVV) as vLvv
    ,MAX(Case when type = 'cc' then [Key] else null end) ccKey
    ,MAX(Case when type = 'vv' then [Key] else null end) vvKey
    From Test
    Group by City,date) t
    WHERE ccKey+vvKey IS Not NULL
    Order by Date, City DESC
    --Visakh16
    Select * from (SELECT COALESCE(t1.city,t2.city) AS city,
    COALESCE(t1.date,t2.date) AS date,
    t1.vlCC,
    t2.vlVV,
    t1.[key] as key1,
    t2.[key] as key2
    FROM Test t1
    FULL JOIN Test t2
    On t2.city = t1.city
    AND t2.date = t1.date
    AND t2.type = 'vv'
    AND t1.type = 'cc') t
    WHERE key1+key2 IS Not NULL
    Order by Date, City DESC
    --eralper
    ; with cte as (
    select *, rn = ROW_NUMBER() over (partition by city, date order by type) from test
    SELECT * FROM (
    select distinct
    city,
    date,
    max(vlCC) over (partition by city, date) as vlCC,
    max(vlVV) over (partition by city, date) as vlVV,
    key1 = max(case when rn = 1 then [key] else null end) over (partition by city, date),
    key2 = max(case when rn = 2 then [key] else null end) over (partition by city, date)
    from cte) t
    WHERE key1+key2 is not null
    --Jayakumaur
    ;with cte
    as
    select City,Date,max(vlCC) vlCC,max(vlVV) vlVV
    From test
    group by city,date
    ,cte1
    as
    select city,date,[key]
    from test
    select city,date,vlCC,vlVV,[1] as keya,[2] as keyb
    from
    select c.* ,a.[key],row_number() over(partition by c.city,c.date order by [key]) rn
    from cte c
    inner join cte1 a on c.city=a.city and c.date=a.date
    ) tab
    PIVOT
    max([key]) for rn in([1],[2])
    ) pvt
    WHERE [1] +[2] IS Not NULL
    Order by Date, City DESC
    Drop table Test

  • Unable to join dimensions & measures from 2 diff context in single table

    Hello,
    I am a newbie in the BO & Webi arena and have an issue in merging dimensions & measures from two different contexts(in universe) in a single table.
    I tried using ForceMerge but dint work out.
    Heres my scenario,
    query 1- Fiscal Yr, Month, Physician,Metric,Rate
    query 2- Fiscal Yr, Month,Metric,Rating Scale,lower limit,upper limit
    So, i have to ceate a report involving Fiscal Yr, Month, Physician,Metric,Rate & Rating Scale.
    For each 'Metric' there is specific range which defines its 'Rating Scale'.
    Ex. Tetanus Vaccine(Metric) has a the following scale
    Lower limit Upper Limit Rating Scale
    0           69                       0
    70         89                       1
    90         90                       2
    91         95                       3
    95         100                     4
    The value of 'Rate' lies in between these values and accordingly it should get the scale.
    So, the report should be like
    fiscal yr Month Physician Metric Rate Scale
    Any help will be highly appreciated!
    Thanks in advance.

    Hi Vicky,
    From what I have read in the above posts, you have merged Fiscal Yr, Month and Metric objects as they are the common dimensions.  I assume "Physician" is the only other dimension among all the objects that you have listed.
    In your report, you need to use the merged dimension for Fiscal Yr, Month and Metric.  For Physician, you can use the dimension from query 1, as there are no other dimensions that you are planning to display.
    If the above things are right, then your calculation should work correctly.
    If it is not working correctly, I have a feeling that you have not merged Metric object.  In case if you have any other dimensions than what is listed above, let me know.
    Regards,
    Srivatsa

  • Why do we create multiple aliases to a single table?

    <h4>{color:#0000ff}Hi,{color}</h4>
    <h4></h4>
    <h4></h4>
    <h4>{color:#0000ff} Why do we create multiple aliases to a single table in the same query?{color}</h4>
    <h4></h4>
    <h4></h4>
    <h4>{color:#0000ff}{color:#000000}For Ex: {color}{color}</h4>
    <h4>
    {color:#000000}select name,address,phone, from emp e, emp e1{color}</h4>
    <h4></h4>
    <h4>{color:#000000}where e.empid = e1.empid;{color}</h4>
    <h4>
    {color:#0000ff}ofcourse the above query's where condition is not correct, but i am giving as an example only{color}</h4>
    <h4>{color:#0000ff}I have seen similar kind of queries where a single table name is aliased 10 times in the same query{color}</h4>
    <h4>{color:#0000ff}can someone help me to understand the logic behind it?{color}</h4>
    <h4>{color:#0000ff}Thanks in advance{color}</h4>
    <h4>{color:#0000ff}greddy.{color}</h4>
    Edited by: greddy on Oct 24, 2008 2:46 AM

    Hi,
    When you say
    FROM    emp  e
    ,       emp  e1you are using two copies of the same table.
    Can you imagine using two copies of the same book at the same time?
    Say you see a word (like "hyrax") that you don't know. You might look up that word in the dictionary.
    The English sentence "Open the dictionary to the page containing the new word." is like this SQL query:
    FROM    dictionary
    WHERE   :unknown_word  BETWEEN low_guide_word and high_guide_wordWhat if you saw that word while reading a book (let's call it book_a).
    You might want to leave book_a open, and place the dictionary beside book_a, so you can easily compare how the word is used in book_a with the definition in the dictionary.
    This corresponds to joining two tables in SQL:
    FROM    book_a     
    JOIN    dictionary  ON unknown_word BETWEEN low_guide_word AND high_guide_word
    WHERE   book_a.page  = whatever  -- NOTE: both tables have a column called pageor you can use aliases for one or both of the tables
    FROM    book_a      a
    JOIN    dictionary  d  ON a.unknown_word BETWEEN d.low_guide_word AND d.high_guide_word
    WHERE   a.page  = whatever  -- NOTE: both tables have a column called pageNow, imagine that book_a is itself the dictionary. Say you saw the word "hyrax" while you were looking up another word, "ibex".
    You can do a side-by-side comparison, as above, if you have two copies of the dictionary. Leave one copy open to "ibex", and open the other copy to "hyrax".
    This corresponds to a self-join in SQL:
    FROM    dictionary  a
    JOIN    dictionary  d  ON a.unknown_word BETWEEN d.low_guide_word AND d.high_guide_word
    WHERE   a.page  = whatever  -- NOTE: both tables have a column called pageNotice that this last bit of code is identical to the previous one, except that book_a is replaced with dictionary.
    In this case, you must you a table alias, at least for one copy. It wouldn't make any sense to say "Leave the dictionary open to "ibex" and open the dictionary to "hyrax". You have to have some unique way of referring to each copy, such as "Leave the dictionary on my left open to "ibex" and open the dictionary on my right to "hyrax"."

  • How to combine large number of key-value pair tables into a single table?

    I have 250+ key-value pair tables with the following characteristics
    1) keys are unique within a table but may or may not be unique across tables
    2) each table has about 2 million rows
    What is the best way to create a single table with all the unique key-values from all these tables? The following two queries work till about 150+ tables
    with
      t1 as ( select 1 as key, 'a1' as val from dual union all
              select 2 as key, 'a1' as val from dual union all
              select 3 as key, 'a2' as val from dual )
    , t2 as ( select 2 as key, 'b1' as val from dual union all
              select 3 as key, 'b2' as val from dual union all
              select 4 as key, 'b3' as val from dual )
    , t3 as ( select 1 as key, 'c1' as val from dual union all
              select 3 as key, 'c1' as val from dual union all
              select 5 as key, 'c2' as val from dual )
    select coalesce(t1.key, t2.key, t3.key) as key
    ,      max(t1.val) as val1
    ,      max(t2.val) as val2
    ,      max(t3.val) as val3
    from t1
    full join t2 on ( t1.key = t2.key )
    full join t3 on ( t2.key = t3.key )
    group by coalesce(t1.key, t2.key, t3.key)
    with
      master as ( select rownum as key from dual connect by level <= 5 )
    , t1 as ( select 1 as key, 'a1' as val from dual union all
              select 2 as key, 'a1' as val from dual union all
              select 3 as key, 'a2' as val from dual )
    , t2 as ( select 2 as key, 'b1' as val from dual union all
              select 3 as key, 'b2' as val from dual union all
              select 4 as key, 'b3' as val from dual )
    , t3 as ( select 1 as key, 'c1' as val from dual union all
              select 3 as key, 'c1' as val from dual union all
              select 5 as key, 'c2' as val from dual )
    select m.key as key
    ,      t1.val as val1
    ,      t2.val as val2
    ,      t3.val as val3
    from master m
    left join t1 on ( t1.key = m.key )
    left join t2 on ( t2.key = m.key )
    left join t3 on ( t3.key = m.key )
    /

    A couple of questions, then a possible solution.
    Why on earth do you have 250+ key-value pair tables?
    Why on earth do you want to consolodate them into one table with one row per key?
    You could do a pivot of all of the tables, without joining. something like:
    with
      t1 as ( select 1 as key, 'a1' as val from dual union all
              select 2 as key, 'a1' as val from dual union all
              select 3 as key, 'a2' as val from dual )
    , t2 as ( select 2 as key, 'b1' as val from dual union all
              select 3 as key, 'b2' as val from dual union all
              select 4 as key, 'b3' as val from dual )
    , t3 as ( select 1 as key, 'c1' as val from dual union all
              select 3 as key, 'c1' as val from dual union all
              select 5 as key, 'c2' as val from dual )
    select key, max(t1val), max(t2val), max(t3val)
    FROM (select key, val t1val, null t2val, null t3val
          from t1
          union all
          select key, null, val, null
          from t2
          union all
          select key, null, null, val
          from t3)
    group by keyIf you can do this in a single query, unioning all 250+ tables, then you do not need to worry about chaining or migration. It might be necessary to do it in a couple of passes, depending on the resources available on your server. If so, I would be inclined to create the table first, with a larger than normal percent free, then do the first set as a straight insert, and the remaining pass or passes as a merge.
    Another alternative might be to use the approach above, but limit the range of keys in each pass. So pass one would have a predicate like where key between 1 and 10 in each branch of the union, pass 2 would have key between 11 and 20 etc. That way everything would be straight inserts.
    Having said all that, I go back to my second question above, why on earth do you want/need to do this? What is the business requirement you are trying to solve. There might be a much better way to meet the requirement.
    John

  • Is it not possible to give the select single field without an into clause

    Hi,
    i have to check whether my input value( only one filed) is available in the table.
    for eg i need to check whether company code is available in the table t001.
    then i will give .
    data lv_bukrs type t001-bukrs.
    lv_bukrs = 1010.
    select single bukrs from t001 where bukrs = lv_bukrs.
    here its asking for me to give a vaible to store the bukrs that is
    select single bukrs into dummyvalue from t001 where bukrs = lv_bukrs.
    Is it not possible to give the select single fieldname without an into clause

    Its Possible by declaring the tables statement
    <b>tables : AFKO.
    select single * from AFKO where <condition>.</b>
    If SINGLE is specified, the resulting set has a single line. If the remaining additions to the SELECT command select more than one line from the database, the first line that is found is entered into the resulting set. The data objects specified after INTO may not be internal tables, and the APPENDING addition may not be used. The addition ORDER BY can also not be used.
    An exclusive lock can be set for this line using the FOR UPDATE addition when a single line is being read with SINGLE. The SELECT command is used in this case only if all primary key fields in logical expressions linked by AND are checked to make sure they are the same in the WHERE condition. Otherwise, the resulting set is empty and sy-subrc is set to 8. If the lock causes a deadlock, an exception occurs. If the FOR UPDATE addition is used, the SELECT command circumvents SAP buffering.
    Notes
    When SINGLE is being specified, the lines to be read should be clearly specified in the WHERE condition, for the sake of efficiency. When the data is read from a database table, the system does this by specifying comparison values for the primary key.
    If accessing tables for which SAP buffering is planned for single records, the SAP buffer is bypassed if the addition SINGLE is not specified. This behavior depends on the current implementation of the database interface and may change in future releases. In particular, it should not be used to bypass the SAP buffer. You should use the explicit addition BYPASSING BUFFER for this instead.
    The addition SINLGE is not permitted in a subquery.
    Regards
    - Gopi

  • Single table recovery from hotbackup?

    In oracle 9i, accidently one of table has dropped, is it possible to recovery single table from the hotbackup without any downtime, to the user session..

    Hi
    No, you can't make it possible , you have to restore your whole database and perform the incomplete recovery to get your table back.however you can go for tablespace point in time recovery , where you only need to restoter the perticular tablespace datafile , without distrurbing the rest of the operation. hi alok,you should verify ur answer before posting here.because we can use TSPITR for recovery of drop table.
    As per Oracle Documentation
    User-managed TSPITR is most useful for recovering the following:
    An erroneous DROP TABLE or TRUNCATE TABLE operation
    An erroneous DROP TABLESPACE operation
    A table that is logically corrupted
    An incorrect batch job or other DML statement that has affected only a subset of the database
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96572/ostspitr.htm#421341
    Thanks and Regards
    Kuljeet Pal Singh

  • FlatFile import with multiple formats to single table

    I need to import a Flatfile which can have varying number of columns eg row1 7 x cols, row2 15 x columns, row3 12 x columns.
    The file needs to be added to a single table.
    Any thoughts on best way to approach this. 

    What version of SSIS are you using? If you're using 2012 or later, you can most likely do this in the data flow without scripting.
    You'll configure your flat file source with the maximum number of columns you'll expect in any data row, and each column's data type would need to be configured to accommodate the largest/widest value expected in any row for that column. In SSIS 2012 or
    2014, the flat file source will interpret any missing columns as NULLs. Then just load the output of the flat file source to your destination table with the appropriate mappings. Any missing values will be NULL.
    The behavior was different in SSIS 2005 and 2008. If you had fewer than expected columns in any row, the flat file source would continue to read data from the file until it got all of the columns it expected - even if that meant reading data from the next
    line of text. For those versions, scripting the source was the easier solution.
    Tim Mitchell | TimMitchell.net | @tim_mitchell

  • Two Fields in a Single Table

    Hello All,
    I'm a newbie to the forum & to Crystal(9), I've searched the forum and ca't exactly find an answer to my question:
    My goal is to be able to pull the Company Member Type & the Contact Member Type as part of the same report in the selection criteria.
    My problem is: They both reside in the same table...
    The question is: "how to be able to pull the info?"
    If I need to provide more or clearer info pleasde let me know.  Any help is appreciated.
    Lost in DC - DJ

    If you have a single table datasource record duplication wouldn't be a result of the select expert. In fact, I can't think of a case where a single table datasource could possibly duplicate records.
    The duplicates must be the result of a join.
    To answer your initial question, the select expert you enter is subjected, in its entirety, to each record in the joined tables.
    The problem that I see with the above suggestion relates to precedence.
    This:
    cond 1 AND cond 2 AND cond 3 OR cond 4
    Is not this:
    cond 1 AND cond 2 AND (cond 3 OR cond 4)
    In the case of the non-paren-ed select statement, it will return records that satisfy ALL of the AND conditions OR just the or condition.
    In the second case, it will return all records that satisfy condition 1 and condition 2 AND either condition 3 or condition 4.
    Try bracketing the ored conditions from the same table. That should solve your select problem, but not the duplication problem.

Maybe you are looking for

  • Cancel the excise invoice in Intra company stock transfer

    Dear Gurus, I have one issue in CIN. The following are the my sequence of operation. Intra company stock transfer. 1. Purchase order with UB. (from plant A) 2. Delivery ( from plant B), 3. PGI ( from plant B), 4.Excise Invoice ( from plant B to A), 5

  • What  type of plug in do I need to use between weblogic and tomcat please

    Hi, Can anybody please tell me what type of plugin do I need to install to communicate between Tomcat4.0 and weblogic6.1 sp2.actually I wanted to use a connection pool from my servlet on my local tomact where connection pool is created on remote webl

  • ICloud with Outlook 2007 problems

    The latest update for iCloud would appear to cause a problem with sending email using Outlook 2007 on a PC. I use iCloud to sync my Calendars and Contacts in Outlook. But Outlook will no longer date messages sent to its Outbox, and therefore won't se

  • Unable to be processed???????????

             I have an itunes gift card and am trying to buy a game for my ipod. But every time i try it says

  • TS2634 Problem IPod Touch docking station.

         I have an IPod Touch in a docking station which drives a player piano,  I have an Apple A1256 docking station with a remote control.  The IPod suddenly stopped working in the docking station.  The IPod screen appears to show the IPod playing, bu