Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
|
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 29th, 2005, 01:03 PM
Registered User
 
Join Date: Nov 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alex350r
Default Newbie in need of help With Select Statement

Hi all, i am having trouble with a select statement.

I have a DVD table, with a field called release_date. i need to select from that the DVD's that have been released for the three weeks following the first tuesday in april(the date must be derived using sql)

i understand it is something like this:

SELECT release_date,next_day(last_day(ADD_MONTHS(release_ date,4))-7,'Tuesday') sofar FROM DVD

I know i need to add a month and subtract 7 days to get 3 weeks but cant get the april bit.

Any help appreciated

Cheers, Alex



 
Old December 1st, 2005, 10:50 AM
Registered User
 
Join Date: Dec 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to gcasewell
Default

Sadly I have no idea as to going about answering that question but Im guessing your from stafford uni doing your DWDS assignment? lol

Im having a little trouble with:
'List the top ten DVDs generating the most income during the last 12 months'

if you could offer any help with that it would be much appriciated.

Cheers






Similar Threads
Thread Thread Starter Forum Replies Last Post
Select Problem - Newbie jackiew SQL Server 2000 3 October 14th, 2008 07:44 PM
Select In Statement mr_pc1963 SQL Server 2005 2 April 19th, 2008 09:59 AM
Select from another select statement to a repeater simsen ASP.NET 2.0 Professional 0 May 2nd, 2007 04:34 PM
Newbie needs help creating Select statement! Mintyman SQL Language 4 November 13th, 2006 01:11 PM
Select Statement jmss66 Oracle 1 May 27th, 2004 02:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.