dbTalk Databases Forums  

[Info-Ingres] The sequential view of a union...is this a marriagemade in hell?

comp.databases.ingres comp.databases.ingres


Discuss [Info-Ingres] The sequential view of a union...is this a marriagemade in hell? in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Martin Bowes
 
Posts: n/a

Default [Info-Ingres] The sequential view of a union...is this a marriagemade in hell? - 04-24-2009 , 04:29 AM






Hi Everyone,



Me again, sorry to be a pest...I'm having a great week at the Office.



Try this on Ingres2006R2 or better...



1. createdb bowtest

2. sql bowtest < setup.sql

3. sql bowtest << SQL_END

\r

-- Lets see whats in the view, there should be 11 rows.

select a, b from fleabane_view;

\p\g

-- now populate the table, this should simply add the sequence counter
to

-- each row selected from the view.

insert into test_this(a,b)

select a, b from fleabane_view;

\p\g

-- Trouble is that it doesn't.

-- It seems to have repeated one of the qualifying rows from
fleabane_view

-- ad nauseum rather than use each row in the view.

-- It also got the wrong number of rows. (10 not 11)

select * from test_this;

\p\g

\q

SQL_END



Martin Bowes



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.