Questions tagged [ingres]

Use this tag for Ingres / Actian X questions. The Ingres v11 RDBMS is now known as Actian X and in addition to supporting OLTP, also supports analytic workloads with X100 tables and Vector engine, making it a hybrid OLTP and analytic database.

Filter by
Sorted by
Tagged with
0 votes
1 answer
47 views

How do I select column from table where it's missing a field description

I have 3 tables "prem_pay", "sched", "clist". My SELECT statement needs to include 3 columns which are "reason", "cl_desc"(description), and "...
JThao's user avatar
  • 87
0 votes
1 answer
206 views

SSIS Dataflow ODBC-source to Destination (OLEDB/any)

I have to extract few (5) tables (from Ingres DB) using ODBC connection and load the same in OLE-DB (SQL Server). 1). OLE-DB based connection extract 5 tables name. 2). Using Conrol flow (For each ...
khurram's user avatar
0 votes
0 answers
65 views

Correlated subquery in WHERE clause

Could someone help me with Correlated subquery in WHERE NOT EXISTS clause using below example of exercise, cause I am not sure how to write this subquery and how would this work in INGRES database. ...
Tomo 1897's user avatar
1 vote
1 answer
91 views

SQL Adapter.Fill(dataTable) fetches wrong rows

I've encountered a problem in my class for fetching SQL (Ingres.Client lib) data. SQL query select works fine in SQL DBA client (VDBA) for Ingres Database. Rows gets fetched just right. But my code ...
Reddi3n's user avatar
  • 51
0 votes
1 answer
57 views

Calculating total time while certain condition is met Ingres Database

I am having trouble figuring out how to calculate the total time while a certain condition is met. For example, Date Speed 25-jan-2021 15:06:06 150.000 25-jan-2021 15:07:06 150.000 25-jan-2021 15:...
YousoYori's user avatar
0 votes
1 answer
67 views

Two COUNT() columns in a SQL query, one for IN/INNER JOIN and one for NOT IN/LEFT JOIN

Is it possible to create a query where you can have two COUNT() columns where one column is for something like IN() and another one for something like NOT IN() and also just by using JOIN? For ...
Daniel Catalan's user avatar
0 votes
0 answers
197 views

Ingres SQL illegal pattern match and illegal escape sequence, unexpected results

I am querying a database that uses Ingres 10.2. I cannot seem to get any of my pattern matching code to work as I expect it to. For example: SELECT TOP 20 * FROM table_name WHERE variable_name IN ('...
mintypasta's user avatar
1 vote
1 answer
637 views

Ingres to SQL Server DB

Don't know if anyone can help but i have been tasked with getting all the information out of an Ingres DB into a SQL Server DB. I have virtually no experience of Ingres apart from fumbling my way ...
SteveWWH's user avatar
0 votes
1 answer
304 views

Report Builder 3.0 using multiple values in parameter not working with IN Statement

I am trying to use a multi value parameter in my query statement rather than using a filter, however when using the IN command it is not using my parameters given. I have used the JOIN Function to ...
Larry's user avatar
  • 3
2 votes
2 answers
486 views

Migrate 260 tables from ingres to SQL Server

I am migrating an ingres database to SQL Server. This database has 260 tables to migrate. I usually use SSIS, I create a package for each table, that will be 260 packages, and then I run one by one ...
Keny's user avatar
  • 69
0 votes
1 answer
292 views

How to make RANK() or ROW_NUMBER() in ingres/vectorwise ? issue sql code

I am writing a sql query to get sales for different stores on a given day. The query is run against ingres/vectorwise. I want to add a column rank where there is the ranking of the store in regard of ...
S.Jackson's user avatar
  • 139
0 votes
0 answers
123 views

How to use LISTEN/NOTIFY with ECPG

I'm trying out ECPG for work as we plan to switch from Ingres to Postgres. We have multiple C applications that uses DBEVENTs from the database to trigger different actions. Now I want to use the ...
Sebastian Olsson's user avatar
1 vote
1 answer
359 views

Unlock a table of a ingres database

I have the problem that I runned an sql statement but haven't comitted it. Now the table is locked and I don't know how to unlock an Ingres database table. I have searched for some information but I ...
dankoe's user avatar
  • 61
0 votes
2 answers
246 views

Kafka integration with Ingres database

I am trying to integrate Ingres database with Kafka. What I am looking for is, as soon as a record gets inserted/updated/deleted in Ingres database, it should publish this record in a Kafka topic. Is ...
Ajinkya Relekar's user avatar
0 votes
1 answer
487 views

Ingres stored procedure to delete multiple records from table

I am creating a SP in Ingres to delete multiple records from single table by comma separated id's, but it is not working. Though when I execute it in a separate query (without storedprocedure) then it ...
Deepika's user avatar
0 votes
0 answers
55 views

How to create DSN in Ingres using Ubuntu?

I got the message error below when i try to test the DSN. I verified the Path of the driver I verified the permission of the driver Could someone know what mean this error or any Ideas for the ...
JOSE0219's user avatar
0 votes
0 answers
355 views

How to fix 'Connection aborted due to communications protocol error.' while executing query from Java to Ingres?

I am trying to connect the Ingres DB through .jsp page using Java code. I am able to establish connection successfully, however when I am trying to run any query on this DB connection created, the ...
user5891930's user avatar
0 votes
1 answer
491 views

How to use Aliases or Variables to compare values in SQL

I'm setting up SQLs Aliases as variables to replace the excel formula below =+IF((O2+Z2)=0,0,+IF(AA2=0,(O2*-1),+IF(AND(AA2>0,(((R2*O2)/(O2+Z2))+H2)<= (O2*-1)),(O2*-1),(((R2*O2)/(O2+Z2))+H2)))) ...
Ben's user avatar
  • 1
1 vote
1 answer
131 views

SQL Subquery > 1 meaning

I've been looking over some old Ingress SQL code and I'm slightly curious as to the ' > 1' at the end of a subquery, such as : SELECT count(*) FROM table1 t WHERE t.col1 = 'TEST' AND t.col2 = '...
SQLNoob's user avatar
  • 25
1 vote
1 answer
110 views

Do Ingres and Vectorwise Databases support functionality similar to TRUNCATE table in SQL Server? If so, what is the syntax?

Trying to find if there is something similar to TRUNCATE TABLE in these 2 database systems.
Shiv's user avatar
  • 11
1 vote
1 answer
146 views

Ingres multiplication gives wrong result

I have an Ingres table with following columns from_date ingresdate to_date ingresdate model_amt money The dates can reflect a period of any number of days, and the model_amt is always a weekly ...
Ben Hamilton's user avatar
4 votes
1 answer
1k views

Connecting to Ingres DB from .net Core 2.1

I am developing a .net core 2.1 API that needs to connect to an older Ingres DB. In previous .net frameworks I have been able to use Ingres Client found here https://www.nuget.org/packages/Ingres....
G.James's user avatar
  • 230
1 vote
2 answers
846 views

ingres 10s sql row number

I have two simple one column tables like this: Table one: from_date 01.01.18 15.01.18 23.01.18 01.02.18 Table two: to_date 15.01.18 23.01.18 01.02.18 05.02.18 All I want to do is join them on a....
Andrew Courtenay's user avatar
0 votes
1 answer
211 views

I can't connect to Ingres with php 7

I have to build a php website which has to connect to an Ingres database server. I have downloaded sourceforge pjbs JDBC-PHP bridge. I installed this in the project folder and tried to connect to my ...
yolande's user avatar
0 votes
1 answer
129 views

Ingres fetching select into SQLDA

I am trying to use Embedded SQL in C to fetch rows from an Ingres database and return the results into the SQLDA structure. I will be selecting ints, longs and strings. So far my program fetches the ...
Zooloo10's user avatar
0 votes
1 answer
100 views

Using NOT, MIN, AND in SQL having clause creating error

I am working on Ingres9.2 version. When I execute a query like select col1 from table1 group by col1 having not((5=min(col1)) and (0 = 1)) it raising an error as: bad select or subselect target ...
UserB's user avatar
  • 39
2 votes
1 answer
214 views

Adding Identity column in Ingres Db

I am trying to add an identity column in a table through alter query using Ingres DB. While creating the table, i am able to define the identity column but not when i am trying to add it through alter ...
Sriparna Banerjee's user avatar
1 vote
0 answers
244 views

How to migrate from INGRES to MS-SQLServer

we have serveral C (ANSI-C) processes on a intel-based solaris server which connect to an ingres db through embedded sql. Now we want to migrate the code to ms-sql server. I have already found OBDC ...
Guido's user avatar
  • 11
0 votes
1 answer
64 views

Zope Legacy Code - Accessing DA Functions

We're working with an older zope version (2.10.6-final, python 2.4.5) and working with a database adapter called ZEIngresDA. We have an established connection for it, and the test function shows that ...
Hermano23's user avatar
-1 votes
2 answers
675 views

sql show date time as dd/mm/yy hh:mm:ss without using CONVERT(VARCHAR(10)

I am using Ingres Db which is old and cant do much, I need to show datetime in specific format as dd-mm-yyyy hh:mm:ss DB retunrn me it as 01.02.2018 14:43:53 it is NOT SQL server so I ...
Andrey's user avatar
  • 1,649
1 vote
3 answers
644 views

How do I determine if a column value has changed back and forth during a date range?

Background: We have a working query for selecting what type of access (d8_5_B.xpostaccessuse) a patient (column xpid in any table) has in use 90 days after the date they became chronic (d1.ddiadate +...
Jackson's user avatar
  • 217
-1 votes
1 answer
128 views

SQL Query getting multple results from 3 table inner join

I am running an sql query (using microsoft report builder)joining three tables and getting duplicates, i cant seem to stop this. i have one table (tableA) that holds the relevant fields ownerID, ...
Larry's user avatar
  • 3
0 votes
1 answer
299 views

delete first X row Ingres ANSI

I have 730000+ records which I need to delete in Ingres db which work with ANSI92 and I need to delete then without overload db, simple delete where search condition, doesn't work, DB just use all ...
Andrey's user avatar
  • 1,649
0 votes
1 answer
299 views

date difference in minutes for Ingres

I have DB (ingres 11) which works with ANSI i need to findout difference in minutes between dates, I have statement SELECT top 10 date('now') - '06.07.2017 10:20:02' itscalculating and returning ...
Andrey's user avatar
  • 1,649
0 votes
0 answers
597 views

connect to ingres database from windows

How do I connect to a Ingres DB using SQuirrel SQL Client. I am getting the following exception java.sql.SQLException: Unable to create connection. Check your URL. at net.sourceforge.squirrel_sql....
user3671807's user avatar
1 vote
1 answer
17k views

left join and where condition in joining condition

I am using Ingres 11.0 DB not sure if it will have same behavior on other DB engines ,but here is it SELECT * FROM table1 t1 LEFT JOIN table2 t2 ON t1.id = t2.fk_id WHERE t1.code = 'CODE1' ...
Andrey's user avatar
  • 1,649
0 votes
1 answer
117 views

Connecting to Ingres and Oracle from C

My client given code is programmed in c language to connect to Ingres Database in Unix environment. This code is using API's such DBconnect(), DBExecSQL,DBRollback().... I want to confirm that ...
user566's user avatar
  • 97
0 votes
2 answers
30 views

Counts for different criteria in one row per field

I have the following SQL select c.course_code, c.course_description, ri.defin, rm.defmaybe, ro.defout from applicant a inner join preference p on a.ref_num = p.ref_num and p.institution_code ...
Mia's user avatar
  • 23
1 vote
1 answer
2k views

How can I select a max date from a selection of dates less than another table's max?

Question: How can I select the max(d1_10.dstartdate) (latest unit transfer date) for every xpid (patient ID) from a selection of dates in d1_10 that are less than each xpid's max(d8.start_date) (...
Jackson's user avatar
  • 217
0 votes
1 answer
671 views

Catch sql query result in file shell

I'm trying to capture the output of a sql query launched via script. The script : #!/bin/bash sql articledb <<< "select toppapier from table \g \q" The output: INGRES TERMINAL MONITOR ...
Matieu's user avatar
  • 39
-2 votes
1 answer
103 views

SIMILAR TO predicate ingres 4gl issue

I used this query to get a regular expression with successful results. select * from paso_string where 'AAAAAAAAA' SIMILAR TO columname But, When I use this query into ingres 4GL show me an error ...
JOSE0219's user avatar
0 votes
1 answer
495 views

Using Sql parameters on Ingres Database error

Exception: Local variable/parameter ':your-param-name' can only be used within a database procedure. In MSSQL, the param character is @. In INGRES Database, really is : ? I cannot find official ...
Renato Mestre's user avatar
0 votes
1 answer
3k views

Ingres SQL date difference

I need to find the difference between two dates in minutes. Here is the select statement I have been using: select date ('05.04.2017 11:12:00') - date('now'); It is returning -4 mins -21 secs but ...
Andrey's user avatar
  • 1,649
1 vote
2 answers
3k views

Setting table count to variable in shell script..?

I'm looking to return a numeric value within the "count" variable from my SQL I wrote. Unfortunately I am just getting an Ingres error message. Any ideas what I am doing wrong? See shell script code ...
TCP's user avatar
  • 33
0 votes
1 answer
147 views

Error in Ingeres E_SC0520_SCS_BAD_DBV SCS_INPUT invalid DBV detected:

Please need help! Issuing this problem for couple days cannot understand and find any useful information on how to resolve it I am getting this error when I am trying to run procedure with call from ...
Andrey's user avatar
  • 1,649
0 votes
0 answers
241 views

Ingres appears to have a slow performance for inner joins in a subquery after update from version 10.0 to 10.2

Today a production issue was reported on a large corporate system that I work on whereby an export was taking over 4 hours to run. This export was previously tested on similar or larger amounts of ...
Chris's user avatar
  • 678
0 votes
1 answer
1k views

Unexpected END OF FILE while processing row

Getting the following error when copying an input file into an empty db table. The input file only has 56732 rows, however I am getting an error on row 56733: continue * * * * * * * * * * copy table ...
TCP's user avatar
  • 33
0 votes
2 answers
334 views

bat file executing files against DB from folder

I have Ingres DB and I keep all my procedures files in folder, if i need to rebuild them on DB. There is a lot of procedures which related to eachohter (called one from another), so that mean ai have ...
Andrey's user avatar
  • 1,649
0 votes
1 answer
113 views

Ingres DB error E_PS055B CREATE PROCEDURE

E_PS055B CREATE PROCEDURE: You may not create database procedure 'proc_name' because database procedure 'proc_2' invoked by it is dormant. Any database procedure attempting to invoke a ...
Andrey's user avatar
  • 1,649
0 votes
1 answer
139 views

Extract days covered in contiguous period over multiple rows

I have data in an Ingres 10 table like the below :- ref, from_date, to_date A, 01/04/2016, 30/04/2016 A, 30/04/2016, 20/05/2016 A, 25/05/2016, 30/05/2016 B, 01/04/2016, 01/09/2016 B, 01/10/2016, 20/...
Ben Hamilton's user avatar