To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here

HOME News MS SQL Oracle DB2 Access MySQL PHP Scripts Books Links DBA Talk


Go Back   Database Journal Forums > Related Sites > SQL Course

SQL Course SQL Course > Ask questions about the lessons on SQL Course 1 and 2. If you have problems > with the interface, please post in the Feedback forum

Reply Post New Thread
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-01-2002, 03:04 AM
vdeegan vdeegan is offline
Junior Member
 
Join Date: Oct 2002
Posts: 2
Question SQL Course Lesson 5

Could someone help me get past lesson 5 of the first SQLCourse.com? I keep
putting in what I feel are the right commands for inserting records, but
keep getting an error, for weeks now.
Here's the code I put:

insert into employee_jvd0515
(first, last, title, age, salary)
values('Jonie', 'Weber', 'Secretary', 28, 19500.00);

The table, with those fields, was successfully created previously.
Help. Thanks.
Vince Deegan
Reply With Quote
  #2  
Old 10-01-2002, 12:28 PM
sclark sclark is offline
Administrator
 
Join Date: Aug 2002
Posts: 21
vdeegan, I just tried it, and it worked, but you must go through the procedures in order...first I created the table thusly:

create table myemployees_jvd0515(firstname varchar(30),
lastname varchar(30),
title varchar(30),
age number(2),
salary number(8,2));

then I inserted the data:

insert into myemployees_jvd0515
(firstname, lastname, title, age, salary)
values ('Jonie', 'Weber',
'Secretary', 28, 19500.00);

No problems at all. Try again using a different table name and you shouldn't have any problems.
Reply With Quote
  #3  
Old 10-03-2002, 04:03 AM
vdeegan vdeegan is offline
Junior Member
 
Join Date: Oct 2002
Posts: 2
I had been creating the table before doing any inserts. I tried it again exactly like you did it, but I'm still getting the same old error message. Don't know why it doesn't work when I do it and why it works when you do it. We're apparently doing the exact same thing. Again, here's my syntax:

create table
employee_vince0515
(first varchar(30),
last varchar(30),
title varchar(30),
age number(2),
salary number(8,2));

Then,

insert into
employee_vince0515
(first,last,title,age,salary)
values
('Jonie','Weber','Secretary',28,19500.00);

I tried it several ways:
1) Did the create in lesson 4 and the insert in lesson 5.
2) Did the create in the first query window of lesson 5 and the insert in the second query window of lesson 5.
3) Did the create followed by the insert as a separate statement, both in the first query window of lesson 5.

Nothing works. Help again. Thanks.
Reply With Quote
  #4  
Old 10-07-2002, 03:36 PM
sclark sclark is offline
Administrator
 
Join Date: Aug 2002
Posts: 21
I'm stumped...I just tried it again, just cutting and pasting from the thread above. I created the table, then populated it, and didn't have any problems. Are you manually typing the text in, or cutting and pasting? You may need to change the table name...
Reply With Quote
Reply Post New Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Forum Jump


All times are GMT -5. The time now is 06:23 PM.


DatabaseJournal Recent Articles


 » Grouping with SQL Server 2008

 » Conducting Service Broker Conversation Usi...

 » SQL Server Consolidation Initiative Under ...

 » Transaction Log Growth, do you need it?

 » New FileMaker Pro 10 Ships With Sleek New ...

Search Database Journal:
 





Acceptable Use Policy

JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.