Viewing 5 posts - 91 through 95 (of 95 total)
Nice way to enforce business rules on several tables into one rule.
It is also impossible to make an office active when the region is inactive.
My way would be to use...
August 20, 2012 at 2:16 am
The second Seelct returns "1".
I've answered with the following:
- Insert into table dbo.cuss1 generates an error msg
- Insert into table dbo.cuss2 generates an error msg
- Insert into table dbo.cuss2 does...
September 26, 2011 at 5:05 am
You can use ROW_NUMBER() in a CTE to select the Id's from the first post and filter on the row number.
DECLARE @T TABLE (
...
September 28, 2010 at 5:11 am
Try the following code,
DECLARE @Table_A TABLE (AB_Id nvarchar(5), A_Code nvarchar(5), Unit nvarchar(5), Line_Id int, PK_Id int)
INSERT @Table_A
SELECT 'FC002', '0041', '%', 1, 1
UNION SELECT 'FC002', '0043', '%', 1,...
June 23, 2010 at 3:49 am
Viewing 5 posts - 91 through 95 (of 95 total)