Does anyone know of a quick online SQL reference or a dictionary of terms and sample strings?A co-worker just introduced me to a good, lightweight SQL site that sounds like what you want. Check out http://sqlzoo.net/howto/source/s.pl.htm and please let me know what you think.
-PatP|||you didn't know about sqlzoo before?
it's got a really nice interactive feature -- you can test your sql in multiple different database systems
great for learning the different sql dialects
there are links to all the different SQL Reference manuals on the home page -- http://sqlzoo.net/|||for additional SQL references, see my SQL Links (http://r937.com/sqllinks.cfm) page
(note to self: man, i gotta check those links and update that page, it's been almost a year, and i have a whole bunch of new ones to add!!)|||you didn't know about sqlzoo before?http://sqlzoo.net/I'm a hard core geek, and I lead a rather sheltered life... What can i say?
-PatP|||Thanks, Pat. That's basically what I was looking for.
I can't seem to find any info. on the query I'm trying...
This is in Access and what I want to do is go through my tables and only keep five records.
DELETE * FROM Table1 WHERE ... NOT IN
(SELECT TOP 5 * FROM Table1)
I realize that's wrong and the only way I can get it to work is to specify key fields from the table:
DELETE * FROM Table1 WHERE key_field NOT IN
(SELECT TOP 5 key_field FROM Table1
ORDER BY key_field)
The problem with that is the key_field is different for every table and I have about 500 tables I need to do this for. I need a more generic way to delete the records so I can reuse the query.
No comments:
Post a Comment