Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development
Receive the tools necessary to be the rock star of your field. Our 12-month program teaches you the evolving world of multi-channel marketing as well as the complex issues and opportunities found in the industry.

ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!
Download and Activate to enter!

Web development can be a daunting task, even for specialists. There is a lot of information to absorb and a lot of technologies to learn in order to manage a superior website. When trying to learn the ropes, developers need a reliable source to introduce new ideas that can be easily implemented. When working on large projects, even web veterans may run into a technology or an aspect of a technology that they are unfamiliar with.

Learn More!


Download to Enter
| Contest Rules

Tutorials | Forums

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 20th, 2012, 09:57 PM
skullcanemaker skullcanemaker is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2011
Posts: 1 skullcanemaker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 26 sec
Reputation Power: 0
Help with Oracle SQL*Plus Query assignment

Hey,

I'm currently working on a lab assignment for class.

Assignment is located here:
hal.cs.camosun (dot) bc.ca/~weston/comp155/tyo/Lab3.html

The assignment states to write 3 queries in both the SQL:1999 version and the SQL Traditional (older version)

I didn't read that part, and so I created 3 queries and I don't know which ones are 1999 and which ones are traditional.

I would really appreciate it if someone helps me sort this problem out

So overall I need to have 6 queries in total. 3 for the SQL 1999 version and 3 for the SQL traditional (older) version

1.)

SELECT e.last_name, e.job_id, e.department_id, d.department_name
FROM employees e JOIN departments d
ON (e.department_id = d.department_id)
JOIN locations l
ON (d.location_id = l.location_id)
WHERE LOWER(l.city) = 'toronto';

2.)

SELECT e.last_name, d.department_name
FROM employees e, departments d
WHERE e.department_id = d.department_id AND last_name LIKE 'G%';

3.)

SELECT e.last_name "Employee", e.employee_id "Emp#", m.last_name "Manager", m.employee_id "Mgr#"
FROM employees e INNER JOIN employees m
ON e.manager_id = m.employee_id
AND UPPER(e.last_name) LIKE 'G%';

Thanks

Reply With Quote
  #2  
Old January 27th, 2012, 07:53 AM
debasisdas's Avatar
debasisdas debasisdas is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2007
Location: Bangalore, India
Posts: 243 debasisdas User rank is First Lieutenant (10000 - 20000 Reputation Level)debasisdas User rank is First Lieutenant (10000 - 20000 Reputation Level)debasisdas User rank is First Lieutenant (10000 - 20000 Reputation Level)debasisdas User rank is First Lieutenant (10000 - 20000 Reputation Level)debasisdas User rank is First Lieutenant (10000 - 20000 Reputation Level)debasisdas User rank is First Lieutenant (10000 - 20000 Reputation Level)debasisdas User rank is First Lieutenant (10000 - 20000 Reputation Level)debasisdas User rank is First Lieutenant (10000 - 20000 Reputation Level)  Folding Points: 997423 Folding Title: Super Ultimate Folder - Level 2Folding Points: 997423 Folding Title: Super Ultimate Folder - Level 2Folding Points: 997423 Folding Title: Super Ultimate Folder - Level 2Folding Points: 997423 Folding Title: Super Ultimate Folder - Level 2Folding Points: 997423 Folding Title: Super Ultimate Folder - Level 2Folding Points: 997423 Folding Title: Super Ultimate Folder - Level 2Folding Points: 997423 Folding Title: Super Ultimate Folder - Level 2
Time spent in forums: 1 Month 3 Weeks 4 Days 1 h 45 m 29 sec
Reputation Power: 117
Send a message via ICQ to debasisdas Send a message via AIM to debasisdas Send a message via Skype to debasisdas
You need to understand the difference between ASNI SQL and earlier versions to write all that.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > Help with Oracle SQL*Plus Query assignment


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 10 - Follow our Sitemap