Viewing 7 posts - 16 through 22 (of 22 total)
some more info on table columns
OrderId, PersonId, Name, Product, Date, SpoonId, Priority
1, 1, AA, AA, 01/01/2012, 2, 1
2, 1, AA, AA, 01/01/2012, 3, 2
3, 2, AB, AA, 01/01/2011, 5, 1
4,...
March 16, 2012 at 3:34 am
Hi I did the following:
The idea is to get all records of possible combinations: Say @Mod1 = AA, @Mod2 = AB, @MOD3 = AC
I have table with columns,...
March 16, 2012 at 3:19 am
CREATE TABLE [dbo].[WorkOrderDetailedReports](
[Id] [float] NULL,
[Status] [nvarchar](255) NULL,
[Description] [nvarchar](255) NULL,
[Category] [nvarchar](255) NULL,
[Workgroup Name] [nvarchar](255) NULL,
[F6] [nvarchar](255) NULL,
[Person Name] [nvarchar](255) NULL,
[Created (Date&Time)] [datetime] NULL,
[Actual Finish (Date&Time)] [datetime] NULL,
[WO Classification] [nvarchar](255) NULL,
[Closure Code]...
March 9, 2012 at 1:52 am
The idea is still same. Join (probably left join) your original table with the category table with condition
on originaltable.category = categorytable.categoryname
you will get id of matching category name. Do...
March 9, 2012 at 1:36 am
Try this, it may contains syntax error. I don't have a context, so this is just a wild idea. We need to optimize this. Try and let me know you...
March 9, 2012 at 12:22 am
By combine you mean combine them as records or columns?
If records you can use UNION ALL. For union all you should have same amount/type/name columns across all select statements. If...
March 8, 2012 at 11:50 pm
You mean this?
create table #tab
(
id int identity(1, 1) not null,
name varchar(10)
)
create table #tab1
(
name varchar(10)
)
insert into #tab values ('A')
insert into #tab values ('B')
insert into #tab values ('C')
insert into #tab values ('D')
insert...
March 8, 2012 at 11:38 pm
Viewing 7 posts - 16 through 22 (of 22 total)