?
Solved

recurring sequences

Posted on 2009-03-30
6
Medium Priority
?
375 Views
Last Modified: 2013-12-18
folks

i have a sequence on plans

item      interval
plan1      1
plan2      3
plan3      5

the interval shows after which turn the plan is to be performed, for example a car service
,i would like to to display the output in its sequence, plan2 will occur on the 3rd time when the service is due and plan 3 the 5th time is due like so

plan1
plan1
plan2
plan1
plan3
plan1
plan1
plan2
plan1
plan3

how do i build this in a query?

0
Comment
Question by:rutgermons
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 32

Expert Comment

by:awking00
ID: 24019536
Do you want the results in a table or just as the results of a select statement? How far do you want these sequences to go and what might determine that?
0
 

Author Comment

by:rutgermons
ID: 24019796
well id l,ike to have input the amount of times i want to output it as a variable

,just the results in a select will be great thanks

im assume a mod function could assist this feature
0
 

Author Comment

by:rutgermons
ID: 24026455
any feedback on this?

tia

roger
0
Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

 
LVL 32

Accepted Solution

by:
awking00 earned 2000 total points
ID: 24029722
See attached. This one wasn't easy.
plans.txt
0
 

Author Comment

by:rutgermons
ID: 24030777
super,thank u
0
 
LVL 32

Expert Comment

by:awking00
ID: 24031104
You're quite welcome.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question