Hello,
Can someone help me how I can get top n (say 10 or 20) rows from SQL table using SELECT query without using SET LIST_COUNT?
Hello,
Can someone help me how I can get top n (say 10 or 20) rows from SQL table using
SELECT query without using SET LIST_COUNT?
On Tuesday, May 4, 2021 at 12:44:12 p.m. UTC-4, Prashant wrote:
Hello,
Can someone help me how I can get top n (say 10 or 20) rows from SQL table using SELECT query without using SET LIST_COUNT?
SELECT [FIRST 10] * FROM ...
On Tue, 4 May 2021 09:54:47 -0700 (PDT), Randall <> wrote:
On Tuesday, May 4, 2021 at 12:44:12 p.m. UTC-4, Prashant wrote:
Hello,
Can someone help me how I can get top n (say 10 or 20) rows from SQL table using SELECT query without using SET LIST_COUNT?
SELECT [FIRST 10] * FROM ...I believe that works for SQL/MX, but not for SQL/MP. To use it against MP tables you'll need to use MPALIAS and the MX executor.
On Tue, 4 May 2021 09:54:47 -0700 (PDT), Randall <rsbecker@nexbridge.com> wrote:
On Tuesday, May 4, 2021 at 12:44:12 p.m. UTC-4, Prashant wrote:ing SELECT query without using SET LIST_COUNT?
Hello,
Can someone help me how I can get top n (say 10 or 20) rows from SQL table us
SELECT [FIRST 10] * FROM ...
I believe that works for SQL/MX, but not for SQL/MP. To use it against MP table
s you'll need to use MPALIAS and the MX executor.
select [first 10] * from $data01.sql.table;
In article <rf739ghe83v9iu9vojrgb179un0peb7nc0@4ax.com>, no_spam_bhonaker__@x_i_d.com
says...
On Tue, 4 May 2021 09:54:47 -0700 (PDT), Randall <rsbecker@nexbridge.com> wrote:
On Tuesday, May 4, 2021 at 12:44:12 p.m. UTC-4, Prashant wrote:ing SELECT query without using SET LIST_COUNT?
Hello,
Can someone help me how I can get top n (say 10 or 20) rows from SQL table us
SELECT [FIRST 10] * FROM ...
I believe that works for SQL/MX, but not for SQL/MP. To use it against MP table
s you'll need to use MPALIAS and the MX executor.
mxci can directly access SQL/MP tables
Hewlett Packard Enterprise NonStop(TM) SQL/MX Conversational Interface 3.3 >(c) Copyright 2003-2015 Hewlett Packard Enterprise Development LP.
select [first 10] * from $data01.sql.table;
PK_TEXT PK_TS COMMAND C1
-------- ---------- ---------------- -----------------
0 0 pathcom status pathway
On Tue, 4 May 2021 20:51:21 -0000 (UTC), inv...@nowhere.com (JShepherd) wrote:
In article <rf739ghe83v9iu9vo...@4ax.com>, no_spam_bhonaker__@x_i_d.com >says...
On Tue, 4 May 2021 09:54:47 -0700 (PDT), Randall <rsbe...@nexbridge.com> wrote:
On Tuesday, May 4, 2021 at 12:44:12 p.m. UTC-4, Prashant wrote:ing SELECT query without using SET LIST_COUNT?
Hello,
Can someone help me how I can get top n (say 10 or 20) rows from SQL table us
SELECT [FIRST 10] * FROM ...
I believe that works for SQL/MX, but not for SQL/MP. To use it against MP table
s you'll need to use MPALIAS and the MX executor.
mxci can directly access SQL/MP tables
Hewlett Packard Enterprise NonStop(TM) SQL/MX Conversational Interface 3.3 >(c) Copyright 2003-2015 Hewlett Packard Enterprise Development LP.
select [first 10] * from $data01.sql.table;
PK_TEXT PK_TS COMMAND C1You're correct. I'd forgotten, as our standards (and all customer's standards) have always requierd either an ANSI name or DEFINE name.
-------- ---------- ---------------- -----------------
0 0 pathcom status pathway
MPALIAS is not required.
On Wednesday, 5 May 2021 at 02:47:05 UTC+5:30, Bill Honaker wrote:
On Tue, 4 May 2021 20:51:21 -0000 (UTC), inv...@nowhere.com (JShepherd) wrote:
In article <rf739ghe83v9iu9vo...@4ax.com>, no_spam_bhonaker__@x_i_d.com >says...
On Tue, 4 May 2021 09:54:47 -0700 (PDT), Randall <rsbe...@nexbridge.com> wrote:
On Tuesday, May 4, 2021 at 12:44:12 p.m. UTC-4, Prashant wrote:ing SELECT query without using SET LIST_COUNT?
Hello,
Can someone help me how I can get top n (say 10 or 20) rows from SQL table us
SELECT [FIRST 10] * FROM ...
I believe that works for SQL/MX, but not for SQL/MP. To use it against MP table
s you'll need to use MPALIAS and the MX executor.
mxci can directly access SQL/MP tables
Hewlett Packard Enterprise NonStop(TM) SQL/MX Conversational Interface 3.3
(c) Copyright 2003-2015 Hewlett Packard Enterprise Development LP.
select [first 10] * from $data01.sql.table;
PK_TEXT PK_TS COMMAND C1You're correct. I'd forgotten, as our standards (and all customer's standards) have always requierd either an ANSI name or DEFINE name.
-------- ---------- ---------------- -----------------
0 0 pathcom status pathway
MPALIAS is not required.Hello All,
Thanks a lot for valuable help. SELECT [FIRST 10] helped me to solve what I am looking for.
I have SQLMP table and I created it's Alias in SQLMX.
I do have one more query relates to same, I can see in SQLMX manual, we can use ROWNUM in SELECT query for 3.6 version and above but it doesn't support SQLMP table or Alias created in SQLMX. Is there any way
I can get ROWNUM from SQLMP table or Alias? Please suggest.
On Wednesday, May 5, 2021 at 12:38:16 p.m. UTC-4, Prashant wrote:
On Wednesday, 5 May 2021 at 02:47:05 UTC+5:30, Bill Honaker wrote:
On Tue, 4 May 2021 20:51:21 -0000 (UTC), inv...@nowhere.com (JShepherd) wrote:
In article <rf739ghe83v9iu9vo...@4ax.com>, no_spam_bhonaker__@x_i_d.com >says...
On Tue, 4 May 2021 09:54:47 -0700 (PDT), Randall <rsbe...@nexbridge.com> wrote:
On Tuesday, May 4, 2021 at 12:44:12 p.m. UTC-4, Prashant wrote:ing SELECT query without using SET LIST_COUNT?
Hello,
Can someone help me how I can get top n (say 10 or 20) rows from SQL table us
SELECT [FIRST 10] * FROM ...
I believe that works for SQL/MX, but not for SQL/MP. To use it against MP table
s you'll need to use MPALIAS and the MX executor.
mxci can directly access SQL/MP tables
Hewlett Packard Enterprise NonStop(TM) SQL/MX Conversational Interface 3.3
(c) Copyright 2003-2015 Hewlett Packard Enterprise Development LP.
select [first 10] * from $data01.sql.table;
inefficient ones, where you could build populate an index of primary keys by record number. The difficulty is that you could create an unkeyed table based on a RELATIVE file, delete a row in the middle of the table, and your row numbers would be offPK_TEXT PK_TS COMMAND C1You're correct. I'd forgotten, as our standards (and all customer's standards) have always requierd either an ANSI name or DEFINE name.
-------- ---------- ---------------- -----------------
0 0 pathcom status pathway
MPALIAS is not required.Hello All,
Thanks a lot for valuable help. SELECT [FIRST 10] helped me to solve what I am looking for.
I have SQLMP table and I created it's Alias in SQLMX.
I do have one more query relates to same, I can see in SQLMX manual, we can use ROWNUM in SELECT query for 3.6 version and above but it doesn't support SQLMP table or Alias created in SQLMX. Is there any wayI don't think you will get a happy answer to this one. SQL/MP is based on top of ENSCRIBE files. The notion of a record number does not actually exist across ENSCRIBE file types so it is unlikely that there is a general solution. Of course, there are
I can get ROWNUM from SQLMP table or Alias? Please suggest.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 30:39:55 |
Calls: | 6,648 |
Calls today: | 3 |
Files: | 12,193 |
Messages: | 5,328,367 |