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]...
User Profile
Collapse
-
SQL Case statement
-
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... -
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.... -
exactly the answer I was looking for!
Thanks a lot! -
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!Leave a comment:
-
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,
No activity results to display
Show More
Leave a comment: