Re: [SQL] Creating views

2007-03-09 Thread Richard Huxton
Kashmira Patel (kupatel) wrote: Hi all, Is it possible to create views that take parameters? Basically, I have to create some very complex historical reports, and as of now I am using temporary tables to store intermediate query results. I calculate values based on the content of these temporary

Re: [SQL] Creating Views with Column Names based on Distinct

2003-06-11 Thread Guy Fraser
Hi CREATE VIEW user_stuff ...select comand that displays what you want... ; This might be what you want ?:-) CREATE VIEW user_stuff SELECT username AS "Username",userpassword AS "Pass/Attribute",startdate::TEXT AS "Date/Value" FROM user UNION SELECT user.username,userdetail.attributename,use

Re: [SQL] Creating Views with Column Names based on Distinct

2003-06-09 Thread Frank Bax
At 10:59 AM 6/6/03, Damien Dougan wrote: I was wondering if it is possible to create a table view based on a table which is effectively an "attribute list". For example, suppose I have two tables: CREATE TABLE user ( userid integer, username character varying, userpassword character varying,