Viewing 15 posts - 661 through 675 (of 2,007 total)
Are you attempting to join your two tables based on the comma deliminated list in "component" and the "process" ?
If so, something like this might help: -
SELECT *
FROM #dailytable daily
INNER...
May 21, 2012 at 5:16 am
dwain.c (5/21/2012)
I'd do it with a subquery because it looks easier on the eyes.
DECLARE @t TABLE (Col1 char(1), Col2 int )
Insert Into...
May 21, 2012 at 2:50 am
vinu512 (5/21/2012)
May 21, 2012 at 1:31 am
I wish you'd posted this this in the scripts area so it could be voted upon. . .
May 17, 2012 at 8:10 am
vickys (5/16/2012)
Thanks for this, it seems like I am going somewhere now with this way.. and yes it is not simple to use pivot with this.. btw I think...
May 16, 2012 at 9:30 am
Hmmm, it's not quite as simple as a pivot I think.
Try this: -
SELECT [PatientID], [PatientName], [Time1] AS [Time], [Measurementtype=1Value], [Time2] AS [Time],
[Measurementtype=2Value], [Time3] AS [Time], [Measurementtype=3Value], [Time4] AS [Time],
[Measurementtype=4Value]
FROM...
May 16, 2012 at 8:42 am
--edit-- Fixed a bug 😛
DECLARE @Table TABLE (iD INT, AttrVal1 VARCHAR(100));
INSERT INTO @Table
SELECT...
May 15, 2012 at 8:15 am
Thanks for the explanation Solomon, I haven't forgotten but I'm quite busy at the moment. I intend to attempt to convert your more complicated RegEx into T-SQL, but I...
May 15, 2012 at 7:27 am
mmurawski (5/15/2012)
The following select statement returns over 3000 rows:
SELECT EMPL_UNO, MONTH, PERIOD, BILLABLE_HRS, NONBILL_HRS, ACCOUNTABLE_HRS,
BILLABLE_AMT, NONBILL_AMT, ACCOUNTABLE_AMT, RECEIPT_AMT, LAST_MODIFIED
FROM _TBM_Persnl_Bud_Update
I'm really not certain why they used a Cursor...
May 15, 2012 at 7:16 am
Without seeing at the very least DDL for the structure of the tables (and if you want to be given a coded example then sample data and expected results) it's...
May 15, 2012 at 7:15 am
First things first, how many rows does this return?
SELECT EMPL_UNO, MONTH, PERIOD, BILLABLE_HRS, NONBILL_HRS, ACCOUNTABLE_HRS,
BILLABLE_AMT, NONBILL_AMT, ACCOUNTABLE_AMT, RECEIPT_AMT, LAST_MODIFIED
FROM _TBM_Persnl_Bud_Update;
If it's 0, then that's your problem as it is...
May 15, 2012 at 7:04 am
Eugene Elutin (5/10/2012)
What have I changed? :
1. I do place comma into start of line - it helps when...
May 10, 2012 at 4:32 am
patelronaks1983 (5/9/2012)
hi SSCommitted.I am new in SQL server. i am not much familiar with code. can u explain me the code please ?
Thanks,
Ronak
"SSCommitted" is a title, not a username....
May 10, 2012 at 3:38 am
Solomon Rutzky (5/9/2012)
May 10, 2012 at 1:54 am
Viewing 15 posts - 661 through 675 (of 2,007 total)