- Forum
- T24 Technical Discussions
- T24 Development & Customization
- SELECT issue in TAFJ with multiple conditions
×
Discuss on Template programming, jBASE programming, Enquiries, No-File enquiry, Enquiry routines, Version, Version routines, Menus, Abbriviations, Creating local reference fields, Fast path enquiries, Creating charts and graphs, Generating Reports, Deal slips, Straight through processing, Multi Company and Multi Book setup, Tabbed screens, Composite Screens, T24 API, etc...
SELECT issue in TAFJ with multiple conditions
- baskarjay
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 48
- Thank you received: 0
6 years 1 month ago #21633
by baskarjay
SELECT issue in TAFJ with multiple conditions was created by baskarjay
Hi All
This select works in TAFC but not works in TAFJ..
SELECT FBNK.COLLATERAL.TYPE WITH (@ID GE 100 AND @ID LE 399) OR (@ID GE 700 AND @ID LE 849) OR (@ID
GE 900 AND @ID LE 999)
But if we used one condition in select works in TAFJ itself....
SELECT FBNK.COLLATERAL.TYPE WITH (@ID GE 100 AND @ID LE 399)
when we using multiple conditions, its not working... If anyone had solution for this plz let me know
This select works in TAFC but not works in TAFJ..
SELECT FBNK.COLLATERAL.TYPE WITH (@ID GE 100 AND @ID LE 399) OR (@ID GE 700 AND @ID LE 849) OR (@ID
GE 900 AND @ID LE 999)
But if we used one condition in select works in TAFJ itself....
SELECT FBNK.COLLATERAL.TYPE WITH (@ID GE 100 AND @ID LE 399)
when we using multiple conditions, its not working... If anyone had solution for this plz let me know
Please Log in or Create an account to join the conversation.
- baskarjay
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 48
- Thank you received: 0
6 years 1 month ago #21634
by baskarjay
Replied by baskarjay on topic SELECT issue in TAFJ with multiple conditions
when we using same field in multiple conditions then select not works
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G09-G13|TAFC:R05-R23|TAFJ:R19,R23:test
Less
More
- Posts: 1116
- Thank you received: 150
6 years 1 month ago #21635
by VK
Cheers
VK
Replied by VK on topic SELECT issue in TAFJ with multiple conditions
Hi
Absolutely valid syntax, works in TAFC....
Maybe you try additional parentheses like:
Absolutely valid syntax, works in TAFC....
Maybe you try additional parentheses like:
SELECT FBNK.COLLATERAL.TYPE WITH ((@ID GE 100 AND @ID LE 399) OR (@ID GE 700 AND @ID LE 849) OR (@ID GE 900 AND @ID LE 999))
Cheers
VK
The following user(s) said Thank You: baskarjay
Please Log in or Create an account to join the conversation.
- baskarjay
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 48
- Thank you received: 0
6 years 1 month ago #21636
by baskarjay
Replied by baskarjay on topic SELECT issue in TAFJ with multiple conditions
Hi VK
Thanks for your inputs :)
we tried that too but not worked :(
Thanks for your inputs :)
we tried that too but not worked :(
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G09-G13|TAFC:R05-R23|TAFJ:R19,R23:test
Less
More
- Posts: 1116
- Thank you received: 150
6 years 1 month ago #21637
by VK
Cheers
VK
Replied by VK on topic SELECT issue in TAFJ with multiple conditions
Hi
you definitely have to address a bug report to Temenos.
In the meantime, you can produce a workaround - select 3 times (one criterion on each select) and then concatenate 3 resulting lists...
you definitely have to address a bug report to Temenos.
In the meantime, you can produce a workaround - select 3 times (one criterion on each select) and then concatenate 3 resulting lists...
Cheers
VK
Please Log in or Create an account to join the conversation.
- Valleyman1
- Offline
- Elite Member
Less
More
- Posts: 292
- Thank you received: 24
6 years 1 month ago #21646
by Valleyman1
Replied by Valleyman1 on topic SELECT issue in TAFJ with multiple conditions
This is the TAFJ format:
SELECT * FROM FBNK_COLLATERAL_TYPE WHERE RECID >= 100 AND RECID <= 399
SELECT * FROM FBNK_COLLATERAL_TYPE WHERE RECID >= 100 AND RECID <= 399
The following user(s) said Thank You: baskarjay
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G09-G13|TAFC:R05-R23|TAFJ:R19,R23:test
Less
More
- Posts: 1116
- Thank you received: 150
6 years 1 month ago #21648
by VK
Cheers
VK
Replied by VK on topic SELECT issue in TAFJ with multiple conditions
Hi
"GE" and ">=" are the same thing. Also, "LE" and "<=" are the same. So your SELECT is the same as one that worked.
What about "OR"? The topic starter claimed that OR didn't work.
"GE" and ">=" are the same thing. Also, "LE" and "<=" are the same. So your SELECT is the same as one that worked.
What about "OR"? The topic starter claimed that OR didn't work.
Cheers
VK
The following user(s) said Thank You: baskarjay
Please Log in or Create an account to join the conversation.
- Valleyman1
- Offline
- Elite Member
Less
More
- Posts: 292
- Thank you received: 24
6 years 1 month ago - 6 years 1 month ago #21650
by Valleyman1
Replied by Valleyman1 on topic SELECT issue in TAFJ with multiple conditions
"GE", "LE" etc not defined in SQL syntax\
"OR" is fine
SELECT * FROM FBNK_COLLATERAL_TYPE WHERE RECID = 100 OR RECID = 399
"OR" is fine
SELECT * FROM FBNK_COLLATERAL_TYPE WHERE RECID = 100 OR RECID = 399
Last edit: 6 years 1 month ago by Valleyman1. Reason: sssss
The following user(s) said Thank You: baskarjay
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G09-G13|TAFC:R05-R23|TAFJ:R19,R23:test
Less
More
- Posts: 1116
- Thank you received: 150
6 years 1 month ago #21652
by VK
Cheers
VK
Replied by VK on topic SELECT issue in TAFJ with multiple conditions
Hi
Your example contains one OR only and not (... AND ..) OR (.. AND ..)
Again, quoting the topic starter - the following SELECT (containing both GE and LE) is claimed to be OK:
I don't have TAFJ (and hope I never will :) - maybe you can retest all examples from the initial post under TAFJ?
Your example contains one OR only and not (... AND ..) OR (.. AND ..)
Again, quoting the topic starter - the following SELECT (containing both GE and LE) is claimed to be OK:
SELECT FBNK.COLLATERAL.TYPE WITH (@ID GE 100 AND @ID LE 399)
I don't have TAFJ (and hope I never will :) - maybe you can retest all examples from the initial post under TAFJ?
Cheers
VK
The following user(s) said Thank You: baskarjay
Please Log in or Create an account to join the conversation.
- Valleyman1
- Offline
- Elite Member
Less
More
- Posts: 292
- Thank you received: 24
6 years 1 month ago - 6 years 1 month ago #21654
by Valleyman1
Replied by Valleyman1 on topic SELECT issue in TAFJ with multiple conditions
The select syntax will work on TAFC, not on TAFJ.
The table names on TAFC is "FBNK.COLLATERAL.TYPE" and on TAFJ is "FBNK_COLLATERAL_TYPE". if one uses SQL the "." needs to be replaced by "_".
If one is using DBTools JQL option can give you something similar to TAFC.
The table names on TAFC is "FBNK.COLLATERAL.TYPE" and on TAFJ is "FBNK_COLLATERAL_TYPE". if one uses SQL the "." needs to be replaced by "_".
If one is using DBTools JQL option can give you something similar to TAFC.
Last edit: 6 years 1 month ago by Valleyman1.
The following user(s) said Thank You: baskarjay
Please Log in or Create an account to join the conversation.
- Forum
- T24 Technical Discussions
- T24 Development & Customization
- SELECT issue in TAFJ with multiple conditions
Time to create page: 0.220 seconds