SQL Questions and Answers

Recent IT Questions

161 - 180 of 830

Updating a field and counting unique field values from another fields all in the same query?

How can I structure the following query to allow me to count the number of unique entries in a field named "amount" and using the same query, update another field named "unique" Here is what I am doing: SQL = "select amount, count(amount) from tblmessagein group by amount having count(*) = 1" If...

View Answer   |  Apr 15 2009  10:59 AM GMT
SQL Aggregate error, SQL queries, SQL
asked by Grantp

  40 pts.

Oracle SQL question

I want to create a SQL script in Oracle that will run one of two possible SQL scripts based on what the user enters in the Parameter request. Since I'm unable to use IIF and If Then like I can in SQL Server, is there another way to do this? I have tried using case statements but Oracle doesn't...

View Answer   |  Apr 13 2009  2:39 AM GMT
Oracle developers, Oracle SQL, Oracle development
asked by Wanderer9577

  5 pts.

SQL in an SQLRPGLE program

I want to use embedded SQL in an SQLRPGLE program to search a file for a field entered in a screen to select data using the LIKE operand. This is my code C/EXEC SQL C+ DECLARE C1 CURSOR FOR SELECT * FROM F0101JN WHERE ALADDZ = :SZIP C+...

View Answer   |  Apr 10 2009  7:35 AM GMT
SQL/400, Embedded SQL, SQLRPGLE
asked by Alpfalpf

  25 pts.

sql with windows vista home premium 32bit

can i install sql programs in windows vista home premium 32bit

View Answer   |  Apr 7 2009  6:04 PM GMT
SQL, Vista, Vista Home
asked by Mayo

  5 pts.

New CUM Level 8305 is giving me SQL Headaches

We recently upgraded to a new machine at OS Level V5R4 CUM 8305. Our old machine was also at V5R4 but the CUM level was only 8057. Ever since the upgrade, I have been having SQL Problems. My latest problem involves trying to update a QTEMP File that was built using CRTPF and specifying a record...

View Answer   |  Apr 7 2009  2:16 PM GMT
SQL, AS/400, V5R4
asked by FCARPENTER

  200 pts.

how to capture cases in store procedure codes

