SQL Statements compatibility with jBase
- Sairam
- Topic Author
- Offline
- New Member
- Posts: 10
- Thank you received: 0
Can any one give me a document which has got the corresponding jQL statements for the SQL statements supported by Universe. Thanks in advance.
_________________
With Smile,
Sairam.B
Please Log in or Create an account to join the conversation.
- malai
- Offline
- Platinum Member
- Posts: 508
- Thank you received: 11
I think you are doing big R&D.....
If you post any UNIVERSE SQL statements here, then we can find its equallant jQL.
_________________
M A L A I
Please Log in or Create an account to join the conversation.
- samkat
- Offline
- New Member
- Posts: 6
- Thank you received: 0
Here are some of the SQL commands
1) Select * from <tablename> where <fieldname>='Value'(displays the records from the specified table that matches the condition)
2) Select * from sys.objects where type='u'(which shows all the table name list in the specified database)
3) Delete from <tablename> where <fieldname>='Value'(delete the records from the specified table that matches the condition)
4) Insert into <tablename> [<fieldname1,fieldname2>]Values[value1,value2](Insert records into the specified field of a table)
5) Delete from <tablename> where <fieldname>='Value'(deletes the records from the specified table that matches the condition)
Please Log in or Create an account to join the conversation.
- jpb
- Offline
- Moderator
- retired . . . ¯\_(ツ)_/¯
- Posts: 2859
- Thank you received: 649
2) LIST VOC LIKE F... WITH F1 LIKE F... ;-)
3) EDELETE <tablename> WITH <fieldname>='Value'
4) not possible, use JED
5) see 3)
Please Log in or Create an account to join the conversation.
- samkat
- Offline
- New Member
- Posts: 6
- Thank you received: 0
Can you expain in more detail? What is jql command to display all the table name(or file name) resides in particular database in jBase?
Please Log in or Create an account to join the conversation.
- jpb
- Offline
- Moderator
- retired . . . ¯\_(ツ)_/¯
- Posts: 2859
- Thank you received: 649
At our site there are more than 22500 entries. When you exclude history and unauthorised the list is a bit smaller and more readable (LIST VOC LIKE F... AND UNLIKE ...$... WITH F1 LIKE F... BY @ID)
This includes also temporary files, workfiles, concats etc.
Another approach is to list F.STANDARD.SELECTION or F.FILE.CONTROL . . .
Please Log in or Create an account to join the conversation.
- durai611
- Offline
- Elite Member
- Posts: 300
- Thank you received: 51
For this SQL query what is the equivalent JQL.
SELECT * FROM FBNK_ACCOUNT WHERE ROWNUM <= 100 ;
If im not mistaken, can we use the below
SELECT FBNK.ACCOUNT SAMPLE 100
Thanks & Regards,
Durairaj. N
Please Log in or Create an account to join the conversation.
- jpb
- Offline
- Moderator
- retired . . . ¯\_(ツ)_/¯
- Posts: 2859
- Thank you received: 649
ROWNUM is too much Oracle ;)
Please Log in or Create an account to join the conversation.
- samkat
- Offline
- New Member
- Posts: 6
- Thank you received: 0
What is ORDER BY and GROUP BY equivalent command in JQL?
Please Log in or Create an account to join the conversation.
- jpb
- Offline
- Moderator
- retired . . . ¯\_(ツ)_/¯
- Posts: 2859
- Thank you received: 649
Order by is just BY (or BY-DSND)
Group by is BREAK-ON
Please Log in or Create an account to join the conversation.
- tekeste
- Offline
- New Member
- Posts: 1
- Thank you received: 0
Dear Experts,
Can anyone provide the JQL command used to count T24 records with criteria involving multiple values and sub-values within DBTools?
Thank you.
Please Log in or Create an account to join the conversation.
- VK
- Offline
- Platinum Member
- Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
- Posts: 1187
- Thank you received: 157
if you use regular "EQ" etc it will work transparently, e.g. SELECT FBNK.ACCOUNT WITH OTHER.OFFICER EQ '10' will find records with:
- OTHER.OFICER = 1, 10, 100
- OTHER.OFFICER = 10, 50, 60
"NE", "LIKE" is another story...
Cheers
VK
Please Log in or Create an account to join the conversation.