T-SQL how to count holidays and exclude it in my scenario

Hi team, 
My customer will submit a ticket to our system and it valid for 7 days. For example, if customer A submit a ticket on 2015/1/15, the request will be ineffective at 2015/1/22. So, I can directly use the following
T-SQL code to update the ticket status: 
update customer_ticket set ticket_status="Cancle"
where ticket_submit_time < getdate() - 7
But, if 2015/1/19,2015/1/20,2015/1/21 are holidays, the ticket valid time should extend 3 days, it means the ticket of customer A will be ineffective at 2015/1/25. How can I count the holidays and then extend the valid time of ticket automatically? 
I have a table to store our holidays, here are the sample data: 
CREATE TABLE QC_OVERTIME_SCHEDULE
SCHEDULE_DATE DATE,
IS_INCLUDED VARCHAR(10),
UPDATE_TIME DATE,
MEMO VARCHAR(250)
INSERT [dbo].[QC_OVERTIME_SCHEDULE] ([SCHEDULE_DATE], [IS_INCLUDED], [UPDATE_TIME], [MEMO]) VALUES (CAST(N'2015-01-19' AS Date), N'0', CAST(N'2015-01-15' AS Date), N'Holiday')
INSERT [dbo].[QC_OVERTIME_SCHEDULE] ([SCHEDULE_DATE], [IS_INCLUDED], [UPDATE_TIME], [MEMO]) VALUES (CAST(N'2015-01-20' AS Date), N'0', CAST(N'2015-01-15' AS Date), N'Holiday')
INSERT [dbo].[QC_OVERTIME_SCHEDULE] ([SCHEDULE_DATE], [IS_INCLUDED], [UPDATE_TIME], [MEMO]) VALUES (CAST(N'2015-01-21' AS Date), N'0', CAST(N'2015-01-15' AS Date), N'Holiday')
Please let me know if you have any ideas, thanks!
Serena,

