create view ... (
select month1 as Month from calendar
union all
select month2 as Month from calendar
union all
select month3 as Month from calendar
union all
select month4 as Month from calendar
union all
select month5 as Month from calendar
union all
select month6 as Month from calendar
union all
select month7 as Month from calendar
union all
select month8 as Month from calendar
union all
select month9 as Month from calendar
union all
select month10 as Month from calendar
union all
select month11 as Month from calendar
union all
select month12 as Month from calendar
)
--
Michael Schutte
Admin Professional
Announcing Bob Evans Bob-B-Q® Road Trip! For a limited time, America's best
Bob-B-Q® tastes are all at Bob Evans! For more information, visit
www.bobevans.com/menu/seasonal.aspx
Jeff Young
<cooljeff913@yaho
o.com> To
Sent by: midrange-l@xxxxxxxxxxxx
midrange-l-bounce cc
s@xxxxxxxxxxxx
Subject
Normalize DB record using SQL
06/04/2010 09:39
AM
Please respond to
Midrange Systems
Technical
Discussion
<midrange-l@midra
nge.com>
I have a file with fields for each month of the year, and would like to
create a view that would give me one record for each month using SQL.
Can someone give me an example of how to do this?
Thanks,
Jeff Young
Sr. Programmer Analyst
IBM -e(logo) server Certified Systems Exper - iSeries Technical Solutions
V5R2
IBM Certified Specialist- e(logo) server i5Series Technical Solutions
Designer V5R3
IBM Certified Specialist- e(logo)server i5Series Technical
Solutions Implementer V5R3
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.