SQL Statements compatibility with jBase

  • Sairam
  • Topic Author
  • Offline
  • New Member
  • New Member
More
18 years 5 months ago #1782 by Sairam
Hi All,
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.

More
18 years 4 months ago #1783 by malai
Replied by malai on topic SQL Statements compatibility with jBase
Hi sairam....

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.

More
12 years 11 months ago - 12 years 11 months ago #10047 by samkat
Replied by samkat on topic Re:
Can you convert these commands in JQL?

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)
Last edit: 12 years 11 months ago by samkat.

Please Log in or Create an account to join the conversation.

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
12 years 11 months ago #10050 by jpb
Replied by jpb on topic Re:
1) LIST <tablename> WITH <fieldname>='Value'
2) LIST VOC LIKE F... WITH F1 LIKE F... ;-)
3) EDELETE <tablename> WITH <fieldname>='Value'
4) not possible, use JED
5) see 3)
The following user(s) said Thank You: durai611

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #10073 by samkat
Replied by samkat on topic Re:
Hi jpb,
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
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
12 years 11 months ago #10076 by jpb
Replied by jpb on topic Re:
A database in jBase is the hole evironment/account you are logged in. This has it's own VOC. When you do "LIST VOC LIKE F... WITH F1 LIKE F..." (you can add " BY @ID" to sort) you'll get a listing of all files that are known to the system.
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.

More
12 years 11 months ago #10115 by durai611
Replied by durai611 on topic Re:
Dear jpb,

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
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
12 years 11 months ago #10117 by jpb
Replied by jpb on topic Re:
"SAMPLE 100" is the same as "TOP 100" or "LIMIT 100" in SQL

ROWNUM is too much Oracle ;)

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #10141 by samkat
Replied by samkat on topic Re: SQL Statements compatibility with jBase
Hi all,
What is ORDER BY and GROUP BY equivalent command in JQL?

Please Log in or Create an account to join the conversation.

  • jpb
  • jpb's Avatar
  • Offline
  • Moderator
  • Moderator
  • retired . . . ¯\_(ツ)_/¯
More
12 years 11 months ago #10142 by jpb
Have you ever hab access to any manual?

Order by is just BY (or BY-DSND)
Group by is BREAK-ON

Please Log in or Create an account to join the conversation.

More
1 week 1 day ago #24714 by tekeste
Replied by tekeste on topic Re:

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
  • VK's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Globus:G9-G13|TAFC:R05-R23|TAFJ:R19,R23,R24:test
More
1 week 23 hours ago #24715 by VK
Replied by VK on topic Re:
Hi
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.

Time to create page: 0.101 seconds