Friday, May 23, 2008

PeopleTools Page Design

PeopleTools Page Design
Secondary Page
  • No save button either.
  • Level 0 and stuff not required.
  • Page title at the top of the page.
  • Secondary page gets activated by either a push button or a hyperlink.
  • It takes the level key fields by the placement of the push button.






Important SQLs

Important SQLs





  • MicroSsoft SQL Server



Top few rows from a table, following will select
first 301 rows from a table.

SELECT
DISTINCT TOP 301 RUN_CNTL_ID,
LANGUAGE_CD
FROM
PS_PRCSRUNCNTL
WHERE
OPRID='PS'
AND

UPPER(RUN_CNTL_ID)
LIKE UPPER('%act')





  • Oracle



  • Escape characters used in data.

  • Select * From STUDENTS Where STU_NAME Like '%\_%' Escape '\'








    • Delete duplicate rows

      Delete From CLIENT_MASTER
      Where ROWID NOT IN
      ( Select min (ROWID)
      From CLIENT_MASTER
      Group By CLIENT_NO, NAME, BAL_DUE )



    • In Oracle/PLSQL, the NVL function lets you substitute a value when a null value is encountered.




    Select ID, FIRST_NAME, LAST_NAME, NVL(PHONE, 'Unknown Phone Number') As Phone From CUSTOMER