Viewing 8 posts - 1 through 8 (of 8 total)
Thanks a lot sir
It is working for me...
May 10, 2010 at 1:45 pm
Got the solution Guys.
I have done from the SQL Server Management Studio
To enable a foreign key constraint for INSERT and UPDATE statements
1. In Object...
April 25, 2010 at 6:20 pm
1st table is temp table (10X10)
2nd table is Table2 with 5 columns
i need to insert the cell values of 1st table (i.e 100 cells) into 100 rows in 2nd Table....
April 14, 2010 at 10:57 am
in the new table i should insert 100 records
new table has 5 columns
i have the hardcoded values of 1st 4 columns
and the 5th column value should be cell(1,1) of temp...
April 14, 2010 at 10:48 am
I need to select values of each cell from temp table and insert them into other table in a single column one by one
April 14, 2010 at 10:39 am
Thanks for your help
I have solved the problem.
I have assigned your case values to new column and i have sorted using the new column.
Thanks
April 5, 2010 at 4:19 pm
select tid,t.Num from dbo.Table1 t
order by t.tId, CASE
WHEN t.Num = 1 THEN 10
WHEN t.Num = 2 THEN 20
...
April 5, 2010 at 9:59 am
Hi i am using distict in the select statement and i am getting the following error if i use case statement
ORDER BY items must appear in the select list...
April 5, 2010 at 9:45 am
Viewing 8 posts - 1 through 8 (of 8 total)