Viewing 15 posts - 91 through 105 (of 121 total)
what data you have provided is not sufficient, take some time to follow the link given above to post a question in the forum, and post the proper information.
although i...
September 6, 2011 at 5:00 am
could u post ur DDL and some sample data.
September 6, 2011 at 3:39 am
output :
id(No column name)Employee_No
1Yes125504
2Yes121186
3NO129876
July 28, 2011 at 7:55 am
Hi,
i am not so clear about your requirement.
As per your question, i think this solution may work for you, try it once and let me know
CREATE TABLE #Details_Emp
...
July 28, 2011 at 7:54 am
i just took a chance
create table XYZ(parent_node_id int, child_id int)
insert into XYZ select 0000000000,0000000001
insert into XYZ select 0000000000,0000000124
insert into XYZ select 0000000000,0000007953
insert into XYZ select 0000007953,0000007954
insert into XYZ select...
July 25, 2011 at 12:48 am
Ninja's solution will work , better to use case rather then looping through it. 😎
July 21, 2011 at 2:57 am
as per information given by you,
hope this will work
do let us know if you need something more
CREATE TABLE #temporary(num INT,code_1 VARCHAR(40),code_2 VARCHAR(40))
INSERT INTO #temporary (
num,
code_1,
code_2
) VALUES (
1,...
July 21, 2011 at 2:52 am
declare @TestTable table (
ID int,
EmployeeID int,
Salary varchar(12)
)
insert into @TestTable (
ID,
EmployeeID,
Salary
)
values
(1, 5, '1000'),
(2, 6, '2000'),
(3, 7, '1000'),
(4, 5, '2000'),
(5, 6, '2500')
SELECT tt.* FROM @TestTable tt INNER JOIN (
SELECT MAX(id) id,EmployeeID...
July 21, 2011 at 2:38 am
hope this will work.
Select id, SUM(L_VALUE), SUM(B_VALUE) FROM (SELECT DISTINCT ID, L_VALUE , B_VALUE FROM MYTABLE) t GROUP BY ID
July 14, 2011 at 12:30 am
Hi Suri,
have a look to this link to get idea to create a dynamic pivot query.
July 14, 2011 at 12:27 am
here is a small document which i found very useful for naming convention.
http://www.cms.gov/DBAdmin/downloads/SQLServerStandardsandGuildelines.pdf
July 13, 2011 at 1:16 am
Viewing 15 posts - 91 through 105 (of 121 total)