Viewing 15 posts - 4,891 through 4,905 (of 10,144 total)
Is there one payment type which is common to all employees? For instance, 'SAL'? This could be very easy ...
April 9, 2013 at 1:38 am
abhas (4/9/2013)
I will try this.But my actual requirement is to insert this data into table after selecting from front end dropdown. for example if user selects date like 2012/03/23...
April 9, 2013 at 1:35 am
Try this rough and ready method. It's quick and simple to change. If you can make it work then there's a better algorithm described in this excellent article [/url]by Gabriel...
April 9, 2013 at 1:32 am
Use APPLY to construct a value which can then be used in the WHERE clause. This code chunk may well be incorrect - as Orlando's pointed out, some of the...
April 9, 2013 at 1:17 am
Can you post ddl and dml for your source table please? If you're not sure how to do this, have a read of the link in my sig.
April 9, 2013 at 1:03 am
Your transaction log is currently too small to accommodate logging of the changes you are making to your tables in this series of statements.
Check which recovery model are you...
April 8, 2013 at 9:12 am
lanky_doodle (4/8/2013)
WHEREUser_ID = xxxx
AND MONTH(Date) = xxxx
AND (MONTH(GETDATE()) < 12 AND YEAR(Date) = YEAR(GETDATE())
OR...
April 8, 2013 at 9:01 am
SDG1 (4/8/2013)
(0 row(s) affected)
Table '#PivotedSourceTable
The ProjectID field does not seem to be the issue. The PK_Test_ELE_761abed01e1455b5 field that shows up under the key folder (see original post screen...
April 8, 2013 at 8:33 am
How often we see "so how does that work, exactly?" when someone posts an up-to-date solution to their tricky problem. Try explaining this algorithm in the remaining 3 minutes of...
April 8, 2013 at 8:07 am
lanky_doodle (4/8/2013)
So if the current month is Jan-Nov only take dates from this...
April 8, 2013 at 8:03 am
-- run the results into a #temp table and check for dupes:
select
Field1 AS ProjectID, --
Field2 AS ParcelID,
UKEY,
Full_Address as Location,
Field3 as AppStatus,
Field4 as AppStatusDate,
Field5 as [Type],
Field6 AS Category,
[Community Number]...
April 8, 2013 at 7:51 am
-- try using SARGable ranges instead of non-SARGable functions on your columns:
SELECT *
FROM (SELECT ABR_Shift_Date = GETDATE()) abr
CROSS APPLY (
SELECT
ThisyearLower = DATEADD(month,DATEDIFF(MONTH,0,GETDATE()),0), -- 1st April this year
ThisyearUpper = DATEADD(month,2+DATEDIFF(MONTH,0,GETDATE()),0),...
April 8, 2013 at 7:29 am
Does this help?
-- set up some sample data
DROP TABLE #Contracts
CREATE TABLE #Contracts (ID INT IDENTITY, Contract_Description VARCHAR(50), StartDate DATETIME)
DROP TABLE #Sections
CREATE TABLE #Sections (ID INT IDENTITY, Section VARCHAR(50))
DROP TABLE...
April 8, 2013 at 6:26 am
kapil_kk (4/8/2013)
April 8, 2013 at 5:45 am
rodjkidd (4/8/2013)
ChrisM@Work (4/5/2013)
rodjkidd (4/5/2013)
Steve Jones - SSC Editor (4/5/2013)
Cadavre (4/5/2013)
rodjkidd (4/4/2013)
Hotel booked for SQLBits. Almost forgot all about that so a nice refreshing 20 minute walk in the morning!
I'm in...
April 8, 2013 at 5:26 am
Viewing 15 posts - 4,891 through 4,905 (of 10,144 total)