SQL Questions and Answers

Recent IT Questions

41 - 60 of 830

sql

How do I compile a SQLTBLSRC on the as400? Software/Hardware used: AS400 I series

View Answer   |  Sep 25 2009  5:19 PM GMT
AS/400, DDS, SQL
asked by Amartin15

  10 pts.

sql update command to change text

I need to modify all characters within a text field. Some of the fields will contain 2-5 characters, others will contain 20-200 or more. The field is defined as Text 4000. I want to replace every letter with "K" We have a Select statement: select...

View Answer   |  Sep 24 2009  4:04 PM GMT
SQL, Oracle 9i, Update
asked by Mji

  50 pts.

Page at a time subfile

I want to code loading a single page subfile in SQLRPGLE. How do I handle the page up and page down key, posotion to in that program? thanks, NG Software/Hardware used: SQLRPGLE

View Answer   |  Sep 24 2009  2:24 AM GMT
SQL, RPGLE, AS/400 Subfiles
asked by Nutangujar

  750 pts.

sap training

where is a good place to start to take sap training? Software/Hardware used: as/400

View Answer   |  Sep 22 2009  7:51 PM GMT
SAP, Oracle Developer, SQL
asked by Tsscare

  5 pts.

How to remove duplicate row in multi joined table?

My qurey is below. SELECT [5000Phantoms79w/VNos&othersFromAna].ID, [5000Phantoms79w/VNos&othersFromAna].PhtomNo, [5000Phantoms79w/VNos&othersFromAna].[New No], [5000Phantoms79w/VNos&othersFromAna].[dB OE tied to Phantom], [5000Phantoms79w/VNos&othersFromAna].dB2ndSetNewNo,...

View Answer   |  Sep 22 2009  6:08 PM GMT
SQL, AS/400, Microsoft Office 2000
asked by CompEng

  600 pts.

SQL join two counts on same table

I have two different SQL statements that each is a count on the same table, but a count of different columns. I'm trying to combine them into a single statement, but am having trouble doing so.  The two statements are:  SELECT photoIDWinner as photoID, count(primaryID) as countWin FROM...

View Answer   |  Sep 21 2009  6:17 PM GMT
SQL, MySQL query
asked by Shantheman

  15 pts.

SQL Mismatch in From Statement

What need to be done if an error message mentions "Mismatch in From Statesmen"? It seems like I have not done any different then what I have done over the last numerous of queries that I have done. I started with an excel spreadsheet. I had to do some concatenation of the some columns. I then...

View Answer   |  Sep 17 2009  4:23 PM GMT
SQL, AS400 - DDS
asked by CompEng

  600 pts.

Export Oracle data to Excel

Is there sql code to export data from oracle to excel? I can right click on the data set to export but need to include it as part of the code. Any help would be much appreciated! Thanks Software/Hardware used: Oracle, Excel

View Answer   |  Sep 15 2009  6:16 PM GMT
Oracle, SSRS, Oracle export
asked by ITKE

  10345 pts.

SQL Database User

Hello, I have 3 servers running sql server 2005 server1, server2, and server3 with database1 and database2 respectively. I backup database1 on server1 and backup database2 on server2 then I restore database1 and database2 on server3 as read-only on a daily basis. I only want to use one sql...

View Answer   |  Sep 14 2009  9:22 PM GMT
SQL, SQL Server, SQL Server security
asked by RickMartinez

  85 pts.

SSRS - SQL runs in 1 minute but Reporting Services tuns for 30 minutes

I have a report whose dataset query that takes approximately 1 minute to run in SQL Management Server. That same query in a Reporting Services report takes aver 30 minutes to run. And it is inconsistent in its behavior since sometimes it will never finish running and error out. When it does run...

View Answer   |  Sep 14 2009  4:15 PM GMT
SSRS, SQL, SQL performance
asked by Cvillavicencio

  35 pts.

Working with SQL: Extracting Data or Text within a Query, adding new column for extracted data

