Viewing 15 posts - 1 through 15 (of 81 total)
is there a way that I can get the result in a table format like its displayed. I have to send the table in the email.
August 20, 2013 at 5:50 am
It does work!
I am just trying to get my head around it now 😛
never used cross apply before.
August 7, 2013 at 7:32 am
I hope this is right
CREATE TABLE [dbo].[LeaveEntry](
[LeaveId] [int] NOT NULL,
[Name] [varchar](50) NOT NULL,
[LeaveTypeName] [varchar](100) NOT NULL,
[StartDate] [datetime] NULL,
[EndDate] [datetime] NULL,
)
INSERT INTO LeaveEntry VALUES
(1, 'A','OUT','2013-08-12 00:00:00.000','2013-08-14 00:00:00.000'),
(2, 'B','LON','2013-08-13 00:00:00.000','2013-08-14 00:00:00.000'),
(3, 'C','OUT','2013-08-15...
August 7, 2013 at 4:38 am
cool..
Will update the sample data tomoro as I am finishing work now.
Cheers.
August 6, 2013 at 8:22 am
You are right
The sample data is very different.
I just wanted to give a hint ..how the table should look like..its not actual representation of the data..
hope it makes sense? Sorry...
August 6, 2013 at 8:05 am
Sorry
CREATE TABLE [dbo].[LeaveEntry](
[LeaveId] [int] IDENTITY(1,1) NOT NULL,
[Name] [varchar](50) NOT NULL,
[LeaveTypeName] [varchar](100) NOT NULL,
[StartDate] [datetime] NULL,
[EndDate] [datetime] NULL,
)
INSERT INTO LeaveEntry VALUES
(1, 'A','OUT','2013-08-29 00:00:00.000','2013-09-29 00:00:00.000'),
(2, 'B','LON','2013-08-29 00:00:00.000','2013-09-29 00:00:00.000'),
(3, 'C','OUT','2013-08-29 00:00:
August 6, 2013 at 8:03 am
There you go
Just an example how the data should look like
August 6, 2013 at 5:49 am
http://htmledit.squarefree.com/
for the html table
August 6, 2013 at 5:21 am
its cool mate I found an article
http://www.codeproject.com/Articles/20815/Building-Dynamic-SQL-In-a-Stored-Procedure
November 30, 2012 at 6:01 am
d
November 30, 2012 at 5:37 am
Viewing 15 posts - 1 through 15 (of 81 total)