VB icon

SQL Demo

Submitted on: 12/21/2018 11:57:05 AM
By: Mike Smith 
Level: Advanced
User Rating: Unrated
Compatibility: SQL Server 2000, SQL Server 7.0, SQL Server 6.5 and earlier, Informix , Oracle, Other
Views: 5889
     This code demonstrates table creation, insertion, and querying.
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
-- Name: SQL Demo
-- Description:This code demonstrates table creation, insertion, and querying.
-- By: Mike Smith

create table emailmessages (
	sender varchar, 
	subject varchar, 
	date date
insert into emailmessages(
	"JimBob jimbob@example.com",
	"Fri Dec 21 06:45:37 EST 2018"
select * from emailmessages order by date asc;

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)

Other User Comments

 There are no comments on this submission.

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)

To post feedback, first please login.