User Profile

Collapse

Profile Sidebar

Collapse
niz182
niz182
Last Activity: Feb 20 '08, 06:41 PM
Joined: Feb 12 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • niz182
    started a topic Select a random time

    Select a random time

    Hey does anyone know how to select a random time of the day in oracle?

    im using

    [code=oracle]

    SELECT TO_DATE(TRUNC(D BMS_RANDOM.VALU E(2454467,24544 67+364)),'J')

    [/code]

    FROM DUAL;

    to select a random date from 2008, but need to randomly select a time from the day too.
    See more | Go to post
    Last edited by amitpatel66; Feb 18 '08, 01:04 PM. Reason: code tags

  • niz182
    replied to Selecting the Same Coloumn Twice
    when i run that script i get the following error...

    WHERE x.custid != y.custid
    *

    ERROR at line 5:
    ORA-06553: PLS-306: wrong number or types of arguments in call to 'OGC_X'

    any idea what that means?...
    See more | Go to post

    Leave a comment:


  • niz182
    replied to Selecting the Same Coloumn Twice
    yeh, so it selects a caller from cust_details, then it selects a reciever from the same table....
    See more | Go to post

    Leave a comment:


  • niz182
    replied to Selecting the Same Coloumn Twice
    hey guys thanks for the help, the only problem im gettign with that code is that its selecting the same data for both the caller and the reciever

    CALLER_CUST_ID CALLER_FIRSTNAM E RECEIVER_CUST_I D RECEIVER_FIRSTN AME
    3 David 3 David

    where im looking to have 2 diferent values selected.
    See more | Go to post

    Leave a comment:


  • niz182
    started a topic Selecting the Same Coloumn Twice

    Selecting the Same Coloumn Twice

    Hey all...first time to the site so excuse me for bein some what of a noob to how to properly ask questions.

    Im looking to create a table which selects a cloumn from another table twice.

    so i have a table of customers
    Name Type
    CUST_ID NUMBER
    FIRSTNAME VARCHAR2(40)

    and a table of calls
    Name Type
    CALLER_CUST_ID...
    See more | Go to post
    Last edited by debasisdas; Feb 13 '08, 04:45 AM. Reason: added code=oracle tags
No activity results to display
Show More
Working...