If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > Online SQL reference

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-27-05, 15:47
wey97 wey97 is offline
Registered User
 
Join Date: Mar 2003
Posts: 130
Question Online SQL reference

Does anyone know of a quick online SQL reference or a dictionary of terms and sample strings?
Reply With Quote
  #2 (permalink)  
Old 01-27-05, 21:37
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
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
Reply With Quote
  #3 (permalink)  
Old 01-27-05, 22:54
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
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/
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #4 (permalink)  
Old 01-27-05, 22:56
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
for additional SQL references, see my SQL Links 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!!)
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #5 (permalink)  
Old 01-28-05, 00:16
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,605
Quote:
Originally Posted by r937
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
Reply With Quote
  #6 (permalink)  
Old 01-28-05, 08:56
wey97 wey97 is offline
Registered User
 
Join Date: Mar 2003
Posts: 130
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.
Code:
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:
Code:
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.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On