Re: [GENERAL] Urgent! how to delete sequence key from pg_class

2001-03-31 Thread shawn everett
Have you tried drop sequence? On Sat, 31 Mar 2001, Jeff wrote: > Hi, > > I've accidently deleted the file employees.key.seq, however there's still an > entry in pg_class. > > It would not allow me to create employees.key.seq anymore because it thinks > it already exists. > > How can I delete it

[GENERAL] Views

2001-01-22 Thread shawn everett
I was just wondering if using views offered any sort of a performance increase when designing my database. Shawn

Re: [GENERAL] Is this possible or am I on drugs :)

2000-11-27 Thread shawn everett
> What do you consider "passing a parameter to the view" to be? > This is where Microsoft Access has twisted me :) Access as you may or may not know allows you to use parameters in a query: SELECT * FROM table WHERE table.pkey=[Enter The Primary Key]; The bit in [] represents a prompt to the us

Re: [GENERAL] Stupid SQL Question:

2000-11-14 Thread shawn everett
> > or > > SELECT outcome, count(outcome) FROM safety WHERE injdate='2000-11-14' > GROUP BY outcome; > > > > Michael Fork - CCNA - MCP - A+ > Network Support - Toledo Internet Access - Toledo Ohio > > On Tue, 14 Nov 2000, shawn everett wrote: >

[GENERAL] Stupid SQL Question:

2000-11-14 Thread shawn everett
I have a table defined as follows: CREATE TABLE safety ( sid SERIAL, side INTEGER, InjDate DATE, InjType INTEGER, Outcome INTEGER, PRIMARY KEY (sid) ); What I'm trying to generate is a list of all outcomes and how many of each that occured for a pa

[GENERAL] Selecting Random Records

2000-11-07 Thread shawn everett
I have a database of questions and I would like to be able to pull them out randomly from the database using query. I'm thinking of something along the lines of: SELECT random() as RND,question FROM Problems ORDER BY RND; Where random() is a user defined or built in function that returns a ran

Re: [GENERAL] True ACID under linux (no fsync)?

2000-10-31 Thread shawn everett
I may be horriblly out of my element here but, I'm going to jump in anyway :) If you mount a floppy and copy a large file to it, you will get a prompt back fairly quickly. If you type: sync right after The sync command writes everything to the floppy as expected. Shawn On Tue, 31 Oct 2000, ma