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

Forums

Hardware

CPUs

Motherboards

Video

Guides

CPU Prices

RAM Prices

Shop



Sharky Extreme : Forums:


Go Back   Sharky Forums > General Hardware/Software > Programming, Coding, and Scripting

Programming, Coding, and Scripting Need help with questions about programming, coding, or scripting? Here's the place to ask for it.

Reply
 
Thread Tools Display Modes
Old 12-29-2005, 01:01 PM   #1
gregdamona
Sushi
 
Join Date: Dec 2005
Posts: 1
sample abe sql question

Here's the sample abe question for 2003. The deadline is December 20th, 2005. Good luck.

PART A
1. Create two databases then list them. Remove one database and keep the second one.
2. Create a table — referred to as Table1 — preferably with a meaning in an application
domain that you are accustomed with, with at least one column of each of the following
types: character/string, integer and date.
3. Insert at least 15 rows in Table1, some of them having NULL values (not all the NULLs in the
table should be in the same column).
4. Delete all the rows form Table1 having at least one NULL.
5. Alter Table1 by renaming and adding new columns. Insert 5 rows in the table.
6. Retrieve values from Table1 via 3 queries with the following specifications:
a. a restriction using a condition on a single field
b. a restriction using a condition on two fields
c. a projection and a restriction using a condition on three fields.
Use each of the logical operators NOT, AND, OR in at least one query.
7. Create a table named Table2 with the same specifications as Table1, but with each field
constrained in a way of your choice. All the constraints should differ from one another.
8. Create a table named Table3 with the following specifications:
a. it has fewer fields than Table2
b. each field in Table3 has one and only one corresponding field in Table2;
“corresponding”, here, means “of the same data type, but possibly of a different
name”.
c. Insert values in Table3 from Table2 via a SELECT statement.
9. Modify rows in Table3 via at least 5 different UPDATE statements.
10. Remove rows from Table3 via at least 3 different DELETE statements.
11. Create two tables —Table4 and Table5 — exactly following the structure of Table3 and
Table2 respectively. Move all the data from Table3 and Table2 into Table4 and Table5
respectively. Then, remove Table2 and Table3.
12. Create a table – Table6 — with the same specification as Table5, but adding the constraint
according to which Table6 cannot have more than 6 rows. What happens if one tries to insert
7 rows, one by one, into this table?

Last edited by gregdamona; 12-29-2005 at 01:03 PM.
gregdamona is offline   Reply With Quote
Reply

Bookmarks
Go Back   Sharky Forums > General Hardware/Software > Programming, Coding, and Scripting


Thread Tools
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 On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 03:07 AM.




Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.