I wish to creat a query in store procedure (with variables such as Start Datetime, End Datetime, Parameter varchar(3) as you can see on my store procedure for other reports). But for this report, I wish to capture a case might fall into one of the columns (only one column such as DECLEAREDDATE OR...

View Answer   |  Apr 6 2009  6:48 PM GMT
SQL stored procedures, SQL
asked by Josephptran

  15 pts.

SQL 6.5 Upgrade

We recently upgraded an application from MS SQL 6.5 to MS SQL 2008. We took quite a performance hit. Is this to be expected?

View Answer   |  Apr 6 2009  6:38 PM GMT
SQL, SQL 6, SQL 6.5
asked by DickRich

  15 pts.

How do I write a SQL statement to get all data from a table called subscrib?

How do I write a SQL statement to get all data from a table called subscrib?

View Answer   |  Apr 5 2009  10:16 PM GMT
SQL statements, SELECT statement, SQL queries
asked by Thechriseco

  5 pts.

SQL tutorial?

Hi , I am having some difficulty in interpretation of SQL questions , I am trying to learn the language self taught is there some interactive tutorial i can try

View Answer   |  Apr 5 2009  2:32 PM GMT
SQL
asked by Lystra

  10 pts.

Duplicate object (PF) using SQL with same attributes

I want to create a duplicate object using SQL. I don't want to use CRTDUPOBJ and also do not want to compile my rpg's pgm because of new file level identifier. Please advice

View Answer   |  Apr 5 2009  6:46 AM GMT
LVLCHK, SQL, PF
asked by Anwer

  5 pts.

Store Procedure Codes Please help

I have a problem in SQL, and please expert helps me out and give me an advice of how to solve this issue. I have a main table where to store the data, I have mutliple columns and those are SSN, DECLEAREDDATE, SOMATICMCCLEAREDDATE, PSYCMCCLEAREDDATE, DESECONDCLEAREDDATE, SOMATICMCCLEAREDDATE,...

View Answer   |  Apr 3 2009  6:36 PM GMT
SQL stored procedures, SQL
asked by Josephptran

  15 pts.

How do I limit my SQL output to one record per student?

Current resuls: Student ID: Guardian 2 Joe 2 Mary 3 Goldie 4 JIm Needed results: Student ID: Guardian 2 Joe 3 Goldie 4 Jim

View Answer   |  Apr 3 2009  3:51 PM GMT
SQL Query, SQL Output, SQL Records
asked by Richieg

  5 pts.

SQL Writer library failed initialization

SQL Writer library failed initialization. Your installattion iseither corrupt or has been tampered with. Please uninstall then re-run setupto correct this problem. How should I handle this?

View Answer   |  Apr 2 2009  1:37 AM GMT
SQL writer, SQL Writer error messages, SQL
asked by Valeverger

  10 pts.

Matching External lists to your Database?

Hello everyone, I work in a telco and manage the data in the company's CRM. I'm often given lists of company names by our alliance team, and asked to match the list against our database to see which companies already exist in the CRM and which don't. At the moment I can only accomplish this by...

View Answer   |  Apr 1 2009  10:54 PM GMT
SQL queries, Query optimization, SELECT statement
asked by Nik14

  5 pts.

Convert Oracle code to Microsoft SQL code

I've been given an Oracle DB that has some triggers and "LOAD DATA" jobs. Is there a tool/utility to convert the triggers/loads from PL/SQL into T-SQL?

View Answer   |  Mar 30 2009  9:20 PM GMT
T-SQL, PL/SQL, Oracle import/export
asked by VelameLaCosa

  65 pts.

Invalid objects after upgrade from 8.1.7.4 to 10G

for the following procedure within a package: PROCEDURE GET_ALL_REGIONS(rs_REGION_LIST OUT r_REGION_LIST, Vrc2_err_msg OUT VARCHAR) IS BEGIN OPEN rs_REGION_LIST FOR SELECT DISTINCT(PRS_REGION) INTO r_REGION_LIST FROM SET_PARISH_RFT; Vrc2_err_msg:=NULL; RETURN; ...

Answer Question   |  Mar 30 2009  8:39 PM GMT
Oracle error messages, Oracle upgrades, Oracle 10g
asked by DBAKim

  5 pts.

SQL query for obtaining answers

Table student containing 2 columns,Join date,Employee name. Under join date 4 rows r ter =1-jan-2008,2-feb-2008,3-mar-2008,4-feb-2008.Under Employee name 4 difeerent names jaison,robin,binoy,rahul Result set is, Table containing 4-column name=jan,feb,mar,april,,beneath these months count is...

View Answer   |  Mar 30 2009  5:08 PM GMT
SQL, SQL Query
asked by Frs

  20 pts.

What is the difference between software package in SQL and PL/SQL

why is the need of psql when the sql is already avaliable.

View Answer   |  Mar 30 2009  7:43 AM GMT
PL/SQL, SQL, SQL development
asked by Krrishkundan

  5 pts.

Video hosting

I am including a video howto section to my business website. I have minimal experience in php and sql but have already created a SQL database for the information. I want this to be both dynamic and directable through the title of the video. can someone please give me direction.

Answer Question   |  Mar 29 2009  7:46 PM GMT
Video hosting, SQL, PHP
asked by Tripodcomputerservices

  20 pts.

Populating one combobox in Delphi 7 from another?

I have one combobox in which you select an option. What is the sql used in the query to restrict the second combobox depending on the first value. All I seem able to get is: [SELECT Name_Of_Race FROM Races WHERE Name_Of_Allegiance = DBLookupComboBox1.Value] Here, when I press the button to set...

View Answer   |  Mar 27 2009  2:55 PM GMT
Delphi, ComboBox, SQL
asked by RavenMoon

  5 pts.

161 - 180 of 830