URGENT : Return all rows when parameters null

Hi !
I have a simple question for you guys.
I have some problems creating an SQL.
Effectively, I want to be able to return all the rows of a table when my parameters are null.
Here is an example of what I'm saying.
SELECT COPY_TRANSACTION.DATE_TRANSACTION,
       COPY_TRANSACTION.CODE_NT,
       COPY_TRANSACTION.NOM_GROUPE,
       COPY_TRANSACTION.NOM_PROVENANCE,
       COPY_TRANSACTION.NOM_SUJET,
       COPY_TRANSACTION.NOM_ACTION,
       COPY_TRANSACTION.NOM_SOURCE,
       COPY_TRANSACTION.NOM_SYSTEME,
       COPY_TRANSACTION.VOLUME
FROM GESTACHE_OWNER.COPY_TRANSACTION COPY_TRANSACTION
WHERE (COPY_TRANSACTION.DATE_TRANSACTION Between ? And ?)
      AND (COPY_TRANSACTION.PEIN_CREATION=?)
      AND (COPY_TRANSACTION.CODE_NT In (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
      AND  )I want that when ? is null, every data of my table will be selected.
Anyone can help me ??

Not pretty but you could try:
SELECT CT.DATE_TRANSACTION,
       CT.CODE_NT,
       CT.NOM_GROUPE,
       CT.NOM_PROVENANCE,
       CT.NOM_SUJET,
       CT.NOM_ACTION,
       CT.NOM_SOURCE,
       CT.NOM_SYSTEME,
       CT.VOLUME
  FROM GESTACHE_OWNER.COPY_TRANSACTION CT
WHERE (   (    ?1 is null
            and ?2 is null
            and ?n is null)
        or (    CT.DATE_TRANSACTION Between ?1 And ?2
            AND CT.PEIN_CREATION=?3
            AND CT.CODE_NT In (?4,?5,?6,?7,?8,...?n)
            AND  )How is this being called - a procedure, script, form? Depending on the use it might be beter to have 2 queries - one for NULL parameters, and one for the non-NULL parameters

Similar Messages

  • Tabular: Row filter on USERNAME() still returns all rows if current user is NOT matched in table??

    I have a table (basically the same setup in the various dynamic security in tabular blogs) where the table contains WindowsUserName stored as domain\username.
    I have a Row Filter on the table: SecurityTable has a filter of =SecurityTable[WindowsUserName]=USERNAME()
    When a user connects to the tabular model AND their name is matched in one of the rows they return JUST the rows with their match.  Which makes sense.
    However, if a user connects and their Windows user name is NOT in a row in that table....they return ALL rows???
    That makes no sense to me.
    It behaves almost as if it is doing a check and if it DOESN'T find a match it just returns all values.
    What am I missing?
    --------------EDIT-----------
    Found the issue: that use was (unknown to me) a domain admin, so... admin rights trump all :)

    Resolved:
    User had admin rights, didn't realize this at the time.

  • Query to return ALL rows even those with zero counts

    Hi,
    The following query will return only those rows that have a non zero count value:
    select c.id, a.name, count(*) as XYZ from CON c, CUST a
    where c.help !='1' and (c.id = a.id) group by c.id, a.name order by c.id;
    The results are:
    1 ME 3
    3 YOU 4
    What i want is to return all rows in CUST and the count, XYZ, that correspond to each row in CUST that matches the whare condition above, even if the count is zero.
    ie
    1 ME 3
    2 WE 0
    3 YOU 4
    Can this be done?

    You may want to get the counts then do the outer join. If you simply count with an outer join you will get 1 for 'WE' because there is a row in the cust table with 'WE'. This may work for you;
    with
      cust as (
       select 1 id, 'ME' name from dual union all
       select 2 id, 'YOU' name from dual union all
       select 3 id, 'WE' name from dual),
      con as (
       select 1 id, '2' help from dual union all
       select 1 id, '2' help from dual union all
       select 1 id, '2' help from dual union all
       select 2 id, '2' help from dual union all
       select 2 id, '2' help from dual union all
       select 2 id, '2' help from dual union all
       select 2 id, '2' help from dual)
    -- end of test data 
    select a.id, a.name, nvl(c.cnt,0) xyz
    from cust a, 
       (select id, help, count(*) cnt
       from con
       where help !='1'
       group by id, help) c
    where a.id = c.id(+)

  • Regular Report Not Returning All Rows

    Greetings,
    On APEX version 4.1.1.00.23 Using latest versions of Chrome and IE. I found some threads that discussed this aspect some, but not to the extent that is helpful to my situation.
    I know it is crazy to have APEX return 40K+ rows on a report, but I have a need to do so. I need to return that many rows from a table so that an APEX page can be opened via Excel and then have an Excel macro run over the report results and import all 40K+ rows into a worksheet. As I said, that's crazy, but the decision isn't mine. :-) We have the macro working and it passes parameters to the APEX page and imports data from the APEX page.
    Also, the report has 14 columns on it, not that many.
    Given the requirement above I have a regular report page that only has the report and 2 page items on it. The page items contain values that are passed via Excel and are then used in the WHERE condition of the report. Using the same WHERE condition, when I run the SQL for the report outside of APEX it returns 46,840 rows. I have the both the Number of Rows and Maximum Row Count settings set to 50000. And, I have the Pagination Scheme set to Row Ranges X to Y of Z (with pagination).
    When I run the page and enter the selection criteria the report only returns 15,500 rows. Yes, that's a lot rows. And, it takes about 5 minutes to populate. But, it doesn't return ALL of the rows. Also, the pagination suggests that all rows were returned because it reads - row(s) 1 to 15500 of 15500. I have changed the pagination and max rows settings a lot to see of it's just a matter of having the correct report setting. I've yet to find a setting that will cause the whole 46840 result set to be returned.
    It may end up that the report selection needs to change in order to return fewer rows. But, regardless of that why isn't APEX returning the complete result set now? And, is there a way to force it to return the complete result set regardless of the size?
    Any suggestions are appreciated.
    Thanks, Tony

    cloaked wrote:
    Thanks for the response. Yup, you're correct. Downloading to a CSV might be better. I've set reports up that way many, many times. I have even developed pages that import from a CSV into APEX using PL/SQL, years before it was an APEX feature. I initially set the report up to allow it to be downloaded, but the user doesn't want it to work that way.
    The worksheet will be used by a lot of people in our accounting department and they want the process to be as simple as possible. Right now Excel opens up the APEX page, logs into the application, passes parameters to it for the month and company, hits the Select button, waits on the report to build, then automatically imports it, and finally closes the page. It is quite slick. Yes, it takes 5 minutes to run, but the user is OK with that given what the automation provides.
    So, in order for the automated import to work properly all 45K rows need to display on one page, without pagination. I currently have pagination on the page simply to determine if APEX is returning all of the rows.A process of this nature might work better using an export: XML or export: CSV report template, which won't go anywhere near pagination. When a page containing a report using these templates is requested APEX sends the report results in XML or CSV format rather than rendering the page. This should be faster, avoid complications with pagination, and be easier to parse in Excel.
    Previous thread along similar lines: +{thread:id=2285213}+

  • PowerPivot 2013 | Drill to Details returns all rows

    When double-clicking on a measure, or a value within a powerpivot pivot table, the drill to details sheet returns all the rows in the dataset. 
    Is this normal behavior? Is there a workaround for this?
    Thank you!

    The drillthrough should respect all filter context in the pivot table, thus it should only be returning those values that make up the subset determined by the table filters, slicers, and whichever field labels make up the row and column filters.
    Any filtering logic you have written into the measures themselves will not be maintained for the drillthrough.

  • Business Objects is not returning all rows from Query

    We set the rowcount to 1000000 and the business objects query only returns 16,960 rows.  We then uncheck the limit for the rowcount and the first run of the query returns 65,535.  The subsequent run of the query returns all the rows which is greater than 65,535.  We are on release 6.1A of business objects and selecting from Microsoft SQLServer 2005 in 2000 compatablility mode. We noticed that the rowcount being sent to SQLServer is replacing the set number with the 65,535 the first time the query is sent and subsiquent queries have the correct rowcount set.  What would be causing the rowcount to be reset and how can it be fixed?

    We set the rowcount to 1000000 and the business objects query only returns 16,960 rows.  We then uncheck the limit for the rowcount and the first run of the query returns 65,535.  The subsequent run of the query returns all the rows which is greater than 65,535.  We are on release 6.1A of business objects and selecting from Microsoft SQLServer 2005 in 2000 compatablility mode. We noticed that the rowcount being sent to SQLServer is replacing the set number with the 65,535 the first time the query is sent and subsiquent queries have the correct rowcount set.  What would be causing the rowcount to be reset and how can it be fixed?

  • Loop Not Returning All Rows

    I finally need to turn to the forum after trying for a few days to resolve my problem I decide to turn to the Oracle people for help.
    The following code below does two things:
    1. If I have the get_menu_label in side of it's own loop it never returns
    2. If I take the get_menu_label out side of it's own loop it returns but does not return all the data.
    DECLARE
    -- GETTING THE DATABASE NAME
    CURSOR get_db_name
    IS
    SELECT DATABASE
    FROM uaf_mfgp_menus_and_groups_vm
    GROUP BY DATABASE
    ORDER BY DATABASE ASC;
    -- GETTING THE OBJECT_ID FOR EACH DATABASE
    CURSOR get_object_id_db (l_db_name VARCHAR2)
    IS
    SELECT object_id
    FROM UAF_FORM_OBJECTS
    WHERE object_label_2 = l_db_name;
    -- GETTING THE GROUP NAME
    CURSOR get_gp_name
    IS
    SELECT group_name
    FROM uaf_mfgp_menus_and_groups_vm
    GROUP BY group_name
    ORDER BY group_name ASC;
    -- GETTING THE OBJECT_ID FOR GROUP WITH GP NAME AND DATABASE
    CURSOR get_object_id_gp (l_gp_name VARCHAR2, db_id NUMBER)
    IS
    SELECT object_id
    FROM UAF_FORM_OBJECTS
    WHERE object_label_2 = l_gp_name AND parent_object_id = db_id;
    -- GETTING MENU LABEL
    CURSOR get_menu_label (l_db_name VARCHAR2, l_gp_name VARCHAR2)
    IS
    SELECT menu_label
    FROM uaf_mfgp_menus_and_groups_vm
    WHERE DATABASE = l_db_name AND group_name = l_gp_name;
    got_object_id_db NUMBER (20);
    got_object_id_gp NUMBER (20);
    got_db VARCHAR2 (100);
    got_menu_label VARCHAR2 (200);
    BEGIN
    FOR c1 IN get_db_name
    LOOP
    FOR c2 IN get_gp_name
    LOOP
    OPEN get_object_id_db (c1.DATABASE);
    FETCH get_object_id_db
    INTO got_object_id_db;
    OPEN get_object_id_gp (c2.group_name, got_object_id_db);
    FETCH get_object_id_gp
    INTO got_object_id_gp;
              CLOSE get_object_id_db;
    CLOSE get_object_id_gp;
    OPEN get_menu_label (c1.DATABASE, c2.group_name);
    LOOP
    FETCH get_menu_label
    INTO got_menu_label;
    END LOOP;
    CLOSE get_menu_label;
    DBMS_OUTPUT.put_line ( 'GP_OBJECT_ID= '
    || got_object_id_gp
    || ' '
    || 'MENU_LABEL= '
    || got_menu_label
    END LOOP;
    END LOOP;
    END;
    /

    Javier, this the wrong way to use PL/SQL. Oracle SQL can do all this for you using JOINs.
    This code, even if it did work, would be terrible slow - unable to scale with data volumes.
    This code breaks a few fundamental Oracle rules:
    - row-by-row processing using PL/SQL
    - huge number of context swicthes per PL/SQL loop iteration
    - not maximizing SQL and minimizing PL/SQL
    I suggest you trash this code and write a SQL JOIN instead.

  • "Failed to validate all rows" when inserting in master detail scenario

    Hi,
    I have problem writing data in a master detail scenario..
    i use the following bean method to write data.
    Data is inserted in the master table successfully but when i try to commit in the details table i get the error "Failed to validate all rows in a transaction."
    public void save(ActionEvent actionEvent)
    //writing into master table
    DCBindingContainer bindings =
    (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iterBind =
    (DCIteratorBinding)bindings.get("Master1Iterator");
    MasterVOImpl vo_pr = (MasterVOImpl ) iterBind.getViewObject();
    Row r=vo_pr.createRow();
    r.setAttribute("Name", name);
    Number num =(new oracle.jbo.server.SequenceImpl("new_seq",vo_pr.getDBTransaction())).getSequenceNumber();
    r.setAttribute("Id",num);
    vo_pr.insertRow(r);
    vo_pr.getDBTransaction().commit();
    //writing into details table
    DCIteratorBinding scopeiterBind =
    (DCIteratorBinding)bindings.get("Detail2Iterator");
    DetailVOImpl vo_sc = (DetailVOImpl) scopeiterBind.getViewObject();
    Row rs=vo_sc.createRow();
    rs.setAttribute("iddetail",iddetail);
    rs.setAttribute("Name", Name);
    rs.setAttribute("id",num);
    vo_sc.insertRow(rs);
    vo_sc.getDBTransaction().commit();
    Note: the Detail iterator used here is the one under the master in the AM

    In case your model defined a view link from master to detail should try to get the detail iterator from the master and use this to create the new row.
    Row r=vo_pr.createRow();
    r.setAttribute("Name", name);
    Number num =(new oracle.jbo.server.SequenceImpl("new_seq",vo_pr.getDBTransaction())).getSequenceNumber();
    r.setAttribute("Id",num);
    vo_pr.insertRow(r);
    // this method gets the detail iterator for the master row you just created.
    // The name of the method depends on the view link in your model you expose to the master view
    Row rs=vo_pr.getDetail().createRow();
    rs.setAttribute("iddetail",iddetail);
    rs.setAttribute("Name", Name);
    // this value should be added by the framework
    //rs.setAttribute("id",num);
    vo_sc.insertRow(rs);
    vo_pr.getDBTransaction().commit();Timo

  • Pagination do not have choice of returning all rows

    I have apex 3.0. When report is built, I normally give pagination scheme "Row Rnages 1-15 16-30 in select list (with pagination)", Number of Rows 15, Maxium Row count 2000. Problems are
    1. Can not have "all rows" as select list choice ? (OEM grid has that choice)
    2. Cna not change from 15 per page to other number
    Can some export help ?

    Even changing number of rows will not change it. But really the question is to mix pagination and no pagination into ONE select list. I have been asked several times from users and I am puzzled about this myself.
    Any expert there ?

  • Stored Procedure fails to return all rows of data.

    Our HR database uses a procedure to build a list of employee IDs (ie. 1,3,14,...1210,1215) then calls a procedure to with a variable to extract details per employee. Unfortunately the list is 947 ids, however only 887 rows are returned.
    As a test I split the list in two and called the procedure. If I add the data rows together I get 947, hence I know the employees are valid. Can anyone suggest why a long list of Ids should fail? Is there a limit a stored procedure can return?
    The procedure (simplified down a bit) is:
    ALTER PROCEDURE [dbo].[sp_Employee_CreateTable]
     @EmpIds varchar(4000)
    AS
    SELECT    E.empid as EmpId ,E.Surname
        FROM    Employee E
        WHERE  (E.[EmpID] IN (select * from GetAllUsersUnderManager(@EmpIds))) AND EJ.id=dbo.GetCurrentEmployeeJobRecord(EJ.empid)--EJ.dateto IS NULL
    I can run the procedure as:
    "exec sp_Employee_CreateTable @EmpIds=N'1,3,14.....999'" which returns (say) 700 rows  and  "exec sp_Employee_CreateTable @EmpIds=N'1001,.....1215'" which returns 247 rows. (ie. 700+247 = 947 which is correct.
    But exec sp_Employee_CreateTable @EmpIds=N'1,3,14......1215' only returns 887 rows.
    I have looked at the length of the data passed to the procedure (1,3,...1215) which equals 4126 chars, therefore I bumped the varchar space from 4,000 to 6,000 which is still within limits, however the number of rows returned was still 887.
    Any help would be gratefully received.

    Hi Scott. I run the script you suggested (thank you), the var EmpIds was set to a string with over 930 ids. The returned data set started with 0 but only had 888 rows. As mentioned above I refer the 930+ list as full list, and the 888 as the short list.
    The difference (around 47) were the last values in the full list.
    Although EmpIds was set to 6K it definately seems like it gets to around 4K chars then ignores any other values.
    Re "since you pass....". Absolutely. I have modified the Employee_CreateTable with the var update to 6K/
    ALTER PROCEDURE [dbo].[sp_Employee_CreateTable]
     @EmpIds varchar(6000),
     @IncludeLeavers Bit
    AS
        SELECT    E.empid as EmpId ,E.Surname, E.Firstname as Forename,E.PayrollID, E.intextno as Extension, EJ.position as Position, [dbo].[GetEmployeeDepartment](E.empid) as Department, [dbo].[GetEmployeeLocation](E.empid) as Location,
    E.title as Title, EJ.ReportsTo,
                CoEmail,E.[left]
        FROM    Employee E INNER JOIN EmployeeJobs EJ
        ON        E.empid = EJ.empid
        WHERE  (E.[EmpID] IN (select * from GetAllUsersUnderManager(@EmpIds))) AND EJ.id=dbo.GetCurrentEmployeeJobRecord(EJ.empid)--EJ.dateto IS NULL
                AND (E.[left]=0 or E.[left]=@IncludeLeavers)
        ORDER BY E.Surname, E.Firstname, E.empid

  • How to return all fields when updating?

    When I update a lead, it only returns fields that are modified but not all fields in the XML.
    I noticed the LeadID and LeadFullname values are still being returned when updating which is good.
    How can I make it so it will return ALL fields that have values and not just the modified ones when updating?
    Thanks

    I have to query it after getting it back from the queue.

  • OSqlStmt cannot return all rows?

    I'm wondering if there's any way to do this.
    I want to be able to issue a SELECT statement, and:
    (a) be able to cancel it at anytime
    (b) set the fetch limit on the SELECT
    Now, (a) makes me want to use OSqlStmt, and that works fine, as far a canceling goes. The problem is, OSqlStmt doesn't seem to support the concept of "fetch limit". It always seems to return the first row only, which makes sense considering it should only be used for DML.
    Of course, (a) rules out ODynaset - there's no way to cancel them once they've started.
    So, is there some trick to doing this? Thanks.

    Not if multiple bonuses exists of 5k, since he only wants the most recent one. Right?
    Edit: I think this works, using analytics:
    with t as (
    select 1 id, 500 bonus, sysdate dte from dual UNION ALL
    select 1 id, 100 bonus, sysdate-1 dte from dual UNION ALL
    select 1 id, 5000 bonus, sysdate-2 dte from dual UNION ALL
    select 1 id, 2000 bonus, sysdate-3 dte from dual UNION ALL
    select 1 id, 5000 bonus, sysdate-4 dte from dual
    select id, bonus, dte from (
    select t.*,
           SUM(case when bonus = 5000 then bonus end) over (partition by id order by dte desc) m
    from t
    order by id, dte desc)
    where m is NULL or (bonus = 5000 AND m = 5000);
    ID                     BONUS                  DTE                      
    1                      500                    13-FEB-09                
    1                      100                    12-FEB-09                
    1                      5000                   11-FEB-09                
    3 rows selectedEdited by: tk-7381344 on Feb 13, 2009 2:49 PM

  • SELECT returning different rows when issued from SQL Developer or Java apps

    Hi there. I'm facing a problem here: I'm trying to issue a SELECT from Java, which should return me 2 rows; but I'm getting just one. When I issue the SELECT directly through SQL Developer it gives me the expected result. I've pastebin the code at http://paste.uni.cc/11821, where I've described in details the problem.
    What could it be? Any help would be appreciated.
    Thanks in advance!

    Marco,
    I would code it a bit differently, but I don't think that would solve your problem.
    I suggest setting up the JDBC logging. I'm not promising it will help, but I guess it
    can't hurt. Here is a white paper about it:
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/pdf/logging%20white%20paper.pdf
    You can also access that link from this Web page:
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/index.html
    Good Luck,
    Avi.

  • Retrieve all rows when condition is met

    hi all, consider the following data.
    WITH table1 AS
      SELECT 1 amt, 'dummy' txt, 'R' txt2 , '1X' pid FROM dual UNION ALL
      SELECT 123 amt, 'CATS' txt, 'P' txt2, '1X' pid FROM dual UNION all
      SELECT 145 amt, 'CAR' txt, 'PR' txt2, '1X' pid FROM dual UNION all
      SELECT 165 amt, 'NAME' txt, 'P' txt2, '1X' pid FROM dual UNION ALL
      SELECT 166 amt, 'NAME' txt, 'PK' txt2, '1X' pid FROM dual UNION all
      SELECT 100 amt, 'dummy' txt, 'R' txt2, '2X' pid FROM dual UNION ALL
      SELECT 13 amt, 'CATS2' txt, 'P' txt2, '2X' pid FROM dual UNION all
      SELECT 15 amt, 'CAR2' txt, 'PR' txt2, '2X' pid FROM dual UNION all
      SELECT 15 amt, 'NAME2' txt, 'P' txt2, '2X' pid FROM dual
    )i want to display the following output
    AMT  TXT    TXT2  PID
    ========================
    1    DUMMY  R     1X
    123  CATS   NO    1X
    145  CAR    NO    1X
    165  NAME   NO    1X
    166  NAME   PK    1X
    100 DUMMY   R     2X
    13  CATS2   P     2X
    15  CAR2    PR    2X
    15  NAME2   P     2Xthe logic behind this output is as follow:
    when i find a row where amount is 1 or -1 and txt=dummy, i want to take the pid value of that row and find all the rows with that pid where txt2 in (P,PR) and set the value of txt2 to NO.
    if txt2 is not in P OR PR, then set the column to current Value
    eg. the first row in data above has amt=1 and txt=dummy. i will take the pid of this row which is 1X and find all other rows with that pid value and txt2 in P,PR.
    in this case i found row with amt=123,145,165. i display those rows in output but txt2 change TO NO.
    if you notice , row with amt=166 was not change because txt2 = PK. in the second set of data, i display the data as is since i could not find a row with amt in(1,-1) and txt=dummy
    can someone help me write a query to display the above output?

    WITH table1 AS
      SELECT 1 amt, 'dummy' txt, 'R' txt2 , '1X' pid FROM dual UNION ALL
      SELECT 123 amt, 'CATS' txt, 'P' txt2, '1X' pid FROM dual UNION all
      SELECT 145 amt, 'CAR' txt, 'PR' txt2, '1X' pid FROM dual UNION all
      SELECT 165 amt, 'NAME' txt, 'P' txt2, '1X' pid FROM dual UNION ALL
      SELECT 166 amt, 'NAME' txt, 'PK' txt2, '1X' pid FROM dual UNION all
      SELECT 100 amt, 'dummy' txt, 'R' txt2, '2X' pid FROM dual UNION ALL
      SELECT 13 amt, 'CATS2' txt, 'P' txt2, '2X' pid FROM dual UNION all
      SELECT 15 amt, 'CAR2' txt, 'PR' txt2, '2X' pid FROM dual UNION all
      SELECT 15 amt, 'NAME2' txt, 'P' txt2, '2X' pid FROM dual
    SELECT  amt,
            txt,
            case
              when txt2 in ('P','PR')
                then case max(case when txt = 'dummy' and amt in (1,-1) then 1 end) over(partition by pid)
                       when 1
                         then 'NO'
                       else txt2
                     end
              else txt2
            end txt2,
            pid
      FROM  table1
           AMT TXT   TX PI
             1 dummy R  1X
           123 CATS  NO 1X
           145 CAR   NO 1X
           165 NAME  NO 1X
           166 NAME  PK 1X
           100 dummy R  2X
            13 CATS2 P  2X
            15 CAR2  PR 2X
            15 NAME2 P  2X
    9 rows selected.
    SQL>  SY.
    Edited by: Solomon Yakobson on May 4, 2011 5:35 PM

  • How to return all rows with duplicate values? Inner join not working!

    I have a 3 column table:
    location (pk), name, size
    I am attempting to select pairs of entries that have the same
    name and size but different values for location (it is the
    primary key.) My inner join does not seem to return what I need:
    select a.location, a.name, a.size, b.location, b.name, b.size
    from mytable a, mytable b where a.name = b.name and a.size =
    b.size and a.location <> b.location;

    One solution is like this:
    SELECT dname, loc, deptno
    FROM dept
    WHERE (dname, loc) IN
    (SELECT dname, loc
    FROM dept
    GROUP BY dname, loc
    HAVING COUNT (*) > 1
    ORDER BY dname, loc, deptno
    Regards
    Zlatko Sirotic

Maybe you are looking for

  • Recommended Video Cards for K8MM-V

    Hello ALL......Looking for any advice on choosing a AGP 8X that plays nicely with this MoBo. 

  • String procrssin

    Hi I want to process an input string char by char in an html form in a jsp page ,which methods can I use - jsp or javascript- ??

  • ERROR: package.opf is over 300KB

    Hi All, For one of the EPUB package I have; EpubPreflight Version 0.1.0 shows an "Error: package.opf is over 300KB". Whereas EPUB Best Practice 1.0.3 does not say that OPF file should or must be below 300KB uncompressed. The best practice guide only

  • Partition by query

    pls explain the below query concept with example. select customer_no,address1 from (select customer_no,address1,address2,city row_number() over(partition by customer_no order by customer_type desc,rowid desc)rk from xy where customer_no>100 and RK=1;

  • Save special charactors in DB.

    I have a textarea where i type in muños, it is saved as mua+os in the DB. What is the best practice to address this issue?