Viewing 15 posts - 5,116 through 5,130 (of 15,381 total)
mcx5000 (4/22/2014)
with SampleData (PERSON, [DATE], [HOURS], [DOW]) as
(
SELECT 1234,'03/31/2014','8.00','Monday'
UNION ALL SELECT 1234,'04/01/2014','8.00','Tuesday'
UNION ALL SELECT 1234,'04/02/2014','9.00','Wednesday'
...
April 22, 2014 at 9:19 am
Hi and welcome to the forums. In order to help we will need a few things:
1. Sample DDL in the form of CREATE TABLE statements
2. Sample data in the form...
April 22, 2014 at 8:56 am
You definitely don't need a loop for this. You can do this using a tally or a calendar table (not totally sure which one fits best). In order to...
April 22, 2014 at 8:32 am
If you use the looping method posted you could change the condition of the where to use some date math so it will stop running by 5pm as you requested.
while...
April 22, 2014 at 8:12 am
Yes you probably need to use a convert in your date portion of that case expression.
April 21, 2014 at 1:22 pm
Honestly I think you should hire a consultant to help you design your system. There are items in your list that contradict each other and many that sound as though...
April 21, 2014 at 12:00 pm
praveen_vejandla (4/21/2014)
A stored procedure may have multiple lines of T-SQL code and one single line of SQL could be taking long time.
Is there any way to identify the starting time...
April 21, 2014 at 9:09 am
hardik.panchal (4/21/2014)
;WITH Sales AS
(
SELECT CostsAllocated ,
CAST(MONTH(BillDate)AS VARCHAR) +'-' +CAST (YEAR(BillDate)AS VARCHAR) AS BillDate
FROM AcFeesHistory...
April 21, 2014 at 7:21 am
kiasystemsoft (4/18/2014)
Thank you dear friendswere dissolved
Glad that you found a solution. It would be nice to know what the actual issue was and what you did to solve it.
April 21, 2014 at 7:17 am
johnnycash (4/18/2014)
I have a contracts table with primary key and an Items table referencing the contract table. The Items table has a PK as well....
April 18, 2014 at 2:20 pm
DDL, sample data and desired output would go a long way to getting you an answer. It is not at all clear what you mean by putting an outer apply...
April 18, 2014 at 2:17 pm
Take a look at this article. http://www.sqlservercentral.com/articles/comma+separated+list/71700/%5B/url%5D
April 18, 2014 at 2:14 pm
duplicate post. Direct replies here. http://www.sqlservercentral.com/Forums/Topic1563159-3077-1.aspx
April 18, 2014 at 2:14 pm
DiabloZA (4/18/2014)
I know it's confusing, I will attempt to explain this as detailed as possible, so on daily basis up to 8 hours are going into REG hours bucket,...
April 18, 2014 at 2:07 pm
mario17 (4/18/2014)
I Just checking a newly deisgned db at my new place, AND see there is NO FK contraints EXISTS FOR many tables, so
you can enter:
INSERT INTO tProdValues...
April 18, 2014 at 12:33 pm
Viewing 15 posts - 5,116 through 5,130 (of 15,381 total)