Information about SQL programming
What occurs to me: 1. Check the Query Optimizer messages - maybe it'll suggest an index that would work. 2. Create the resultset as a table, then...
DELETE FROM fileA WHERE NOT EXISTS (SELECT 1 FROM fileB WHERE orderA = orderB AND releaseA = releaseB) It might be a good idea to run the above as a...
Do a search on RUNSQLSTM. Chris.
Recently I saw a function that creates a line counter. I would like to do something similar to the faolowing: Select LineCount(5000), Value from...
ok ... i'm developing a report utilizing sql. i have some sum functions that i'm using. if i have these straight in the select clause everything...
hi, i have encountered this strange problem: an SQLRPGLE create a cursor DYNAMIC SCROLL and execute a select making UNION like this: "select * from...
I have an procedure in an RPG program that runs an SQL statement to return a value. My question pertains to performance. Will closing the sql cursor...
PEZ wrote: > I expected it to use a logical called MBSHPL01 which is keyed by > MBNMNO. > Same for the other ITEML01 which is keyed by DMNMNO....
I have a need to call an SQL Stored Procedure from RPG that will access the a SQL Stored Procedure that returns a Result Set. The stored procedure I...
If the db2 file is defined as a linked table within the Access DB you would be able to do this. INSERT INTO MYLIB_MYFILE (SELECT * FROM myAccess...
José Juan wrote: > SELECT MIN(tableName) as TableName, id, col1,col2,col3 > FROM > ( > SELECT tablea as tableName,a.id,a.col1,a.col2,a.col3 > FROM A...
Check out the hex values of the two fields in question. Dave
Not a working sample, but some snippets and reminders. For each value to pass (your parameter marker you have to fill an SQL_VAR element in the array...
Is it possible to run the create index statement which will join 2 separate physical files together? I'd like to set up a permanent index which joins...
** This thread discusses the article: TechTip: A Couple Cool Cross Joins ** Kevin, The article was an interesting read and I did pick up a few...
My client has recently upgraded to OS/400 V5R3.The embeded SQL rpg programs are runing very slow on v5.3 when compare to previous version.Can any one...
BCSleeth wrote: > When I look at the joblog, I notice a goofy error: > > - CPF325E Uncommitted changes pending for file XXX in library YYY. Brian, In...
Create the table in mylib usinf iseries naviogator or the CREATE statemnt in STRSQL. Then you can compile your program. After it is compiled (and...
I have a program that accesses various tables through cursors. there is one table that is not; Select Repold Into :Rplstr# :Ind_Var1 From Strp0050...
The prepared statement must be "Described" into a data structure from IBM called the SQLDA. As each row is fetched you can use the information in...
Use this control to limit the display of threads to those newer than the specified time frame.
Allows you to choose the data by which the thread list will be sorted.
Order threads in...
Note: when sorting by date, 'descending order' will show the newest results first.
Forum Rules