Hi Serana,
You may reference the below as well. The expiring date of each ticket can be calculated based on the calendar table and the tickets whose expiring date >= GETDATE() will be updated as 'Cancle'.
CREATE TABLE QC_OVERTIME_SCHEDULE
SCHEDULE_DATE DATE,
UPDATE_TIME DATE,
IsWorkday BIT
INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150109' AS Date), CAST(N'20150115' AS Date), 0)
INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150110' AS Date), CAST(N'20150115' AS Date), 0)
INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150111' AS Date), CAST(N'20150115' AS Date), 0)
INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150112' AS Date), CAST(N'20150115' AS Date), 0)
INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150113' AS Date), CAST(N'20150115' AS Date), 0)
INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150114' AS Date), CAST(N'20150115' AS Date), 0)
INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150115' AS Date), CAST(N'20150115' AS Date), 0)
INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150116' AS Date), CAST(N'20150115' AS Date), 0)
INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150117' AS Date), CAST(N'20150115' AS Date), 0)
INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150118' AS Date), CAST(N'20150115' AS Date), 0)
INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150119' AS Date), CAST(N'20150115' AS Date), 1)
INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150120' AS Date), CAST(N'20150115' AS Date), 1)
INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150121' AS Date), CAST(N'20150115' AS Date), 1)
INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150122' AS Date), CAST(N'20150115' AS Date), 0)
INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150123' AS Date), CAST(N'20150115' AS Date), 0)
INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150124' AS Date), CAST(N'20150115' AS Date), 0)
INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150125' AS Date), CAST(N'20150115' AS Date), 0)
INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150126' AS Date), CAST(N'20150115' AS Date), 0)
INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150127' AS Date), CAST(N'20150115' AS Date), 0)
INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150128' AS Date), CAST(N'20150115' AS Date), 0)
INSERT [dbo].[QC_OVERTIME_SCHEDULE] VALUES (CAST(N'20150129' AS Date), CAST(N'20150115' AS Date), 0)
--DROP TABLE QC_OVERTIME_SCHEDULE,customer_ticket
CREATE TABLE customer_ticket
(id INT,
ticket_submit_time DATE,
status_change_date DATE,
ticket_status VARCHAR(10));
INSERT INTO customer_ticket VALUES (1,'20150109',NULL,'Open');
INSERT INTO customer_ticket VALUES (1,'20150115',NULL,'Open');
INSERT INTO customer_ticket VALUES (1,'20150118',NULL,'''Open');
INSERT INTO customer_ticket VALUES (1,'20150122',NULL,'Open');
SELECT * FROM [QC_OVERTIME_SCHEDULE]
SELECT * FROM customer_ticket
;WITH cte AS
SELECT c.id, c.ticket_submit_time, c.status_change_date,c.ticket_status, t.SCHEDULE_DATE AS expireDate FROM customer_ticket c
CROSS APPLY
(SELECT SCHEDULE_DATE FROM (SELECT SCHEDULE_DATE,ROW_NUMBER() OVER(ORDER BY SCHEDULE_DATE) as rn FROM QC_OVERTIME_SCHEDULE WHERE SCHEDULE_DATE>=C.ticket_submit_time AND IsWorkday=0) as tb WHERE RN=8 ) AS t
UPDATE cte SET status_change_date=GETDATE(),ticket_status='Cancle'
WHERE expireDate<=GETDATE()
If you have any question, feel free to let me know.
Eric Zhang
TechNet Community Support

Similar Messages

  • How to use IDOC and RFC adapter in 1 scenario?

    We have AAA field and BBB field and we want to send AAA field to receiver sap system using IDOC adapter and BBB field to receiver sap system using RFC adapter. But how to use IDOC and RFC adapter in 1 scenario and how to map and  what are the design and configuration objects we require to create?

    To achieve this you have to use
    Two Interface Determinations
    Two Communication Channels (IDOC & RFC)
    & Two Receiver Aggrements.
    Use the Enhanced Interface determination and give your conditions there. Based on you condition your interface mapping will be triggered and data will be sent to IDOC & RFC respectively.

  • How to count subforms and add a value to a dropdown?

    Hello!
    I want to make a form with a subform that the user can dublicate by clicking a button (JS: ... addInstance(1);)
    after he dublicates the subform serval times and entered some text in the fields i wanto to count the subforms and go in every subform to get a value from a field.
    Example:
    A form with a subform for Firstname and Lastname.
    the user dublicates the subform 5 times and filled the fields.
    now at the end i want to have a dropdown with all Lastnames from the 5 subforms.
    How can i make this? I looked in serval Samples but i dont find an example for it.
    Thanks for Help.
    Greetings A. Peters

    Hello Stefan!
    Thanks for your good example. It works really good. But when i opened it in the Designer and saves it under a new Name i get some warnings is that normal?
    Here a copy from the log:
    Ungültiger Node-Typ: macroCache
    Ungültiger Node-Typ: macroCache
    PDF-Dokument generieren...
    Skript fehlgeschlagen (Sprache ist javascript; Kontext ist xfa[0].form[0].form1[0].Page1Subform[0].TotalSubform[0].NameDropList[0])
    Skript=var sCurValue = this.rawValue; // save current value before we clear all the items
    var bResetValue = false; // true if sCurValue should remain the list's value
    this.clearItems();
    for (var i = 0; i < Page1Subform._NameSubform.count; i++)
    var oNameSFInstance = Page1Subform.resolveNode("NameSubform[" + i + "]");
    if (oNameSFInstance.FirstName.rawValue != null && oNameSFInstance.LastName.rawValue != null)
    if (!bResetValue && (sCurValue == oNameSFInstance.LastName.rawValue))
    bResetValue = true;
    // fields have been filled
    this.addItem(oNameSFInstance.FirstName.rawValue, oNameSFInstance.LastName.rawValue); // first name is the text, last name is the value
    if (bResetValue)
    this.rawValue = sCurValue;
    Fehler: Ungültiger Abruf-Vorgang für Eigenschaft; instanceManager hat keine Eigenschaft 'count'
    PDF erfolgreich generiert.
    Ungültiger Node-Typ: macroCache
    PDF-Dokument generieren...
    Skript fehlgeschlagen (Sprache ist javascript; Kontext ist xfa[0].form[0].form1[0].Page1Subform[0].TotalSubform[0].NameDropList[0])
    Skript=var sCurValue = this.rawValue; // save current value before we clear all the items
    var bResetValue = false; // true if sCurValue should remain the list's value
    this.clearItems();
    for (var i = 0; i < Page1Subform._NameSubform.count; i++)
    var oNameSFInstance = Page1Subform.resolveNode("NameSubform[" + i + "]");
    if (oNameSFInstance.FirstName.rawValue != null && oNameSFInstance.LastName.rawValue != null)
    if (!bResetValue && (sCurValue == oNameSFInstance.LastName.rawValue))
    bResetValue = true;
    // fields have been filled
    this.addItem(oNameSFInstance.FirstName.rawValue, oNameSFInstance.LastName.rawValue); // first name is the text, last name is the value
    if (bResetValue)
    this.rawValue = sCurValue;
    Fehler: Ungültiger Abruf-Vorgang für Eigenschaft; instanceManager hat keine Eigenschaft 'count'
    PDF erfolgreich generiert.
    Ungültiger Node-Typ: macroCache
    PDF-Dokument generieren...
    Skript fehlgeschlagen (Sprache ist javascript; Kontext ist xfa[0].form[0].form1[0].Page1Subform[0].TotalSubform[0].NameDropList[0])
    Skript=var sCurValue = this.rawValue; // save current value before we clear all the items
    var bResetValue = false; // true if sCurValue should remain the list's value
    this.clearItems();
    for (var i = 0; i < Page1Subform._NameSubform.count; i++)
    var oNameSFInstance = Page1Subform.resolveNode("NameSubform[" + i + "]");
    if (oNameSFInstance.FirstName.rawValue != null && oNameSFInstance.LastName.rawValue != null)
    if (!bResetValue && (sCurValue == oNameSFInstance.LastName.rawValue))
    bResetValue = true;
    // fields have been filled
    this.addItem(oNameSFInstance.FirstName.rawValue, oNameSFInstance.LastName.rawValue); // first name is the text, last name is the value
    if (bResetValue)
    this.rawValue = sCurValue;
    Fehler: Ungültiger Abruf-Vorgang für Eigenschaft; instanceManager hat keine Eigenschaft 'count'
    PDF erfolgreich generiert.
    7 Warnungen/Fehler gemeldet.

  • How to count Sick and Casual (Paid absences) from Annual, Sick and Casual

    Dear All,
    I have 3 types of paid leaves, Annual, Sick and Casual. I want to know, at the time of running of payroll, how many Sick and Casual leave an employee has availed during the current payroll cycle. Can some one tell me how this can be done?
    Regards to all.

    Both the Sick and Casual Leaves are comming in my RT as MT10 and MT20 but in there number variable its returning number of hours not worked. Is it possible to change it to number of days unworked?

  • FM to exclude holidays and weekends and count days in Leave period

    Hi Friends,
    My requirement is to count no of days leave applied !!
    Which should exclude Holidays and weekends and count only business days..
    I.E. per week onlyt 5 working days!!
    Is there any FM to do so Becasue this exlcuding holidays not happens manually...
    Thanks in advance...
    Regards
    sas

    Hi Dilek Please can you send the screen shots of those
    Just put HRworkdays F4 and can you send the screen shots of those please!!!Which will help to show to my client !!
    MY id is in businees card please take it as per rules i cant type ....Thanks in advance!!
    Regards
    sas
    Edited by: saslove sap on Sep 8, 2009 8:32 AM
    I have check with other client systems of ECC 6.0  there is no FM of you provided !! Intresting !!
    Any one any other idea to achieve the same please provide!!
    Regards
    sas
    Edited by: saslove sap on Sep 8, 2009 9:45 AM
    Edited by: saslove sap on Sep 8, 2009 10:04 AM

  • How to maintain previous and record count in audit table in SQL Server 2008 r2?

    Hi Experts ,
     Situation :
    in our database we are having few of stored procedures which will drop and recreates the tables and it is scheduled on weekly basis. when this job will run all the stored procedures will drop all the tables and recreate. Now we need to create one table which
    will maintain history of the records.
    my table structure is listed below
    TableName CurrentReocrdCount CurrentExecutionDate PreviousReordCount PreviousExurtiondate
    TEST         1000                   2014-03-30            NULL        NULL
    Test         1500                   2014-04-10            1000      2014-03-30
    Test         2000                   2014-04-11            1500      2014-04-10 
    How do i achive this . 
    franklinsentil

    You need to create audit tables for these. The table will be populated by COUNT value inside stored procedure. Each time it clears the main table and fills new data and also logs count details to audit tables. You can use COUNT(*)  to get count value
    and GETDATE function to get current execution value.
    So proc will look like
    CREATE PROC procname
    @param....
    AS
    --step to drop existing table
    IF OBJECT_ID('tablename') IS NOT NULL
    DROP TABLE <table name>
    --step to fill new table
    SELECT ...
    INTO TableName
    FROM
    --Audit table fill step
    INSERT AuditTable (TableName,CurrentRecordCount,CurrentExecdate,PrevRecordCount,PrevExecDate)
    SELECT TOP 1 'TableName',(SELECT COUNT(*) FROM tableName),GETDATE(),CurrentRecordCount,CurrentExecDate
    FROM AuditTable
    ORDER BY CurrentExecDate DESC
    UNION ALL
    SELECT 'TableName',(SELECT COUNT(*) FROM tableName),NULL,NULL
    WHERE NOT EXISTS (SELECT 1 FROM AuditTable)
    GO
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • [SQL] how can i get this result....??(accumulation distinct count)

    [SQL] how can i get this result....??(accumulation distinct count)
    Hi everybody,
    pls tell me how can it possible to get result?
    ### sample data
    date visitor
    10-01 A
    10-01 A
    10-01 B
    10-01 B
    10-01 C
    10-01 C
    10-02 A
    10-02 C
    10-02 C
    10-02 D
    10-02 D
    10-03 B
    10-03 B
    10-03 B
    10-03 A
    10-03 A
    10-03 F
    10-04 A
    10-04 A
    10-04 F
    result that i want...like this.
    date date_unqiue_visitors acc_date_unique_visitors
    10-01 3 3
    10-02 3 4
    10-03 3 5
    10-04 2 5
    date distinct visitors : count(distinct visitor)
    but how can i get accumulation distinct visitor count???
    Thanks to every body..

    SQL> select dt,cnt,sum(cnt1) over(order by dt) cnt1
      2  from(
      3  select dt,count(distinct visitor) cnt,sum(flg) cnt1
      4  from
      5   (select dt,visitor,(select decode(count(*),0,1,0)
      6                           from test
      7                           where rowid < t.rowid
      8                           and visitor = t.visitor) flg
      9   from test t)
    10  group by dt);
    DT                CNT       CNT1
    10-01               3          3
    10-02               3          4
    10-03               3          5
    10-04               2          5
    Message was edited by:
            jeneesh
    Wrong...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to write sql query for counting pairs from below table??

    Below is my SQL table structure.
    user_id | Name | join_side | left_leg | right_leg | Parent_id
    100001 Tinku Left 100002 100003 0
    100002 Harish Left 100004 100005 100001
    100003 Gorav Right 100006 100007 100001
    100004 Prince Left 100008 NULL 100002
    100005 Ajay Right NULL NULL 100002
    100006 Simran Left NULL NULL 100003
    100007 Raman Right NULL NULL 100003
    100008 Vijay Left NULL NULL 100004
    It is a binary table structure.. Every user has to add two per id under him, one is left_leg and second is right_leg... Parent_id is under which user current user is added.. Hope you will be understand..
    I have to write sql query for counting pairs under id "100001". i know there will be important role of parent_id for counting pairs. * what is pair( suppose if any user contains  both left_leg and right_leg id, then it is called pair.)
    I know there are three pairs under id "100001" :-
    1.  100002 and 100003
    2.  100004 and 100005
    3.  100006 and 100007
        100008 will not be counted as pair because it does not have right leg..
     But i dont know how to write sql query for this... Any help will be appreciated... This is my college project... And tommorow is the last date of submission.... Hope anyone will help me...
    Suppose i have to count pair for id '100002'. Then there is only one pair under id '100002'. i.e 100004 and 100005

    Sounds like this to me
    DECLARE @ID int
    SET @ID = 100001--your passed value
    SELECT left_leg,right_leg
    FROM table
    WHERE (user_id = @ID
    OR parent_id = @ID)
    AND left_leg IS NOT NULL
    AND right_leg IS NOT NULL
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Date difference function that returns minutes between two dates and excludes weekends and holidays

    Is there a way to get this to work as a function? 
    Currently returns error "Select statements included within a function cannot return data to a client"
    CREATE FUNCTION [dbo].[WorkDays](@DateFrom datetime,@DateTo datetime)
    RETURNS int
    AS
    BEGIN
    --Working time
    DECLARE @WTFrom TIME = '8:00AM';
    DECLARE @WTTo TIME = '5:00PM';
    DECLARE @minCount BIGINT
    --Date ranges
    IF (DATEDIFF(HOUR, @DateFrom, @DateTo) > 12)
    BEGIN
    WITH CTE AS
    SELECT @DateFrom AS DateVal
    UNION ALL
    SELECT DATEADD(HOUR, 1, DateVal)
    FROM CTE
    WHERE DateVal < DATEADD(HOUR, -1,@DateTo)
    SELECT DATEDIFF(minute, MIN(CTE.DateVal), MAX(CTE.DateVal))
    FROM CTE
    WHERE (CAST(CTE.DateVal AS time) > @WTFrom AND CAST(CTE.DateVal AS time) < @WTTo) AND DATEPART(dw, CTE.DateVal) NOT IN (1, 7) AND NOT EXISTS (SELECT * FROM Holiday AS H WHERE H.holiday = CTE.DateVal)
    OPTION (MAXRECURSION 0);
    END;
    ELSE
    BEGIN
    WITH CTE AS
    SELECT @DateFrom AS DateVal
    UNION ALL
    SELECT DATEADD(MINUTE, 1, DateVal)
    FROM CTE
    WHERE DateVal < DATEADD(MINUTE, -1,@DateTo)
    SELECT DATEDIFF(minute, MIN(CTE.DateVal), MAX(CTE.DateVal))
    FROM CTE
    WHERE (CAST(CTE.DateVal AS time) > @WTFrom AND CAST(CTE.DateVal AS time) < @WTTo) AND DATEPART(dw, CTE.DateVal) NOT IN (1, 7) AND NOT EXISTS (SELECT * FROM Holiday AS H WHERE H.holiday = CTE.DateVal)
    OPTION (MAXRECURSION 0);
    END;
    END
    Thanks for your help.

    Please post DDL, so that people do not have to guess what the keys, constraints, Declarative Referential Integrity, data types, etc. in your schema are. Learn how to follow ISO-11179 data element naming conventions and formatting rules (you do not). Temporal
    data should use ISO-8601 formats (you do not!). Code should be in Standard SQL as much as possible and not local dialect. 
    This is minimal polite behavior on SQL forums. 
    We hate functions in SQL. This is a declarative language and you are using it like 1950's FORTRAN. We hate local variables (more FORTRAN!)
     The name of a function has to be either a known, common name, like “sine”, “cosine” etc. Or it is “<verb>_<object>”; you think a noun is a verb! Do you really need BIGINT? Why did you invite garbage data with it? Why do you think that SQL
    uses AM/PM? Have you never seen the TIME data type? 
    Think about “date_val” as a data element name. A date is a unit of temporal measurement on a calendar scale. This would be a “<something>_date” in a valid schema. 
    >> Is there a way to get this to work as a function? <<
    Probably, but why do it wrong?
    Build a calendar table with one column for the calendar data and other columns to show whatever your business needs in the way of temporal information. Do not try to calculate holidays in SQL -- Easter alone requires too much math.
    The julian_business_nbr is how SQL people do this. Here is the skeleton. 
    CREATE TABLE Calendar
    (cal_date DATE NOT NULL PRIMARY KEY, 
     julian_business_nbr INTEGER NOT NULL, 
    Here is how it works:
    INSERT INTO Calendar 
    VALUES ('2007-04-05', 42), 
     ('2007-04-06', 43), -- Good Friday 
     ('2007-04-07', 43), 
     ('2007-04-08', 43), -- Easter Sunday 
     ('2007-04-09', 44), 
     ('2007-04-10', 45); --Tuesday
    To compute the business days from Thursday of this sample week to next Tuesday:
    SELECT (C2.julian_business_nbr - C1.julian_business_nbr)
      FROM Calendar AS C1, Calendar AS C2
     WHERE C1.cal_date = '2007-04-05',
       AND C2.cal_date = '2007-04-10'; 
    See how simple it can be when you stop trying to write FORTRAN and think in sets? 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • How to Plot number and string in one row (data logger counter) ?

    hi all i made data log quantity using Digital Counter via modbus to monitoring quantity and reject that has and Name Operator, Machine and Part Number.
    i have problem about plot the number & string in one row, as shown on the picture below :
    how to move that string on one row ? i attach my vi.
    Thanks~
    Attachments:
    MODBUS LIB Counter.vi ‏39 KB

    Duplicate and answered - http://forums.ni.com/t5/LabVIEW/How-to-Plot-number-and-string-in-one-row-data-logger-counter-via/m-p...

  • How to count Sent SMS in E63 and other E series No...

    Hi... 
    How to count Sent SMS in E63 and other E series Nokia phone
    I tried some software but they are not made for E63 or else its need to purchase.
    Expecting solution. 

    In Menu-> log you can filter your messages for counting. You can export the log to e.g. Excel on PC with LogExport.
    http://tinyhack.com/freewarelist/s603rd/2007/03/02/logexport/
    ‡Thank you for hitting the Blue/Green Star button‡
    N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009

  • I have just returned from holiday and reset my phone to icloud having been informed I wouldn't lose any iformation.  I have lost all my holiday photos.  Does anyone know how to retrieve these please?

    I have just returned home from holiday and reset my phone to icloud (having said it wouldn't lose any information) I now find that I appear to have lost all my holiday photos.  Has anyone got an idea how to retrieve them?

    If you've enabled PhotoStream, you should be able to find photos there. Otherwise, you are SOL.

  • I am getting many days Called US holidays that are not US holidays and ones I do not celebrate.  How can I manage this list of days

    I am getting many days showing up in the US holiday Ca;endar that are not US holidays and days that I do not celebrate.  How can I manage this list

    You could also go through your messages app and see if you have videos or photos in there. Delete unwanted emails and empty the trash in each account. If you are trying to update over wifi try doing it by plugging into iTunes.
    If you need more space for an iOS update - Apple Support

  • Going on holidays and will not have wifi how to I get all the music I want off the cloud and on to my iphone?

    Going on holidays and will not have wifi how to I get all the music I want off the cloud and on to my iphone?

    Without going through my 21,000 songs and manually selecting.

  • How does Index fragmentation and statistics affect the sql query performance

    Hi,
    How does Index fragmentation and statistics affect the sql query performance
    Thanks
    Shashikala
    Shashikala

    How does Index fragmentation and statistics affect the sql query performance
    Very simple answer, outdated statistics will lead optimizer to create bad plans which in turn will require more resources and this will impact performance. If index is fragmented ( mainly clustered index,holds true for Non clustred as well) time spent in finding
    the value will be more as query would have to search fragmented index to look for data, additional spaces will increase search time.
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers
    My TechNet Wiki Articles

Maybe you are looking for

  • Infinite waiting!

    I have been using BT broadband,sky sports 1 and 2, ESPN, BT vision for 18 months and the service has been on the whole very good Up until the last few months.  My wife gave birth on the 21st October and due to breast feeding she is spending a lot of

  • Can't connect to db

    Hello, I am having trouble connecting to the Oracle database from Oracle Developer 6.0. The error is ORA-12505 TNS:Listener could not resolve sid given In connect descriptor. I am running both on a single PC under Windows98 SE. I installed Developer

  • Is this possible in a view?

    Hi, I'm wondering if it is possible to do something using a view. It's difficult to even explain what I'm trying to do, but here goes. I have two tables. The first contains "parent" information about a record and includes keys for one to four childre

  • Adobe Primiere Pro CS5 classroom in book files not opening...

    I can open files from other sources but the new Adobe classroom in a book series is giving me issues: I have a mac but the sdisk says PC/Mac. Error message (no number here) File import failure File format not supported Anyone have any ideas?  thanks

  • Can The 8520 Be Installed On A Computer Running Windows 2000 Pro SP4

    Hi Guys, I have a client running Windows 2000 Pro (old habits die hard) and she just purchased the 8520.  Upon putting the supplied disk in to install everything (Desktops, drivers, etc.) I get the error stating it needs a minimun of XP to run.  Can