jayeshp100 Posted November 20, 2005 Share Posted November 20, 2005 List all DVDs released for the three weeks following the first Tuesday in April (where the date is derived using sql)Can some one help me answer this question above how do i find the first tuesday of april then the next three weeks, in SQL Plus Link to comment Share on other sites More sharing options...
vijay Posted November 21, 2005 Share Posted November 21, 2005 Hi, I can tell u LogicFirst u get that Date what ever u wantUse date Add Function According to ur requirementAnd Write query according to ur RequirementIn Every language there is lots of functions related to datesSo... Link to comment Share on other sites More sharing options...
Kcarson Posted November 21, 2005 Share Posted November 21, 2005 jayeshp100, I don't know how to perform this in SQL*Plus like you need, but here are some good resources that might be able to help you out:http://print.google.com/print?q=SQL*Plus+s...lr=&sa=N&tab=wp Link to comment Share on other sites More sharing options...
tisumo Posted December 14, 2005 Share Posted December 14, 2005 i think that you can try this way:select count(dvd_id) from dvd_tablewhere released_date between (select next_day('31-Mar-2005','Tuesday') from dual) and (select next_day('31-Mar-2005','Tuesday')+21 from dual); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now