Re: how to use a variable into a select?
From: Aaron [SQL Server MVP] (ten.xoc_at_dnartreb.noraa)
Date: 11/08/04
- Next message: Aaron [SQL Server MVP]: "Re: Connection Pooling"
- Previous message: Bob Barrows [MVP]: "Re: recordcount = -1 ??"
- In reply to: Mich: "Re: how to use a variable into a select?"
- Next in thread: RunneR: "Re: how to use a variable into a select?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 8 Nov 2004 10:15:39 -0500
> The table "day" contains 6 fields: 5 fields ("monday", "tuesday"
> ..."friday") and 1 field ("hour"). The field "hour" conatins the opening
> hours of the day ("8.00-9.00", "9.00-10.00" etc till "17.00-18.00").
> The table contains 10 records.
> Each field ("monday", "tuesday" ...) contains for each hour "Yes" or "NO"
> (open or not).
Pardon me for saying so, but this is terrible design, IMHO. If you decide
to open on Saturdays, now you have to add a column to the table? Ugh.
Monday, Tuesday etc. are data, not data descriptors. That data should be in
a single column, not indicated in multiple columns.
A
- Next message: Aaron [SQL Server MVP]: "Re: Connection Pooling"
- Previous message: Bob Barrows [MVP]: "Re: recordcount = -1 ??"
- In reply to: Mich: "Re: how to use a variable into a select?"
- Next in thread: RunneR: "Re: how to use a variable into a select?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|