I have created a passthrough query in access to draw information from an AS400 system. I have also created some tables in excel and copied and pasted them into access to link them to the AS 400 query via access. So as of now I have three files in one access passthrough query. The one file is "...

View Answer   |  Sep 10 2009  3:29 PM GMT
SQL, Access Datasheet, as/400 data
asked by CompEng

  600 pts.

Need to know the date and time a particular sql command was fired through an interactive session

Is it possible to find the date and time a particular sql command was entered. Iam able to view the commands entered in an sql session but not able to find the date and time the commands where fired.

View Answer   |  Sep 7 2009  10:39 AM GMT
SQL commands, SQL, iSeries SQL
asked by JohnsonMumbai

  380 pts.

SQL convert numeric to date format

How can I convert an 8 digit numeric (format ccyymmdd) into a real datefield to be used in date arithmetics? I need to calculate the number of months between month(current date and a date represented in my DB as an 8 digit numeric with format "ccyymmdd". Therefor (I assume) I need to convert my 8...

View Answer   |  Sep 6 2009  2:13 PM GMT
SQL, SQL datetime, SQL Date Calculation
asked by DanTheDane

  245 pts.

SQL dynamic date calc.

How shall the WHERE clause look for this challenge: Pseudocode: select all records from file where datefield (ccyymmdd 8.0) shall be greater than todays month minus 36 months. As you can see this may be expressed as [em]rolling 36 full months plus current month[/em]. Any help will be...

View Answer   |  Sep 4 2009  4:45 PM GMT
SQL, IBM 9407 M15, SQL Dynamic Date Calculation
asked by DanTheDane

  245 pts.

Defining a sort variable (ORDER by) in RPG SQL

I have a file that I would like to sort on a specific column that a user would choose. I sort the file by an imbedded SQL statement: ORDER by PRDNO. Works fine. If I try and make it a variable (ORDER by :Sort_Seq), the statement is ignored. Is there a way to make the ORDER by a variable in RPG...

View Answer   |  Sep 3 2009  2:12 PM GMT
RPGSQL, SQL, RPG
asked by MurrayInfoSys

  570 pts.

speed up selection in SQL Query

I am using a database,which is mainly using for Data retrieving purpose.What all are the tricks to increase the speed of select query from that database?

View Answer   |  Sep 3 2009  10:51 AM GMT
SQL, SQL Query
asked by Shajina

  5 pts.

SQL Help needed

In what way, using SQL could a statement be written in that it would not allow any duplications of a particular text in a column? How would it be set up? Also if you have three different tables, lets call them A, B, and C., and there may be multiple matches in each of the tables. I need to...

View Answer   |  Sep 2 2009  1:16 PM GMT
SQL, AS/400, Deduplication
asked by CompEng

  600 pts.

CLR Assembly in MS SQL 2008

I have a problem with COM-objects which i create in CLR-assembly in VB.NET via CreateObject. When I compile this assembly as console project and run loging under any account on server, it works ok. But when i run this file from MS SQL, it can not create object. What may be reason for this?

Answer Question   |  Aug 31 2009  7:29 PM GMT
SQL Server 2008, CLR, SQL
asked by Dalex

  35 pts.

Date problem with Delphi 7

I am trying to select records where the date is smaller that a specific date by using Delphi 7. The data is stored in a MS access 2000 database. dtsdate.DataSet := qrydate ;  qrydate.Active := false ;  qrydate.SQL.Text := ' select * from datum where datum < 1994/02/05' ; qrydate.Active :=...

Answer Question   |  Aug 30 2009  8:48 PM GMT
SQL, Delphi 7, Microsoft Access
asked by Marieps

  5 pts.

UPDATE a year from an ISO date field using SQL

Dear Sir/Madam, How can I update the year from a date field. For example the date file contains '2008-12-31' and I would like to use I-Series navigator's SQL to update the date field above with '2007-11-31'.But my intention for the update here is to decrease/deduct the year by 1 year and the month...

View Answer   |  Aug 25 2009  9:33 AM GMT
SQL, AS/400 SQL, ISO files
asked by Khngkenny

  5 pts.

41 - 60 of 830