Recent IT Questions

1 - 10 of 10
<<PREVIOUS 1 NEXT>>

dynamic temporary table variable usage

We have an sqr (running against a MS SQL Server DB), that references a dynamic temporary table variable in several begin-sql and begin-select statements. I am getting a syntax error in one begin-select statement where I can't resolve the problem. It occurs after the INNER JOIN on the...

View Answer   |  Jun 25 2009  7:53 PM GMT
Dynamic SQL, INNER JOIN, SQL tables
asked by PaminBuckeyeLand

  15 pts.

SQL order by Issue

Please help me write this. I need a SQL where the order by is done based on a variable passed to the query.SELECT * FROM (SELECT distinct gl.group_id, gl.group_name, gl.group_description, gl.status_code, gl.member_count, ...

View Answer   |  May 2 2009  4:44 PM GMT
SQL, SELECT statement, SQL query optimization
asked by Rohit3312

  25 pts.

SQL - Pass the result of the first query as the second query select column name

I want to pass the result of a sql query as the column name in another query eg. (note there will be a single result for the first query) SELECT CASE WHEN fld_type1 = 'A' THEN 'VAL_ALPHA1' WHEN fld_type1 = 'D' THEN 'VAL_DATE1' ELSE 'VAL_NUM1' END AS FIELDNAME FROM TABLE1 I want the result of the...

View Answer   |  Mar 24 2009  11:07 AM GMT
Dynamic SQL, SQL, SELECT statement
asked by Chris123

  25 pts.

Oracle Forms 6i Database Objects

I have problem that Forms 6i does not see packages stored on Database with Dynamic SQL code on it. When I open Forms Designer it does see Database Objects at the bottom but with running the forms it gives and error that does see sys. dba_sql. Thank you

View Answer   |  Mar 9 2009  9:31 AM GMT
Oracle Forms 6i, Oracle Designer, Dynamic SQL
asked by Oikhleif

  30 pts.

Find out what is in dbms_sql cursor

I am trying to put in a 5500 character query into dynamic sql, and then use the Oracle dbms_sql function to execute the sql. However, there is an error in the sql statement that is being generated, but the error message doesn't help me identify where the error is, as it pertains to the dynamic sql...

View Answer   |  Feb 25 2009  5:54 PM GMT
Oracle, DBMS, DBMS_SQL
asked by Darryn

  295 pts.

How do I populate an SQL table created on the fly in RPGLE?

I am writing a report program where I create a table that is then converted to an Excel spreadsheet using SQL2JXL. I am able to dynamically create a table with Execute Immediate but I have been unable to populate it. The problem is the table name is stored in a variable within the program and I...

View Answer   |  Feb 14 2009  4:20 AM GMT
SQL, RPGLE, RPGSQL
asked by SteveFletcher

  50 pts.

Creating a summary table in SQL Server

I need to create a summary table for the combination of some fields in a SQL Server table. I have the combination field value and the source table name in one SQL table as a row value. I need to pick this value and then fire a query on a source table with extracted values from the SQL table. How...

View Answer   |  Feb 2 2009  6:34 PM GMT
SQL Server tables, Dynamic SQL
asked by SQL Server Ask the Experts

  2430 pts.

How to generate a column name in a table dynamically

hi, I have to generate dynamic columns for a temp table. I have a temp table with column a, the column b should be generated based on a condition. B conditions are if value> 10 i have to genrate the column as 10 and if the value >20 the column name should be 20 etc....n values.... If i...

View Answer   |  Oct 14 2008  3:59 PM GMT
T-SQL, SQL Server 2005, Dynamic SQL
asked by GIG

  240 pts.

rpg sql

I am using dynamic sql in an rpgle pgm. This pgm is called from 2 different menu options. When I take the 2nd option, everything works fine. I exit out of that option and take the first option. Everything is still work fine. I exit the first option and go back to the 2nd option and the pgm hangs up...

View Answer   |  Jun 18 2008  4:33 PM GMT
SQL, RPGLE, Dynamic SQL
asked by Mcg

  15 pts.

RPG with Dynamic SQL Problem - SQLCOD 501/312

I'm trying to do simple dynamic SQL in a program to select records for a subfile but it doesn't seem to be working. sSql = 'SELECT orderno FROM ordhdr ' 'WHERE custno = :scSrchCust '; following this I have: exec SQL CLOSE @Orders; exec...

View Answer   |  Feb 25 2008  12:21 AM GMT
SQL, RPG, Dynamic SQL
asked by MMAGuy

  85 pts.

1 - 10 of 10
<<PREVIOUS 1 NEXT>>