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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

puzzlezzz

Status
Not open for further replies.

FALCONSEYE

Programmer
Jul 30, 2004
1,158
US
I have the following tbl:

FRI MON SAT SUN
9am-9pm 9am-9pm 9am-9pm 10am-6pm
THU TUE WED
9am-9pm 9am-9pm 9am-9pm

I am trying to group the similar hours together so that the output will look like :
Mon-Sat 9am-9pm
Sun 10am-6pm

kind of stuck. any help?

 
FalconsEye,

What is the structure of the table, it is very hard to tell from how the data is show on the screen.

Please let us know.

Thanks,
Patrick
 
sorry :

CREATE TABLE [dbo].[bTesty](
[mon] [varchar](50) NULL,
[tue] [varchar](50) NULL,
[wed] [varchar](50) NULL,
[thu] [varchar](50) NULL,
[fri] [varchar](50) NULL,
[sat] [varchar](50) NULL,
[sun] [varchar](50) NULL
) ON [PRIMARY]

GO

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top