Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > SQL or VBA: Normalizing

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-08-03, 01:19
calstan calstan is offline
Registered User
 
Join Date: Dec 2003
Location: Seattle, WA
Posts: 6
SQL or VBA: Normalizing

If I have a single table with the following fields:

location, date, status, Value1, Value2, Value3, etc.

north Jun1 Y 3 2 2
north Jun1 N 1 1 3
south Jun1 Y 5 2 1
South Jun 1 N 2 1 0
North Jun7 Y 2 3 2
North Jun 7 N 1 1 1


How can I use SQL or code to pull records from this table into a query and/or another table into the following format: by location and by individual Value (numbers represent the count of the values by status each week-entries are made once a week)?

-------
North

Value1

---------- week# 1 2 3 <-Column Headings

Row Head> # Y -- 3 2 etc
Row Head>-#N -- 1 1 etc

Value2

---------- week# 1 2 3 <-Column Headings

Row Head> # Y -- 3 3 etc
Row Head>-#N -- 1 1 etc


Thanks for the help!!!

Last edited by calstan : 12-08-03 at 01:32.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On