Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can this be done via SQL?
Message
 
 
To
17/12/1999 09:02:59
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00305211
Message ID:
00305244
Views:
25
Hi Dennis...

It looks like you are filling in records. SQL is about fetching existing data. What you are looking for are cursor-based operations that fabricate/derive the data based on existing data. In this case, it is not so much fabricating data as it is creating records that do not exist.

Nick's suggestion is the way to go, regardless of whether it is VFP data or SQL data. FWIW, you can do the same sorts of cursor operations in T-SQL on SQL-Server...

>I want to take a table that looks like this...
>
>Beg-year End-year Details
>1975 1979 blah,blah,blah
>1981 1984 yak, yak, yak
>
>and turn it into this...
>
>Year Details
>1975 blah,blah,blah
>1976 blah,blah,blah
>1977 blah,blah,blah
>1978 blah,blah,blah
>1979 blah,blah,blah
>1981 yak, yak, yak
>1982 yak, yak, yak
>1983 yak, yak, yak
>1984 yak, yak, yak
>
>Is this possible? Please advise.
>
>THanks.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform