Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update table from a value

Status
Not open for further replies.

carranz

Technical User
Joined
Nov 17, 2006
Messages
40
Location
US
I have a table that has 6 fields.

One field named DAYS
the others are MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY

Within DAYS field there is 6 spaces. Value in the field would be M on 2nd space. another value would W on the 4th space and a F on the 6th space.

example
M
W
F

I want to read the value from DAYS field if there is a M in the DAYS field put an X in the MONDAY field. IF there is a W in the DAYS field put an X in the WEDNESDAY field sam for FRIDAY.

What would be the best way to do this
any help would be appriciated
 
Can you tell us what you are using this table for? I can't believe that this is the best way to store the information...

Leslie

Anything worth doing is a lot more difficult than it's worth - Unknown Induhvidual

Essential reading for anyone working with databases:
The Fundamentals of Relational Database Design
Understanding SQL Joi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top