Viewing 15 posts - 826 through 840 (of 2,007 total)
Jeff Moden (3/5/2012)
Heh... I was pretty sure that it was going to be Cadavre to beat me to this one. Well done. 🙂
😀
How could I have taken this: -
I'm...
March 6, 2012 at 1:39 am
chandarcst (3/5/2012)
Hi,I want to learn sql and tell me the way
Well, personally I am learning T-SQL by reading countless books and sticking around here answering questions posed by others. Often,...
March 6, 2012 at 1:37 am
Using this sample data: -
--Sample table
IF OBJECT_ID('tempdb.dbo.SampleTable', 'U') IS NOT NULL
DROP TABLE tempdb.dbo.SampleTable;
--Sample data
CREATE TABLE dbo.SampleTable (PK INT PRIMARY KEY CLUSTERED, C1 VARCHAR(10), C2 VARCHAR(10), C3 VARCHAR(10), C4 VARCHAR(10), C5...
March 5, 2012 at 8:20 am
chandarcst (3/5/2012)
HiI asked you Send the standard sql tutorial links suppose if you have.
I have no idea what you want me to send you. What "standard sql tutorial" ?
March 5, 2012 at 4:20 am
chandarcst (3/5/2012)
Hi,Thank you So much...
I want to learn sql query So please send the standard tutorial links
Don't really understand what you're asking.
Read more about the cross-tabs technique in Jeff...
March 5, 2012 at 4:10 am
chandarcst (3/4/2012)
Hi,Once Again Thank you So much
I need dynamic. Sometimes it will be more than 3 HRA.
Something like this: -
DECLARE @sql AS NVARCHAR(MAX);
WITH t1(N) AS (SELECT 1 UNION ALL SELECT...
March 5, 2012 at 3:02 am
Not going to comment on the table design, as I'm sure others will mention that it's not exactly "best".
BEGIN TRAN
SELECT CreatedBY, UpdatedBY
INTO TableWO
FROM (VALUES('user1', 'user2'),('user1', 'user1'),('user2', 'user3'))a(CreatedBY, UpdatedBY)
SELECT UpdatedBy, DataType...
March 2, 2012 at 4:55 am
Does it need to be dynamic? Or do you always know that there are no more than 3 HRA ?
I'd use CROSS-TABS instead of PIVOT, as I've found that...
March 2, 2012 at 4:30 am
Hmmmm, seems very very similar to this question from a few days ago.
As in the last post I made on that thread, if the sample data and ddl can be...
March 2, 2012 at 2:46 am
SQLKnowItAll (3/1/2012)
March 2, 2012 at 1:36 am
Thanks Eugene for the data that the OP hasn't provided.
You mentioned a dynamic cross-tab solution, but didn't use a static cross-tab solution and instead hit the table a lot. Any...
March 1, 2012 at 4:45 am
Please read this article --> http://www.sqlservercentral.com/articles/Best+Practices/61537/%5B/url%5D, then post your sample data and DDL in a readily consumable format. Help the unpaid volunteers of this site to help you, and...
March 1, 2012 at 4:23 am
OK, I'll give it a go but I've been told before that my teaching method comes across as abrasive.
First, we want to figure out the counts for each organisationID and...
March 1, 2012 at 4:09 am
Also, read this article --> http://www.sqlservercentral.com/articles/Best+Practices/61537/%5B/url%5D, then setup your sample data and DDL script in a readily consumable format. After you've done that it's much easier to help. ...
March 1, 2012 at 3:38 am
narendra.babu57 (3/1/2012)
The above code is not working for 29,30 th dates for all months
Which above code? Did you use the CLR?
March 1, 2012 at 3:30 am
Viewing 15 posts - 826 through 840 (of 2,007 total)