Viewing 15 posts - 8,296 through 8,310 (of 10,144 total)
grngarlapati (1/4/2010)
I have a tool in .NET which accepts only views but i have some procedures which returns some result sets but Id is common in all the result set...
January 4, 2010 at 4:43 am
Can you explain the context?
January 4, 2010 at 2:29 am
adaa_2007 (1/4/2010)
i hav 3 tables with no unique column. n i want to insert tjhe record in 3 tables in one insert query...
January 4, 2010 at 2:27 am
abcim (12/23/2009)
Correct
YES
OK, now try running the code I posted a couple of pages earlier. Note that it doesn't do the calculation between the two values yet, but it does show...
December 23, 2009 at 8:12 am
abcim (12/23/2009)
Yes this is very good Point to implement this
Well I'm relieved that we agree on this point because it paves the way to make your query much simpler and...
December 23, 2009 at 7:04 am
Hi Paul
Any chance of setting up some sample data for this? Say 12 rows, with just the columns which are referenced in your queries?
Cheers
ChrisM
December 23, 2009 at 6:54 am
abcim (12/23/2009)
... SELECT Top 1 ReportId FROM...
December 23, 2009 at 6:35 am
abcim (12/23/2009)
What do you mean Function is a poor programming practice?
Good Lord, no - functions can be incredibly useful.
Can you answer this: for any one reportID passed into the sproc...
December 23, 2009 at 6:06 am
oliver.morris (12/23/2009)
use the PIVOT T-SQL
Can you demonstrate how to use the PIVOT T-SQL with an unknown i.e. dynamic column set?
December 23, 2009 at 5:11 am
abcim (12/23/2009)
Sorry this will not work
It's always good to see the OP (original poster) posting up their final solution, it's often a source of learning and discussion. However, I feel...
December 23, 2009 at 4:08 am
Back to basics...
-- 1. Write a query which returns the rows which you want updated from the table you want to update.
SELECT DISTINCT Confirmed, Attended, R.ParticipantID, NameFirst, NameLast, C.ClassID, Title
From...
December 23, 2009 at 3:35 am
SqlUser-369680 (12/23/2009)
Any info on how to sort and rank 4 columns at the same time.
I have 4 columns
Select Salary, TransAllowance, HouseAllw, Cash from Payroll
1st column should be asc - the...
December 23, 2009 at 2:46 am
john.arnott (12/22/2009)
Lynn Pettis (12/22/2009)
(Okay,...
December 23, 2009 at 2:21 am
SELECT pickdate,
rownum,
datediff(day, nextd.pickdate, d.pickdate) AS StatusDays
FROM #DaysinStatus AS d
LEFT JOIN #DaysinStatus AS nextd ON nextd.rownum = d.rownum + 1
December 22, 2009 at 10:20 am
Gosh that was quick. Here's my belated tardy effort:
-- Create a sample tally table
SELECT IDENTITY(int,1,1) as number
INTO #Numbers
from syscolumns
-- Create a sample data table
DROP TABLE #Sample
CREATE TABLE #Sample (SampleValue...
December 22, 2009 at 10:06 am
Viewing 15 posts - 8,296 through 8,310 (of 10,144 total)