473,657 Members | 2,546 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Online SQL query simulation DB2`

Is there a web page out there like this one ...
http://www.sql-tutor.com/sql_tutor/database.asp that would allow me to
test some SQL to a DB2? In particular to an AS/400. I am learning and find
that the commands, fuctions etc are different than going to an Access DB on
my home PC.

Another thing I am looking for is there a way to simulate on my PC a DB2 so
I can accomplish the same thing in testing SQL. Thanks
Nov 12 '05 #1
8 43084

"VPaul" <vp*****@NOSPAM PLS.earthlink.n et> wrote in message
news:fw******** *********@newsr ead3.news.pas.e arthlink.net...
Is there a web page out there like this one ...
http://www.sql-tutor.com/sql_tutor/database.asp that would allow me to
test some SQL to a DB2? In particular to an AS/400. I am learning and find that the commands, fuctions etc are different than going to an Access DB on my home PC.
If you're asking for a web site where you can submit any query you like
against the data accessible at that site, I'd be surprised if you found
anything aside from the www.sql-tutor.com site or something very similar.

I remember asking a similar question a few years back and getting a
resounding silence as an answer; apparently no one could think of anything
like what you are describing.

Finding such a site that accessed an AS/400 seems even less likely than
finding a site that could access one of the other versions of DB2. But, of
course, that is just my gut hunch: I hope I'm wrong and that some else knows
of such a site.
Another thing I am looking for is there a way to simulate on my PC a DB2 so I can accomplish the same thing in testing SQL. Thanks

You could download and install a free copy of DB2 on your PC; then you
wouldn't have to simulate anything. You'd be able to do a lot more than just
execute queries as well: you could create your own tables with any data you
liked in them, insert, update and delete rows, grant and revoke privileges,
and create supporting objects like indexes, tablespaces, bufferpools etc.
You'd also be able to create user-defined functions, stored procedures,
triggers, and all the other things that make up a DB2 system.

Learning the AS/400 is somewhat harder. Although there is a fair bit of
similarity these days between the dialects of SQL used on Windows, Linux,
and Unix platforms, mainframes, and AS/400, the AS/400 still seems to have
the most differences with the other platforms. Then again, that remark might
be out-of-date; I haven't had contact with an AS/400 in several years now.

Does your employer use an AS/400? If yes, you might be able to persuade the
DBA to set up a small "sandbox" for you to let you try things without
interfering with production work. If that isn't possible, perhaps a local
high school or college offers DB2 courses that involve AS/400s.

The other thing to consider is DB2 courses that run on the AS/400. For
example, IBM has a number of courses for DB2 on the AS/400. Naturally, that
might be a bit expensive but you seem very keen; maybe you could persuade
your employer to foot the bill?

One other possibility. At one point, IBM was experimenting with courses on
CD. I think some of those courses had some simulated SQL practice. I'm not
sure if any of those courses are still available or if they had any for the
AS/400 but you could check with the Education group at your country's IBM
office or the IBM website for your country. The CD-based courses were
substantially cheaper than the classroom courses if I recall correctly.

Rhino

Nov 12 '05 #2
If you are looking for a place to use an as400 for free, check out this
link. http://as400.holgerscherer.de/accounteng.html

Chris

Rhino wrote:
"VPaul" <vp*****@NOSPAM PLS.earthlink.n et> wrote in message
news:fw******** *********@newsr ead3.news.pas.e arthlink.net...
Is there a web page out there like this one ...
http://www.sql-tutor.com/sql_tutor/database.asp that would allow me to
test some SQL to a DB2? In particular to an AS/400. I am learning and


find
that the commands, fuctions etc are different than going to an Access DB


on
my home PC.


If you're asking for a web site where you can submit any query you like
against the data accessible at that site, I'd be surprised if you found
anything aside from the www.sql-tutor.com site or something very similar.

I remember asking a similar question a few years back and getting a
resounding silence as an answer; apparently no one could think of anything
like what you are describing.

Finding such a site that accessed an AS/400 seems even less likely than
finding a site that could access one of the other versions of DB2. But, of
course, that is just my gut hunch: I hope I'm wrong and that some else knows
of such a site.

Another thing I am looking for is there a way to simulate on my PC a DB2


so
I can accomplish the same thing in testing SQL. Thanks


You could download and install a free copy of DB2 on your PC; then you
wouldn't have to simulate anything. You'd be able to do a lot more than just
execute queries as well: you could create your own tables with any data you
liked in them, insert, update and delete rows, grant and revoke privileges,
and create supporting objects like indexes, tablespaces, bufferpools etc.
You'd also be able to create user-defined functions, stored procedures,
triggers, and all the other things that make up a DB2 system.

Learning the AS/400 is somewhat harder. Although there is a fair bit of
similarity these days between the dialects of SQL used on Windows, Linux,
and Unix platforms, mainframes, and AS/400, the AS/400 still seems to have
the most differences with the other platforms. Then again, that remark might
be out-of-date; I haven't had contact with an AS/400 in several years now.

Does your employer use an AS/400? If yes, you might be able to persuade the
DBA to set up a small "sandbox" for you to let you try things without
interfering with production work. If that isn't possible, perhaps a local
high school or college offers DB2 courses that involve AS/400s.

The other thing to consider is DB2 courses that run on the AS/400. For
example, IBM has a number of courses for DB2 on the AS/400. Naturally, that
might be a bit expensive but you seem very keen; maybe you could persuade
your employer to foot the bill?

One other possibility. At one point, IBM was experimenting with courses on
CD. I think some of those courses had some simulated SQL practice. I'm not
sure if any of those courses are still available or if they had any for the
AS/400 but you could check with the Education group at your country's IBM
office or the IBM website for your country. The CD-based courses were
substantially cheaper than the classroom courses if I recall correctly.

Rhino

Nov 12 '05 #3
chris wrote:
If you are looking for a place to use an as400 for free, check out this
link. http://as400.holgerscherer.de/accounteng.html

Chris

Rhino wrote:
"VPaul" <vp*****@NOSPAM PLS.earthlink.n et> wrote in message
news:fw******** *********@newsr ead3.news.pas.e arthlink.net...
Is there a web page out there like this one ...
http://www.sql-tutor.com/sql_tutor/database.asp that would allow me to
test some SQL to a DB2? In particular to an AS/400. I am learning and find
that the commands, fuctions etc are different than going to an Access DB
on my home PC.


If you're asking for a web site where you can submit any query you like
against the data accessible at that site, I'd be surprised if you found
anything aside from the www.sql-tutor.com site or something very similar.

< snip >

Another AS/400 (iSeries) timesharing site is netshare400.com , although
it appears they charge a fee (I have not used the service and have no
connection with it.) A Google Groups search on the newsgroup
comp.sys.ibm.as 400.misc will probably turn up similar sites.

--
Karl Hanson
Nov 12 '05 #4

"Karl Hanson" <kc******@youes s.ibm.com> wrote in message
news:41******** @news1.prserv.n et...
chris wrote:
If you are looking for a place to use an as400 for free, check out this
link. http://as400.holgerscherer.de/accounteng.html

Chris

Rhino wrote:
"VPaul" <vp*****@NOSPAM PLS.earthlink.n et> wrote in message
news:fw******** *********@newsr ead3.news.pas.e arthlink.net...

Is there a web page out there like this one ...
http://www.sql-tutor.com/sql_tutor/database.asp that would allow me to test some SQL to a DB2? In particular to an AS/400. I am learning and find that the commands, fuctions etc are different than going to an Access DB on my home PC.
If you're asking for a web site where you can submit any query you like
against the data accessible at that site, I'd be surprised if you found
anything aside from the www.sql-tutor.com site or something very similar.

< snip >

Another AS/400 (iSeries) timesharing site is netshare400.com , although
it appears they charge a fee (I have not used the service and have no
connection with it.) A Google Groups search on the newsgroup
comp.sys.ibm.as 400.misc will probably turn up similar sites.

Obviously, my information was a little out of date; there *ARE* places that
will let you "play" on an AS/400!

Rhino
Nov 12 '05 #5
Neat!!

I've just gone over there and signed up for an account. I've always wanted
to "play" with DB2/400!

Thanks for mentioning this!

Rhino

"chris" <da**********@h otmail.com> wrote in message
news:YM******** ************@wi deopenwest.com. ..
If you are looking for a place to use an as400 for free, check out this
link. http://as400.holgerscherer.de/accounteng.html

Chris

Rhino wrote:
"VPaul" <vp*****@NOSPAM PLS.earthlink.n et> wrote in message
news:fw******** *********@newsr ead3.news.pas.e arthlink.net...
Is there a web page out there like this one ...
http://www.sql-tutor.com/sql_tutor/database.asp that would allow me to
test some SQL to a DB2? In particular to an AS/400. I am learning and


find
that the commands, fuctions etc are different than going to an Access DB


on
my home PC.


If you're asking for a web site where you can submit any query you like
against the data accessible at that site, I'd be surprised if you found
anything aside from the www.sql-tutor.com site or something very similar.
I remember asking a similar question a few years back and getting a
resounding silence as an answer; apparently no one could think of anything like what you are describing.

Finding such a site that accessed an AS/400 seems even less likely than
finding a site that could access one of the other versions of DB2. But, of course, that is just my gut hunch: I hope I'm wrong and that some else knows of such a site.

Another thing I am looking for is there a way to simulate on my PC a DB2


so
I can accomplish the same thing in testing SQL. Thanks


You could download and install a free copy of DB2 on your PC; then you
wouldn't have to simulate anything. You'd be able to do a lot more than just execute queries as well: you could create your own tables with any data you liked in them, insert, update and delete rows, grant and revoke privileges, and create supporting objects like indexes, tablespaces, bufferpools etc. You'd also be able to create user-defined functions, stored procedures,
triggers, and all the other things that make up a DB2 system.

Learning the AS/400 is somewhat harder. Although there is a fair bit of
similarity these days between the dialects of SQL used on Windows, Linux, and Unix platforms, mainframes, and AS/400, the AS/400 still seems to have the most differences with the other platforms. Then again, that remark might be out-of-date; I haven't had contact with an AS/400 in several years now.
Does your employer use an AS/400? If yes, you might be able to persuade the DBA to set up a small "sandbox" for you to let you try things without
interfering with production work. If that isn't possible, perhaps a local high school or college offers DB2 courses that involve AS/400s.

The other thing to consider is DB2 courses that run on the AS/400. For
example, IBM has a number of courses for DB2 on the AS/400. Naturally, that might be a bit expensive but you seem very keen; maybe you could persuade your employer to foot the bill?

One other possibility. At one point, IBM was experimenting with courses on CD. I think some of those courses had some simulated SQL practice. I'm not sure if any of those courses are still available or if they had any for the AS/400 but you could check with the Education group at your country's IBM office or the IBM website for your country. The CD-based courses were
substantially cheaper than the classroom courses if I recall correctly.

Rhino

Nov 12 '05 #6
WOW, thanks for all the responses.

1) I would ask, how do I get the free copy of DB2?

2) If I sign up for the free account, I would assume I could then upload a
DB2 table to it?

3) If I want to test out some SQL to the DB2, I would then need the ODBC
driver on my PC?

4) Can this be done across the internet?

Thanks all for the assist.
"Rhino" <rh****@NOSPAM. sympatico.ca> wrote in message
news:Zv******** ************@ne ws20.bellglobal .com...
Neat!!

I've just gone over there and signed up for an account. I've always wanted
to "play" with DB2/400!

Thanks for mentioning this!

Rhino

"chris" <da**********@h otmail.com> wrote in message
news:YM******** ************@wi deopenwest.com. ..
If you are looking for a place to use an as400 for free, check out this
link. http://as400.holgerscherer.de/accounteng.html

Chris

Rhino wrote:
"VPaul" <vp*****@NOSPAM PLS.earthlink.n et> wrote in message
news:fw******** *********@newsr ead3.news.pas.e arthlink.net...

>Is there a web page out there like this one ...
>http://www.sql-tutor.com/sql_tutor/database.asp that would allow me to>test some SQL to a DB2? In particular to an AS/400. I am learning and
find

>that the commands, fuctions etc are different than going to an Access DB
on

>my home PC.
>

If you're asking for a web site where you can submit any query you like against the data accessible at that site, I'd be surprised if you found anything aside from the www.sql-tutor.com site or something very similar.
I remember asking a similar question a few years back and getting a
resounding silence as an answer; apparently no one could think of anything like what you are describing.

Finding such a site that accessed an AS/400 seems even less likely than finding a site that could access one of the other versions of DB2. But,
of
course, that is just my gut hunch: I hope I'm wrong and that some else knows of such a site.
>Another thing I am looking for is there a way to simulate on my PC a
DB2
so

>I can accomplish the same thing in testing SQL. Thanks
>

You could download and install a free copy of DB2 on your PC; then you
wouldn't have to simulate anything. You'd be able to do a lot more than
just execute queries as well: you could create your own tables with any
data
you liked in them, insert, update and delete rows, grant and revoke privileges, and create supporting objects like indexes, tablespaces, bufferpools etc. You'd also be able to create user-defined functions, stored
procedures, triggers, and all the other things that make up a DB2 system.

Learning the AS/400 is somewhat harder. Although there is a fair bit of similarity these days between the dialects of SQL used on Windows,
Linux, and Unix platforms, mainframes, and AS/400, the AS/400 still seems to have the most differences with the other platforms. Then again, that remark might be out-of-date; I haven't had contact with an AS/400 in several years now.
Does your employer use an AS/400? If yes, you might be able to persuade the
DBA to set up a small "sandbox" for you to let you try things without
interfering with production work. If that isn't possible, perhaps a local high school or college offers DB2 courses that involve AS/400s.

The other thing to consider is DB2 courses that run on the AS/400. For
example, IBM has a number of courses for DB2 on the AS/400. Naturally, that might be a bit expensive but you seem very keen; maybe you could persuade your employer to foot the bill?

One other possibility. At one point, IBM was experimenting with
courses
on CD. I think some of those courses had some simulated SQL practice. I'm not sure if any of those courses are still available or if they had any
for
the AS/400 but you could check with the Education group at your country's IBM office or the IBM website for your country. The CD-based courses were
substantially cheaper than the classroom courses if I recall

correctly.
Rhino


Nov 12 '05 #7
VPaul wrote:
WOW, thanks for all the responses.

1) I would ask, how do I get the free copy of DB2?
You don't need one. DB2 UDB for iSeries is built into OS/400 (now
called i5/OS). There is no separate DB2 product to install, config, etc
. There is a separate product called DB2 Query Mgr and Development
Kit, that provides things like the interactive ("green-screen") SQL
command interface (STRSQL CL command). However that is only one
interface into DB2 that is part of the OS.

2) If I sign up for the free account, I would assume I could then upload a
DB2 table to it?
Not sure what you mean exactly. One way to load data into a table on
iSeries is the Copy From Import File (CPYFRMIMPF) CL command. Provided
you have the disk space needed, you can run DDL statements like CREATE
SCHEMA, CREATE TABLE, etc.

3) If I want to test out some SQL to the DB2, I would then need the ODBC
driver on my PC?
That is one way. iSeries Navigator comes with an ODBC driver, as well
as a facility called Run SQL Scripts. Another option is called DB2
Connect, with an ODBC driver etc. There are other (non-IBM) ODBC
drivers available too. JDBC is another option. Most (if not all) of
these communicate with DB2 on iSeries servers over TCP/IP, so you would
need to check with the timesharing service to determine if they allow
such access.

4) Can this be done across the internet?
See 3 above.

Thanks all for the assist.


Here are a couple links that may be useful to get started:
publib.boulder. ibm.com/pubs/html/as400/infocenter.htm
(expand "Database" in left navigation pane)
www.ibm.com/servers/eserver/iseries/db2/
www.ibm.com/servers/eserver/iseries/navigator/

--
Karl Hanson

Nov 12 '05 #8
May I ask one more question?

I am using the CAST function in a sql query. It seems to run extremely slow
with proper results. Would this be normal? Also if I change the script,
some functions are not valid like CSTR etc; Is this due to my ODBC driver,
or the fact thea I am SQL to DB2 or the OS? I am not sure if the term
function is correct.
Thanks again.

Script is below,

select F4006.OAMLNM, F4006.OAADD1, F4006.OAADD2, F4006.OAADD3, F4006.OACTY1,
F4006.OAADDS, F4006.OAADDZ, F4006.OADOCO, F4006.OAANTY, F4201LA.SHASN,
F4006.OADCTO

from F4006, F4201LA

where F4006.OADOCO = CAST (SUBSTRING('540 030 SO',1,6)AS INTEGER) and
F4006.OAANTY = '2' and F4201LA.SHDOCO = F4006.OADOCO and OADCTO = SUBSTRING
('540030 SO',10,2)

The String is actually a scanned input from a barcode. I know that if I
have my application do the parse it would run better. I just don't know how
to do that right now. I have troubl finding where the input variable is
stores. I have coded the string here as fixed text for this example. I do
need the numerical portion returned as a number.


"Karl Hanson" <kc******@youes s.ibm.com> wrote in message
news:41******** @news1.prserv.n et...
VPaul wrote:
WOW, thanks for all the responses.

1) I would ask, how do I get the free copy of DB2?


You don't need one. DB2 UDB for iSeries is built into OS/400 (now
called i5/OS). There is no separate DB2 product to install, config, etc
. There is a separate product called DB2 Query Mgr and Development
Kit, that provides things like the interactive ("green-screen") SQL
command interface (STRSQL CL command). However that is only one
interface into DB2 that is part of the OS.

2) If I sign up for the free account, I would assume I could then upload a DB2 table to it?


Not sure what you mean exactly. One way to load data into a table on
iSeries is the Copy From Import File (CPYFRMIMPF) CL command. Provided
you have the disk space needed, you can run DDL statements like CREATE
SCHEMA, CREATE TABLE, etc.

3) If I want to test out some SQL to the DB2, I would then need the ODBC
driver on my PC?


That is one way. iSeries Navigator comes with an ODBC driver, as well
as a facility called Run SQL Scripts. Another option is called DB2
Connect, with an ODBC driver etc. There are other (non-IBM) ODBC
drivers available too. JDBC is another option. Most (if not all) of
these communicate with DB2 on iSeries servers over TCP/IP, so you would
need to check with the timesharing service to determine if they allow
such access.

4) Can this be done across the internet?


See 3 above.

Thanks all for the assist.


Here are a couple links that may be useful to get started:
publib.boulder. ibm.com/pubs/html/as400/infocenter.htm
(expand "Database" in left navigation pane)
www.ibm.com/servers/eserver/iseries/db2/
www.ibm.com/servers/eserver/iseries/navigator/

--
Karl Hanson

Nov 12 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2011
by: Constandinos Mavromoustakis | last post by:
Dear all, first we apologize if you receive multiple copies of this announcement. please see below if you are interested. Thank you in advance. ============================================================================ =
0
2378
by: Constandinos Mavromoustakis | last post by:
http://agent.csd.auth.gr/~cmavrom -------------------------------------------------- ============================================================================ = 37th Annual Simulation Symposium April 18 - 22, 2004 Hyatt Regency Crystal City
0
2001
by: Gus | last post by:
---------------------------------------------------------------------------- ------------------------------------ Call for Papers: 38th Annual Simulation Symposium Part of the 2005 Spring Simulation Multiconference San Diego, April 2-8, 2005 Hilton Mission Valley Hotel
1
9636
by: Steven | last post by:
Ok W2K DB2 v8.1 fix pack 5. On production I took a an online backup of production and copied it over to my staging environment. restored the production database on top of staging database redirect. I copied over all the log files from production box to a temp directory. restore was complete with redirect and staging went into roll forward pending.
0
1774
by: Karatza Helen | last post by:
Our apologies if you have received multiple copies -------------------------------------------------- Call for Papers: 38th Annual Simulation Symposium Part of the 2005 Spring Simulation Multiconference San Diego, April 2-8, 2005 Hilton Mission Valley Hotel
6
3668
by: Raj | last post by:
How can we do an online restore of a tablespace using the incremental backup's? we are on a partitioned database... Also, how could we use backup copy made by the load (using the copy to option in load) to revover the tablespace? Thanks, Raj
3
2506
by: Konstantin Andreev | last post by:
Hello, everybody. I've spent a lot of time reading "DB2 Information Center" and Raul Chong's book "Understanding DB2. Learning Visually with Examples", but still unable to answer this simple question. I need to perform the full database backup for at least these two goals: - to restore data onto developers' database system. - to ensure disaster recovery
5
3617
by: Konstantin Andreev | last post by:
Hello, all. I can't figure out <subjectfrom documentation. I had configured LOGARCHMETH1 = DISK:/bak/logs so all full log files are copied *out* of the active log path. Let I issue | # DB2 BACKUP DB MYDB ONLINE TO '/bak/images'
2
11042
by: alex250374 | last post by:
Hi all, db2 9.1 fixpak 0 aix 5.3 I have a big problem every time I start an online backup with include logs via veritas comes out an error!!! The db2diag shows: 2009-10-29-17.57.22.240269+060 E10634592A396 LEVEL: Info PID : 995458 TID : 1 PROC : db2agent (idle) INSTANCE: db2inst1 NODE : 000 DB : ATMDB
0
8845
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8743
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8622
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6177
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5647
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4333
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2745
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1973
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1736
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.