Forum Replies Created

Viewing 15 posts - 3,346 through 3,360 (of 15,381 total)

  • RE: FEFO query if condition

    Bill Talada (1/29/2015)


    Interesting problem. I see you want to consume inventory in expiration date order.

    Personally I would do this procedurally in a loop in a stored procedure, filling a...

  • RE: FEFO query if condition

    136romy (1/29/2015)


    hello SSChampion

    thank you for answered

    As done in my previous request I would like to apply the FEFO system so if I have for example the following product data:

    Numlot 1...

  • RE: ID or Id

    Steve Jones - SSC Editor (1/29/2015)


    Eric M Russell (1/27/2015)


    Regardless of datatype, I don't want to see a column names having no contextual prefix, meaning just "ID" by itself, on any...

  • RE: Where do senior SQL DBAs land finally?

    I haven't a clue. I am old(ish) but not senior. I am not even a junior dba. I have been at my current job for 6 1/2 years and have...

  • RE: FEFO query if condition

    Your script has some foreign keys in the wrong order but I was able to work that out. What we don't have is any sample data or any kind of...

  • RE: List of institutes more than half of accepted applicants

    lsalih (1/28/2015)


    I have 2 tables:

    tbl1: InstituteID, name

    tbl2 ApplicantID, InstituteID ,Applicant_Name, address, city, state, status *

    * Status field contains value A for acceptance or R for rejected

    I need help with listing...

  • RE: queries

    ramyours2003 (1/29/2015)


    What are the basic queries to trouble shoot the always on in sql 2012 ?

    Did you even try? https://www.google.com/search?q=What+are+the+basic+queries+to+trouble+shoot+the+always+on+in+sql+2012+%3F&ie=utf-8&oe=utf-8

    Your exact question returns several good locations.

  • RE: set variables

    PiyaKaGhar (1/28/2015)


    Hi Friends

    This worked for me:

    Declare @w_man as varchar(50)

    set @w_man = 'julial,BEVERLEYB, Lucy'

    That is NOT multiple values. It is a single string value that contains some characters and some...

  • RE: Need help with logic

    What pietlinden is saying is that you didn't provide any details. Please see the first link in my signature for best practices when posting questions.

  • RE: Gui view from a differnet database ???

    jbalbo (1/27/2015)


    Thanks for the info, definitely helps...

    I was also wondering if I was using the view Gui interface where I can pick tables or other views if I can point...

  • RE: Truncate vs Delete

    satishkmr538 (1/27/2015)


    can truncate and delete rollback when we use transactions?

    Sounds like an interview question to me. 😉

  • RE: set variables

    In addition to Eirikur's response when you declare variables with datatypes that have a size you should ALWAYS define the size. Defining varchar with no size will get the default...

  • RE: DAte Function

    Luis Cazares (1/27/2015)


    MMartin1 (1/27/2015)


    Luis Cazares (1/27/2015)


    If it's a string column with underscores between each part of the date. This could be an option.

    SELECT columns_to_return

    FROM dbo.XYZ

    WHERE date_column...

  • RE: The PIVOT

    Luis Cazares (1/27/2015)


    Carlo Romagnano (1/27/2015)


    Raghavendra Mudugal (1/27/2015)


    Carlo Romagnano (1/27/2015)


    Strange, but the version with PIVOT is a bit slower than that with GROUP BY. See execution plan!

    ...

    actually I was doing...

  • RE: NEed help for SQLServer Query

    d.krishnap (1/27/2015)


    Thanks for the reply

    Question

    You cannot vote on your own post

    0

    if there 3 records in bill_detail table like this

    INSERT INTO DETAIL

    ([objid], [x_billable_to], [x_bill_quantity], [x_billable_yn], [x_bill_rate],[COST_TYPE])

    VALUES

    (1, 'Customer', 3, 1, 20,'Parking'),

    (2,...

Viewing 15 posts - 3,346 through 3,360 (of 15,381 total)