Viewing 15 posts - 91 through 105 (of 110 total)
Can it be assumed that [emp_no + emp_date] will make all records unique?
May 23, 2007 at 1:52 am
How to decide which record becomes the first set of (emp_status, emp_time) and which bocomes the 2nd?
Which field(s) makes the unique key of sample data?
May 23, 2007 at 1:33 am
Try
DECLARE @T TABLE (Invoice char(5), Item char(3), Quantity int)
INSERT INTO @T VALUES ('A1234', 'ABC', 5)
INSERT INTO @T VALUES ('A1234', 'MMM', 9)
INSERT INTO @T VALUES ('A1234', 'XYZ', 3)
DECLARE @N TABLE (N...
May 18, 2007 at 10:13 pm
Change
SELECT Level, PkID, Name FROM @Result ORDER BY Sequence
to
SELECT Level, GroupID, Name FROM @Result ORDER BY Sequence
K. Matsumura
May 14, 2007 at 9:00 pm
Try
DECLARE @a TABLE ([DateTime] datetime, [Order] int, Post int, Lot int, Temp1 int)
DECLARE @b-2 TABLE (StartDate datetime, EndDate datetime, [Order] int, Post int, Lot int, Stat...
May 14, 2007 at 2:22 am
How about something like:
DECLARE @Group TABLE (PkID int NOT NULL, Name varchar (30) NULL, Type int NULL, GroupID int NULL)
DECLARE @product TABLE (PkID int NOT NULL, Name varchar...
May 14, 2007 at 1:05 am
Hi, Jeff,
I would like to study on "triangular join."
Would you point me to right direction?
Where can get some information?
April 17, 2007 at 10:57 pm
UPDATE A
SET A.SortOrder =
(SELECT COUNT(*) FROM tbl_Names Z WHERE Z.SortOrder <= A.SortOrder)
FROM tbl_Names A
April 17, 2007 at 7:31 pm
Generating script and running it does not copy any data.
It creates everything but all tables have no records.
April 17, 2007 at 2:06 am
SELECT * FROM Product A
LEFT OUTER JOIN Details B
ON B.[???] = A.[???]
[???] should be the fields linking two tables.
If all records in Product have records in Details
or
You don't have to...
April 16, 2007 at 8:01 pm
What do you mean by "Tree View" and "Report Format?"
April 16, 2007 at 6:39 pm
Try
insert into table1
(
report_date,
employee
)
select rpt_dt, (select emp from employees where emp = id)
from reports where rpt_dt = somevalue
April 11, 2007 at 6:42 pm
Viewing 15 posts - 91 through 105 (of 110 total)