User Profile

Collapse

Profile Sidebar

Collapse
icebox27
icebox27
Last Activity: Nov 16 '07, 07:55 AM
Joined: Jul 26 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • icebox27
    started a topic SQL Case statement

    SQL Case statement

    Good day!

    Please guide me to complete my script

    I currently have the following scripts.

    [code=oracle]
    select * from tbl_1 <conditions here>
    AND (CASE WHEN (SELECT FIELD1 FROM TABLEX WHERE FIELD1 = 'XXXX') IS NOT NULL THEN
    tbl_1.FIELD2 ELSE ' ' END) = (CASE WHEN (SELECT FIELD1 FROM TABLEX WHERE FIELD1 = 'XXXX') IS NOT NULL
    THEN 'XXXX'ELSE ' ' END)
    [/code]...
    See more | Go to post
    Last edited by amitpatel66; Nov 16 '07, 07:39 AM. Reason: corrected code tags

  • icebox27
    started a topic Left outer join problem

    Left outer join problem

    Need urgent help!

    I have 3 tables that are in Left Join

    ex:
    select * from tbl_a
    left outer join tbl_b
    on tbl_b.f1 = tbl_a.f1 and tbl_b.f2 = tbl_a.f2
    left outer join tbl_c
    on tbl_c.f1 = tbl_a.f1 and tbl_c.f2 = tbl_a.f2 and tbl_c.f3 = tbl_a.f3 and tbl_c.f4 = tbl_a.f4

    the problem is, i will only perform the left join for tbl_c.f3 and f4 to tbl_a.f3 and f4 respectively...
    See more | Go to post

  • icebox27
    started a topic Table relationship

    Table relationship

    Good Day everyone!

    I need urgent help on this.

    I have to tables with both having 8 primary keys. Both having more than 25,000 records above. I need a script that will determine which record in one of those two tables doesnt exist in the other table(meaning has no related data using the 8 primary keys). The established relationship using the 8 primary keys is always 1:1.

    Need your assistance, everyone....
    See more | Go to post

  • icebox27
    replied to Records does not match query
    exactly the answer I was looking for!

    Thanks a lot!
    See more | Go to post

    Leave a comment:


  • icebox27
    replied to Records does not match query
    Considering the following data.

    Table A

    apple
    banana
    cat
    peach

    Table B
    apple
    banana
    peach
    dog

    I wanted to display the record "cat", since it cannot be found in Table B.

    Thanks!
    See more | Go to post

    Leave a comment:


  • icebox27
    started a topic Records does not match query

    Records does not match query

    Good day everyone!

    Need help about this one.

    I need to select the records in table A that do not exist in table B.

    Feel free to clarify things if my question is vague.

    Thanks in advance!

    Regards,
    See more | Go to post
No activity results to display
Show More
Working...