Plz Urgent SQL problem

Hi everyone,
I am trying to reterive data from multiple tables it works fine with one where conditon but does'nt work when put more then one conditions.
"SELECT A1.Notes, A1.Location FROM
((Res A1 left outer join Skils A2 ON A1.StaffID = A2.StaffID)
Left Join Environment A3 ON A1.StaffID = A3.StaffID)
Left Join Solution A4 on A1.StaffID = A4.StaffID
where A2.Skill like 'TUPE' AND A2.Skill like 'M&A'"
Thankx in advance

NO ERROR but no results as well.
when i use
A2.Skill like 'TUPE' it shows result and when i use
A2.Skill like 'TUPE' AND A2.Skill like 'M&A'no results?
Res contain
staffid and other fields
skill table
staffid & skill
need to get records where staff have both the skills.
Thankx for your time
Rizwan
A2.Skill like 'TUPE' OR A2.Skill like 'M&A'it shows the staffid with both skills.
Thankx
Rizwan

Similar Messages

  • How can write our z program in standard print prog RVADOR01 plz urgent

    hi Guru
    What is requirment i developed on zsmart form. for this i have one Zprint program.
    I want assing this zprint proram in entry form . But it gives dump like conflict type.. what may be problem . I copied stand. RVADOR01 in this I write one perform. In this perform i write smart form code. Is it wrie way or not give me suggestions.Plz very urgent. I only pass vbeln in this .plz give me suggestions.
    Plz urgent
    Durgesh

    Hi ,
        I assume that you have  : 
        smartform   
        driver program  of type subroutone pool
        their is  one main subroutine in driver program entry_xyz or whatever which calls
        other subroutines .
        Now go to nace assign smartform name , to print program name and     subroutine name ex . entry_xyz .
    It it does not works ask your function consultunt to configure driver program , smartform and entry routine in nace .
    regards
    Regards

  • I changed everything and i signed out then i sign in again but still my. apple id is disabled plz solve this problem!!!!!????

    I changed everything and i signed out then i sign in again but
    still my. apple id is disabled plz solve this problem!!!!!????

    Hello jek28,
    Thanks for using Apple Support Communities.
    If you're getting the message that your Apple ID has been disabled for security reasons, then please follow the directions in the article below to resolve the issue.
    If your Apple ID has been locked - Apple Support
    Have a good one,
    Alex H.

  • URGENT BIG PROBLEM:during import track st. in queue simply does not disap

    I have problem when importing transport request on production(the transport domain controler is on development system) . The track status in queue simply does not disappear.
    I tried(based on what I have seen on an other thread) to delete the transport in import monitor and tp on OS level on productive and development system
    Then I deleted entries in TRBAT&TRJOB tables. The TPSTAT is empty.
    The problem persists.
    What would you suggest . The go live depends on this problem

    Hi,
    /usr/sap/trans/buffer might still contain entries, be careful do not modify anything here.
    Check the link
    http://help.sap.com/saphelp_47x200/helpdata/en/3d/ad5b5a4ebc11d182bf0000e829fbfe/frameset.htm
    Check the 'Cleaning up the transport directory' and 'Synchronizing the Buffers' links within the above link.
    Please do not use subjects like : URGENT BIG PROBLEM.. it is against the rules of this forum.
    Regards,
    Siddhesh

  • Urgent SQL question : how to flip vertical row values to horizontal ?

    Hello, Oracle people !
    I have an urgent SQL question : (simple for you)
    using SELECT statement, how to convert vertical row values to horizontal ?
    For example :
    (Given result-set)
    MANAGER COLUMN1 COLUMN2 COLUMN3
    K. Smith ......1
    K. Smith ...............1
    K. Smith ........................1
    (Needed result-set)
    MANAGER COLUMN1 COLUMN2 COLUMN3
    K. Smith ......1 .......1 .......1
    I know you can, just don't remeber how and can't find exactly answer I'm looking for. Probably using some analytic SQL function (CAST OVER, PARTITION BY, etc.)
    Please Help !!!
    Thanx !
    Steve.

    scott@ORA92> column vice_president format a30
    scott@ORA92> SELECT f.VICE_PRESIDENT, A.DAYS_5, B.DAYS_10, C.DAYS_20, D.DAYS_30, E.DAYS_40
      2  FROM   (select t2.*,
      3                row_number () over
      4                  (partition by vice_president
      5                   order by days_5, days_10, days_20, days_30, days_40) rn
      6            from   t2) f,
      7           (SELECT T2.*,
      8                row_number () over (partition by vice_president order by days_5) RN
      9            FROM   T2 WHERE DAYS_5 IS NOT NULL) A,
    10           (SELECT T2.*,
    11                row_number () over (partition by vice_president order by days_10) RN
    12            FROM   T2 WHERE DAYS_10 IS NOT NULL) B,
    13           (SELECT T2.*,
    14                row_number () over (partition by vice_president order by days_20) RN
    15            FROM   T2 WHERE DAYS_20 IS NOT NULL) C,
    16           (SELECT T2.*,
    17                row_number () over (partition by vice_president order by days_30) RN
    18            FROM   T2 WHERE DAYS_30 IS NOT NULL) D,
    19           (SELECT T2.*,
    20                row_number () over (partition by vice_president order by days_40) RN
    21            FROM   T2 WHERE DAYS_40 IS NOT NULL) E
    22  WHERE  f.VICE_PRESIDENT = A.VICE_PRESIDENT (+)
    23  AND    f.VICE_PRESIDENT = B.VICE_PRESIDENT (+)
    24  AND    f.VICE_PRESIDENT = C.VICE_PRESIDENT (+)
    25  AND    f.VICE_PRESIDENT = D.VICE_PRESIDENT (+)
    26  AND    f.VICE_PRESIDENT = E.VICE_PRESIDENT (+)
    27  AND    f.RN = A.RN (+)
    28  AND    f.RN = B.RN (+)
    29  AND    f.RN = C.RN (+)
    30  AND    f.RN = D.RN (+)
    31  AND    f.RN = E.RN (+)
    32  and    (a.days_5 is not null
    33            or b.days_10 is not null
    34            or c.days_20 is not null
    35            or d.days_30 is not null
    36            or e.days_40 is not null)
    37  /
    VICE_PRESIDENT                     DAYS_5    DAYS_10    DAYS_20    DAYS_30    DAYS_40
    Fedele Mark                                                          35473      35209
    Fedele Mark                                                          35479      35258
    Schultz Christine                              35700
    South John                                                                      35253
    Stack Kevin                                    35701      35604      35402      35115
    Stack Kevin                                    35705      35635      35415      35156
    Stack Kevin                                    35706      35642      35472      35295
    Stack Kevin                                    35707      35666      35477
    Stack Kevin                                               35667      35480
    Stack Kevin                                               35686
    Unknown                             35817      35698      35596      35363      35006
    Unknown                                        35702      35597      35365      35149
    Unknown                                        35724      35599      35370      35155
    Unknown                                                   35600      35413      35344
    Unknown                                                   35601      35451      35345
    Unknown                                                   35602      35467
    Unknown                                                   35603      35468
    Unknown                                                   35607      35475
    Unknown                                                   35643      35508
    Unknown                                                   35644
    Unknown                                                   35669
    Unknown                                                   35684
    Walmsley Brian                                 35725      35598
    23 rows selected.

  • Hello.can anyone help me plz i have problem with my macbook air i can't find image capture.

    hello.can anyone help me plz i have problem with my macbook air i can't find image capture. there is nothing in progrem can i reinstall that progrem and how?thanks

    If you can't find it in your applications folder you will need to reinstall your Mac OS X. Take a look at this link, https://discussions.apple.com/message/16478873#16478873

  • Using unicode in sms sending :)plz. urgent reply is needed.

    when i want to send a sms of string of unicode. is it necessary to encode it in UTF8 or UTF16 ???
    when i encode it then the length of the string comes larger.
    can i send sms as a string of unicode without changing its length????
    like this:
    String str="\u270F";
    // now str's length is 1
    str = new String(str.getBytes("UTF16"));
    //now str's length is 4!!!!!!!!
    plz. urgent reply is needed.
    best regards
    tanvir

    By default SMS has it's own text encoding and therefore you cannot use UTF8 nor UTF16. There is a special UCS2 encoding, alowing for 70 unicode characters to be send (per sms). See: http://www.dreamfabric.com/sms/

  • Two SQL problems

    First problem...
    SQL root will not access all databases...
    If I try to access al databases using SQL Administrator the connection is refused even if I use root.
    all databases are accessable va individual username and password..
    Tried changing root password with GUI but makes no difference...
    Second SQL problem...
    10.4.11 server failed all raid volumes so corrupted no rescue was possible on any volume reinstall failed as well...
    Have rebuilt the server using 10.5.6 I will have to manually import the SQL databases from the old server... what do I do ??? I cannot boot the old server so cannot do an SQL export or anything...
    Thanks...

    Hi Jun,
    Can i contribute a little for ur 2nd problem.
    This error is coz, If u are using a filter against a File "data store" u can't test it, only against RDBMS query will be tested at data store level.
    Well, for using that filter and make sure its working, drag and drop the source file in the interface (u can get the filter) and make it to execute on STAGING.
    Thanks,
    Guru

  • Small SQL problem

    Hello,
    I have a small SQL problem...
    I am designing an online bank using servlets for a university project and it allows customers to view their statements. They select which of their account numbers they want to view the statement for and the start and end date of the statement.
    The problem lies with the dates. Here is the SQL:
    SELECT date, details, amount, balance
    FROM HISTORY
    WHERE bankaccnumber=13494925 And date>=1/1/01 And date<=31/1/01;
    All of the books I have looked at show dates in '1/1/01' format but whenever I try it this way I get a 'Data type mismatch in criteria expression' error (the 'date' field in the Database IS a Date type).
    Although, whenever I run the query in Access and prompt the user to enter the start and end date, it works fine.
    I have spoken to a few people and no-one seems to know why it is not working.
    Any ideas???
    Thanks

    If your database is MS Access and you don't expect to switch to something else, then write this:
    SELECT date, details, amount, balance
    FROM HISTORY
    WHERE bankaccnumber=13494925 And [date]>=#1/1/01# And [date]<=#1/31/01#
    Note that you MUST format your dates as MM/DD/YY and not as DD/MM/YY, that's an Access rule, and that you will probably have to "quote" your column name "date", which I think is a reserved word in SQL and hence a bad choice for column name.
    Personally I always use PreparedStatements. That way my SQL would look like this:
    SELECT date, details, amount, balance
    FROM HISTORY
    WHERE bankaccnumber=13494925 And date>=? And date<=?
    and I would use the setDate() method to fill in the parameters. Since this method uses a Date as a parameter, I don't need to fight with date formats, the JDBC driver handles that for me.

  • Urgent Sql Query Problem - -Very Urgent

    Hi Guys,
    I need a urgent solution for a problem.I am
    using the following query
    select ename from emp where deptno =10
    Now I will declare a bind variable and if user passes 'A'
    then the query will run as it is and if he passes B
    then it should run the above query with this additional clause -> birthdate - hiredate >15.
    Please can any one help its very urgent

    Assuming that you have a birthdate column in your emp table, the following will do what you are asking for:
    VARIABLE bind_var VARCHAR2(1)
    EXECUTE :bind_var := '&bind_variable'
    SELECT ename FROM
    (SELECT 'A' AS selection, ename FROM emp WHERE deptno = 10
    UNION ALL
    SELECT 'B' AS selection, ename FROM emp WHERE deptno = 10 AND birthdate - hiredate > 15)
    WHERE selection = :bind_var
    However, the clause "birthdate - hiredate > 15" will only retrieve rows for employees who were born more than 15 days after they were hired. I doubt that this is what you really want, since this is impossible.

  • Result Set problem!!!Plz urgent

    Hi,
    I am using jsp page with database connection.In jsp page i have two button called move next and move previous.
    In database 2 records are there.If i open the jsp page first record will be displayed.If i click next record it showing 2nd record.If i click previous record it showing 1st record.Once again if i click next record it is showing that record not found...........What may be the problem????.
    Note:For each time button click i will pass the result set object in session variable.Whether it is a correct one..
    Plzz help me ya...........

    this is for move next:::
    ResultSet result=null;
    Connection connection=null;
    String candyid="";
    result = (ResultSet)session.getAttribute("resget");
    result.next();
    if(!result.next())
    %>
    <Script>
    alert("Record Not Found");
    </Script>
    <%
    result.previous();
    candyid=result.getString(1);
    session.setAttribute("resget",result);
    %>
    <input type=hidden name="hide" value="yes">
    <input type=hidden name="nextid" value=<%= candyid %>>
    <Script>
    document.AddCandetails2.action="modifyCandidate1.jsp";
    document.AddCandetails2.submit();
    </Script>
    <%
    else
    candyid=result.getString(1);
    System.out.println("candi next id"+candyid);
    session.setAttribute("prevresget1",result);
    System.out.println("resultset for set attar in next"+result);
    %>
    <input type=hidden name="hide" value="yes">
    <input type=hidden name="nextid" value=<%= candyid %>>
    <Script>
    document.AddCandetails2.action="modifyCandidate1.jsp";
    document.AddCandetails2.submit();
    </Script>
    <%
    this is for move previous:::
    ResultSet result=null;
    Connection connection=null;
    String candyid="";
    if(session.getAttribute("prevresget1")==null)
    result = (ResultSet)session.getAttribute("resget");
    else
    result = (ResultSet)session.getAttribute("prevresget1");
    if(!result.previous())
    %>
    <Script>
    alert("Record Not Found");
    </Script>
    <%
    result.next();
    candyid=result.getString(1);
    session.setAttribute("resget",result);
    %>
    <input type=hidden name="hide" value="yes">
    <input type=hidden name="nextid" value=<%= candyid %>>
    <Script>
    document.AddCandetails2.action="modifyCandidate1.jsp";
    document.AddCandetails2.submit();
    </Script>
    <%
    else
    candyid=result.getString(1);
    session.setAttribute("prevresget1",result);
    %>
    <input type=hidden name="hide" value="yes">
    <input type=hidden name="nextid" value=<%= candyid %>>
    <Script>
    document.AddCandetails2.action="modifyCandidate1.jsp";
    document.AddCandetails2.submit();
    </Script>
    <%
    this is the code............... can u give me the solution

  • Collaboration Rooms problem/info - plz urgent

    dear friends,
    I am working on EP developement and now i am working on Collaboration rooms.
    I want some info as for below:
    I am using EP 6.0 with SP2
    1. Where exactly the user's information will be stored in EP server?
    2. I understand the purpose of SAP R/3 System in UM Configuration, but what is the purpose of LDAP Server?
    3. Is LDAP Server configuation is required to work on Collaboration Rooms?
    4. Is it possible to work with Collaboration Rooms without LDAP Server/configuration?
    Please do reply anybody with positive answers
    urgent reply appricated
    thanks in advance
    Kantha
    cheers
    Kantha

    Hi Kantha,
    > Where exactly the user's information
    > will be stored in EP server?
    I don't know exactly what you mean. If no specific user backend store is defined, the users created are stored within the database for the portal server.
    > I understand the purpose of SAP R/3 System in UM
    > Configuration, but what is the purpose of LDAP Server?
    There is no need to have a SAP R/3 in the background for UM, you could also just have a LDAP server where the users of the company are stored in. This LDAP you can use for UserManagement.
    > Is LDAP Server configuation is required
    > to work on Collaboration Rooms?
    A simple No.
    > Is it possible to work with Collaboration Rooms
    > without LDAP Server/configuration?
    From the last answer a simple Yes follows.
    CollabRooms do not need any specific User Backend Store; the UserManagement works as in the rest of the portal on the UME, which again is bound to an LDAP - or not.
    Hope it helps
    Detlev

  • Sql query  - urgent major problem

    If I have the following sql query and I would like to perform a select on this how would I do it.
    select StudentNo, CourseCode, Year, ExamMark from **
    where CourseCode='ELE304' AND Year=1999;
    **select COURSESTUDENT.StudentNo, COURSESTUDENT.CourseCode, COURSESTUDENT.Year, MARKS.ExamMark, MARKS.EntryNo AS RESULT FROM
    COURSESTUDENT LEFT JOIN MARKS ON COURSESTUDENT.StudentNo=MARKS.StudentNo AND COURSESTUDENT.CourseCode='ELE304' AND
    MARKS.CourseCode='ELE304' AND COURSESTUDENT.Year=1999 AND MARKS.Year=1999;

    Ive been trying to get this sql query correct the whole day this is a joke .......
    Someone must know what the prob is...
    thanks
    tzaf

  • SQL problem URGENT help PLEASE

    SQL> select period_number, sum(gross_amt)
    2 from mpy_payslip_headers
    3 where payroll_year = 2001
    4 and business_group_id = 'E4'
    5 and employee_number = '366'
    6 and period_number between 12 and 13
    7 group_by period_number;
    group_by period_number
    ERROR at line 7:
    ORA-00933: SQL command not properly ended
    WHY THIS ERROR? As far as I know it is possible.
    Thanks in advance,
    Marija

    Sometimes, the most obvious things are the harder to see...
    The correct is 'order by', not 'order_by'!

  • Date function(SQL) problem.........URGENT

    Hi have created a table named emp2
    1* create table emp2 as select empno,hiredate,hiredate hiredate_1 from emp
    SQL> /
    Table created.
    1* update emp2 set hiredate_1=null
    where empno=7788
    SQL> /
    1 row updated.
    SQL> select
    2 empno,
    3 to_char(hiredate,'dd/mm/yyyy hh24:mi')hiredate,
    4 to_char(hiredate_1,'dd/mm/yyyy hh24:mi') hiredate_1
    5 from emp2;
    EMPNO HIREDATE HIREDATE_1
    7788 19/04/1987 00:00
    7839 17/11/1981 00:00 17/11/1981 00:00
    7844 08/09/1981 00:00 08/09/1981 00:00
    7876 23/05/1987 00:00 23/05/1987 00:00
    7900 03/12/1981 00:00 03/12/1981 00:00
    7902 03/12/1981 00:00 03/12/1981 00:00
    7934 23/01/1982 00:00 23/01/1982 00:00
    7 rows selected.
    Here hiredate_1 is null only empno 7788.
    but i need null value will be (hiredate 12:00)
    like
    7788 19/04/1987 00:00 19/04/1987 12:00
    IN THIS SQL
    SQL> select
    2 empno,
    3 to_char(hiredate,'dd/mm/yyyy hh24:mi')hiredate,
    4 to_char(hiredate_1,'dd/mm/yyyy hh24:mi') hiredate_1
    5 from emp2;
    advance thanks
    Mostafiz

    Dear biswabijay
    thanks
    your where condition is empno = 7698. my null
    value (hiredate_1)
    is for empno=7788 i need value hiredate_1
    1 should be empno=7788's
    hiredate and time 12:00
    Your code fails..
    SQL> select 2 empno, 3
    to_char(hiredate,'dd/mm/yyyy hh24:mi')hiredate, 4
    4
    to_char(nvl(hiredate_1,to_date('01/01/1987','mm/dd/yy
    yy')),'dd/mm/yyyy hh24:mi') hiredate_1 5 from emp1
    where empno = 7698; EMPNO HIREDATE
    HIREDATE_1---------- ----------------
    -------- ---------------- 7698 01/05/1981 00:00
    01/01/1987 00:00
    thanks
    MostafizDear Sir,
    I have answered to the other person USER458... that his/her code fails.. the code given below was not my code, just look at the post one step above that "code fails" post you will get your desired output.
    And also I tested the SQL script with empno = 7698, that does not mean that you have to use the same empno, use your empno i.e. 7788 and you should get your desired result. The empno I used. just another case study and to check the stateent is working fine.

Maybe you are looking for

  • Short Dump while executing ALV Grid.

    Hi All, I m getting a short dump while trying to execute an ALV. The dump exception is of type CX_SY_DYN_CALL_ILLEGAL_TYPE class. The message displayed is :  " Call to form 'GI_FIELDCAT' is incorrect .The actual parameter in PERFORM is different data

  • PowerBook G4 won't boot past blue screen

    I've read a couple of posts with similar problems. The jist is, I did a security update/restart earlier and now my laptop won't boot past the blue screen after the white screen with the gray apple. I think I'm on Mac OS 10.4.11 but I had it on auto-u

  • Stripping the docs

    Stripping the docs in order to have a light system seems to me like going on a morning run and expecting to run faster by omitting to take a handkerchief in your back pocket. Sneeze, and you're the loneliest person in the world. Just to say that I ha

  • Multiple Arrays for limiting Record Pulling in Main Report

    I have created an array in a subreport that pulls all applicable order #'s for a specific period.  The subreport has been placed in the report header of the main report.  In the main report, I have a formula that looks at the order # in the database.

  • Submit Button In PreTest Slide

    Hello, I created a hotspot pretest slide and I want to give it 2 attempts, after the second attempt the submit button no longer works and the "correct"/"incorrect" pop-ups no longer appear. The next button works but this doesn't allow the user to see