Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. call function from select join

call function from select join

Scheduled Pinned Locked Moved Database
databasequestionhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    montu3377
    wrote on last edited by
    #1

    Hi, This is quick question regarding calling function from join. In my project i am facing one situation where i need to use join between one temporary table and database table.From that join statement i need to call one function which taking 4 input parameters of temporary table and 4 input parameters of database table and returns one varchar2 value. Now here is question Let's say i creates one join statement like : "Select temp_table.firstname,temp_table.lastname,temp_table.ssn, db_table.firstname,db_table.lastname,db_table.ssn, getmatchtype(temp_table.firstname,.. ,..,..,..,db_table.firstname,..,..,..) from temporary_table ,database_table where ( /* some code in where clause which joins temporary table and database table. */ ) Now my question is that do my getmatchtype(temp_table.firstname,.. ,..,..,..,db_table.firstname,..,..,..) function returns same value for value based on input parameter or it returns different differnt value every time. Or can some one say me that how my function works in join query??? Actually , my requirement is that depends on where clause of join, function takes input parameters and return back to select query and everytime function should return new value for one by one record. Is this join works of not for that?? Can some body help me out for this?? Thankx. regards, montu3377

    P 1 Reply Last reply
    0
    • M montu3377

      Hi, This is quick question regarding calling function from join. In my project i am facing one situation where i need to use join between one temporary table and database table.From that join statement i need to call one function which taking 4 input parameters of temporary table and 4 input parameters of database table and returns one varchar2 value. Now here is question Let's say i creates one join statement like : "Select temp_table.firstname,temp_table.lastname,temp_table.ssn, db_table.firstname,db_table.lastname,db_table.ssn, getmatchtype(temp_table.firstname,.. ,..,..,..,db_table.firstname,..,..,..) from temporary_table ,database_table where ( /* some code in where clause which joins temporary table and database table. */ ) Now my question is that do my getmatchtype(temp_table.firstname,.. ,..,..,..,db_table.firstname,..,..,..) function returns same value for value based on input parameter or it returns different differnt value every time. Or can some one say me that how my function works in join query??? Actually , my requirement is that depends on where clause of join, function takes input parameters and return back to select query and everytime function should return new value for one by one record. Is this join works of not for that?? Can some body help me out for this?? Thankx. regards, montu3377

      P Offline
      P Offline
      Paddy Boyd
      wrote on last edited by
      #2

      My first idea would be to try it and see, but I think i see what you mean and your function should produce a different value based on the row, as long as the input parameters are different, of course...

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups